# Code Examples

### Embed URL Breakdown

Here is how to identify the sections of the NFT Embed's URL.

* **tokenAddress**= NFT smart contract address
* **tokenId**= A unique number assigned to an NFT / Edition
* **saleSplitAddress**= *Optional* Address for splitting payout from sale
* **saleSplitFee**= Percentage of the sale split with another address

### Example of URL without Custom Styling (no/CSS)

Your embed URL should look like the example below.&#x20;

*The embed will look different depending on the toggles you selected.* 🧰

#### <img src="https://2358617368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEq8xhuy5FBVNQlaWUVc7%2Fuploads%2FZCj78GpndPH6hGGpvUki%2Fimage.png?alt=media&#x26;token=27a04c42-ba09-46c9-b062-845ac811e17d" alt="" data-size="original">

{% code title="basic nft embed url" %}

```jsx
<https://nftembed.org/embed/nft?
saleSplitAddress=&
saleSplitFee=10&
showMarket=true&
tokenAddress=0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0&
tokenId=17440>
```

{% endcode %}

#### Example of URL with Custom Styling (with/CSS)

If you select the custom styling, a unique string gets incorporated with the URL within the quotes.

*The embed will look different depending on the selected toggles and the CSS variables.* 🧰

![](https://2358617368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEq8xhuy5FBVNQlaWUVc7%2Fuploads%2FpzVEtnQpxmnh4depFAeg%2Fimage.png?alt=media\&token=aa7a1a5e-119a-4256-9d4f-925ae08fbd79)

{% code title="nft embed + custom css" %}

```javascript
<https://nftembed.org/embed/nft?
saleSplitAddress=&
saleSplitFee=10&
showMarket=true&
style=eyAiZ2VuZXJhbCI6IHsgImNvbG9yIjogImJsYWNrIiwgImJhY2tncm91bmQiOiAibGluZWFyLWdyYWRpZW50KDE3MGRlZywgI2JjZWIwMCAxNS41NyUsICMwMGVhZWEgODQuODglKSIsICJib3JkZXJSYWRpdXMiOiAiMjBweCIsICJoZWlnaHQiOiAiMTAwJSIgfSwgIm1ldGFkYXRhIjogeyAiYmFja2dyb3VuZENvbG9yIjogImJsYWNrIiwgImZvbnRTaXplIjogIjEycHgiLCAiY29sb3IiOiAid2hpdGUiLCAibWFyZ2luIjogIjAuMnJlbSIsICJwYWRkaW5nIjogIjAuM3JlbSIsICJ0ZXh0QWxpZ24iOiAiY2VudGVyIiwgImJvcmRlciI6ICIxcHggc29saWQgd2hpdGUiLCAiYm9yZGVyUmFkaXVzIjogIjEwcHgiIH0sICJhc3NldCI6IHsgImJvcmRlclJhZGl1cyI6ICI3cHgiLCAicGFkZGluZyI6IjI1cHgiLCAiYm9yZGVyIjogIjFweCBzb2xpZCBibGFjayIgfSB9&
tokenAddress=0xb932a70a57673d89f4acffbe830e8ed7f75fb9e0&
tokenId=17440>
```

{% endcode %}
