On this page
API reference
Offers
Read marketplace offers, offerable traits and OpenSea offers on one NFT.
GET /v1/collections/:chainId/:collection/offers#
Read live marketplace offers. A token filter adds a coverage flag to each offer.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
tokenId |
decimal string | No | Evaluate whether offers cover this NFT. | No coverage flag. | Up to 78 decimal digits. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
data |
array | Offer identity, maker, amount, proceeds, expiry, scope and quantity. covers is present if a token is requested. |
walletEnabled |
boolean | Whether the marketplace accepts new wallet offers. |
Cache. Cache-Control: no-store.
Limit. None specific. Reads the stored book.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 422 | unprocessable |
The current order, account or NFT did not pass the checks described above. |
Example request#
bash
curl https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/offersjs
const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/offers");
const result = await response.json();Example response#
json
{
"data": [],
"walletEnabled": true
}GET /v1/collections/:chainId/:collection/offers/traits#
Read the trait groups the offer builder can use. Trait offers require a complete trait index.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
object |
string | Always offer_traits. |
complete, total, unread |
boolean and integers | Completion, total token count and tokens with unread traits. |
traits |
array | Objects with trait type, value and eligible token count. |
Cache. Cache-Control: no-store.
Limit. None specific. Reads the stored book.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 422 | unprocessable |
The current order, account or NFT did not pass the checks described above. |
Example request#
bash
curl https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/offers/traitsjs
const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/offers/traits");
const result = await response.json();Example response#
json
{
"object": "offer_traits",
"complete": false,
"total": 12442,
"unread": 7192,
"traits": [
{
"type": "Background",
"value": "Blueberry",
"count": 900
},
{
"type": "Background",
"value": "Lemon",
"count": 866
},
…
]
}GET /v1/collections/:chainId/:collection/tokens/:tokenId/opensea-offers#
Read up to 50 OpenSea offers for this exact NFT, ordered by net proceeds in WETH. Collection and trait offers have their own scope.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
tokenId |
decimal string | Yes | NFT identifier. | — | Unsigned 256-bit integer unless specified. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
data |
array | id (venue-qualified order ID), maker, grossPriceWei, venueFeeWei, priceWei (net), currency and expiresAt (Unix seconds). |
available |
boolean | Whether the venue and contract support this read. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 502 | upstream_error |
A venue, chain read or simulation service could not return a usable result. |
Example request#
bash
curl https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/tokens/344/opensea-offersjs
const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/tokens/344/opensea-offers");
const result = await response.json();Example response#
json
{
"data": [],
"available": true
}