On this page
API reference
Health and book statistics
Check marketplace configuration flags and read a collection’s book counters.
GET /v1/health#
Read configured integration flags. The flags describe configuration and venue selection. They do not measure whether an upstream request succeeds.
There are no path or query parameters.
Response fields#
| Field | Type | Meaning |
|---|---|---|
ok, feeBps |
boolean and integer | Successful handler response and the operator’s native order fee rate in basis points. |
configured |
object | Booleans for available bindings or integrations. Ethereum can report feeRecipient, opensea, nftx and x402. Ink has its own integration flags. |
Cache. Cache-Control: no-store.
Limit. None specific.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 503 | not_configured |
The required checkout or order setting is unavailable. |
Example request#
bash
curl https://marketplace.example/v1/healthjs
const response = await fetch("https://marketplace.example/v1/health");
const result = await response.json();Example response#
json
{
"ok": true,
"feeBps": 0,
"configured": {
"feeRecipient": false,
"opensea": true,
"nftx": true,
"x402": false
}
}GET /v1/collections/:chainId/:collection/stats#
Read the collection book’s current sequence, order count, socket count and processing sample statistics.
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 |
|---|---|---|
seq, orders, sockets |
integers | Book sequence, stored order count and open sockets. |
sourceToBook, listenerToBook |
objects | Sample count and p50 and p95 latency in milliseconds when sampled. |
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/statsjs
const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/stats");
const result = await response.json();Example response#
json
{
"seq": 562,
"orders": 87,
"sockets": 0,
"sourceToBook": {
"samples": 0,
"p50": null,
"p95": null
},
"listenerToBook": {
"samples": 0,
"p50": null,
"p95": null
}
}