On this page
API reference
Activity and floor history
Read indexed sales and transfers and the floor observations your book records.
GET /v1/collections/:chainId/:collection/activity#
Read sales, mints, transfers and burns indexed from the chain. Results run newest first.
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. |
limit |
integer | No | Maximum rows to return. | 50 | 1–1000. |
cursor |
string | No | Last block and log position. | First page. | Previous nextCursor. |
type |
string | No | Filter event types. | All types. | Comma-separated sale, mint, transfer, burn. 60 characters. |
tokenId |
decimal string | No | Filter one NFT. | All. | uint256. |
since |
integer | No | Unix seconds lower bound. | No lower bound. | 0–4102444800. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
object, data |
string and array | Page type and indexed activity rows. |
data[].id, type, tokenId, from, to |
strings or null | Event identity, event kind, NFT and counterparties. |
data[].venue, side, priceWei, currency, quantity |
strings, integer or null | Trade fields when available. |
data[].blockNumber, logIndex, transaction, timestamp, image |
integers, strings or null | Location on chain, Unix seconds and optional marketplace image. |
hasMore, nextCursor |
boolean and string or null | Continue with this block and log index cursor. |
index |
object | Indexed range, whether caught up, pending count and issue when known. |
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. |
Example request#
bash
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/activity?limit=2'js
const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/activity?limit=2");
const result = await response.json();Example response#
json
{
"object": "list",
"data": [
{
"object": "activity",
"id": "26537544:170",
"type": "sale",
"tokenId": "1896",
"from": "0xa684fe068c9219de69354fe6067ca64b75438f3c",
"to": "0xfb6cf476f17a9f17732e365acac74cee679d5904",
"venue": "opensea",
"side": "sell",
"priceWei": "600000000000000",
"currency": "WETH",
"quantity": 1,
"blockNumber": 26537544,
"logIndex": 170,
"transaction": "0x578be6aab1ee0ba2a7fad86e1d85363199507e8005fb2663e5412cf45ade577e",
"timestamp": 1796155595,
"image": "https://marketplace.example/img/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/1896"
},
{
"object": "activity",
"id": "26537540:164",
"type": "sale",
"tokenId": "1899",
"from": "0xa684fe068c9219de69354fe6067ca64b75438f3c",
"to": "0xfb6cf476f17a9f17732e365acac74cee679d5904",
"venue": "opensea",
"side": "sell",
"priceWei": "600000000000000",
"currency": "WETH",
"quantity": 1,
"blockNumber": 26537540,
"logIndex": 164,
"transaction": "0x87a2edc073bb40ca13013d3f193da2563e6ce9b1cf0b07cf2d9fdf4a2ecf57e6",
"timestamp": 1796155547,
"image": "https://marketplace.example/img/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/1899"
}
],
"hasMore": true,
"nextCursor": "26537540:164",
"index": {
"fromBlock": 26339714,
"throughBlock": 26556583,
"caughtUp": true,
"pending": 0,
"issue": null
}
}GET /v1/collections/:chainId/:collection/floor-history#
Read recorded floor and collection offer observations. The book can report observations starting from its first recording.
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. |
range |
string | No | Lookback window. | 7d | 1d, 7d, 30d, 90d. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
object, range, since, recordingSince |
strings and integers or null | Resource type, requested window, lower bound and first recording. Times are Unix seconds. |
before |
object or null | Last point before the window, when available. |
points |
array | Each point carries time, floor and offer amounts and sources, and the number listed. |
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. |
Example request#
bash
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/floor-history?range=1d'js
const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/floor-history?range=1d");
const result = await response.json();Example response#
json
{
"object": "floor_history",
"recordingSince": 1796374406,
"before": null,
"points": [
{
"timestamp": 1796374406,
"floorWei": "1490000000000000",
"floorSource": "opensea",
"bestOfferWei": "594000000000000",
"bestOfferSource": "opensea",
"listed": 35
},
{
"timestamp": 1796374466,
"floorWei": "835537869790280",
"floorSource": "nftx",
"bestOfferWei": "760340024594830",
"bestOfferSource": "nftx-v2",
"listed": 37
},
…
],
"range": "1d",
"since": 1796298487
}