The primary object in the OpenSea API is the asset, which represents a unique digital item whose ownership is managed by the blockchain. The below CryptoSaga hero is an example of an asset shown on OpenSea.


Here's an overview of some of the fields contained in an asset:
Field Name | Description |
---|---|
| The token ID of the NFT |
| An image for the item. Note that this is the cached URL we store on our end. The original image url is |
| The background color to be displayed with the item |
| Name of the item |
| External link to the original website for the item |
| Dictionary of data on the contract itself (see asset contract section) |
| Dictionary of data on the owner (see account section) |
| A list of traits associated with the item (see traits section) |
| When this item was last sold (null if there was no last sale) |
Traits
Traits are special properties on the item, that can either be numbers or strings. Below is an example of how OpenSea displays the traits for a specific item.


Here are some of the fields contained in a trait:
Field Name | Description |
---|---|
| The name of the trait (for example color) |
| The value of this trait (can be a string or number) |
| How this trait will be displayed (options are |
Asset contracts
Asset contracts contain data about the contract itself, such as the CryptoKitties contract or the CoolCats contract. Here are the field associated with an asset contract:
Field Name | Description |
---|---|
| Address of the asset contract |
| Name of the asset contract |
| Symbol, such as CKITTY |
| Image associated with the asset contract |
| Description of the asset contract |
| Link to the original website for this contract |