Get NFT Statistics
This endpoint provides global statistics about NFTs on the Chia blockchain, including collection counts, total NFTs, trade volumes, and royalty information.
Endpoint
- Mainnet
- Testnet
GET https://api.spacescan.io/nft/stats
GET https://api-testnet11.spacescan.io/nft/stats
Use api.spacescan.io
for free tier access. See our API Plans for rate limits and features.
Use pro-api.spacescan.io
with your API key in the x-api-key
header. See our API Plans for details.
curl -X GET "https://pro-api.spacescan.io/nft/stats" \
-H "x-api-key: YOUR_API_KEY"
Live API Test
- Mainnet
- Testnet
Request Example
- cURL
- Python
- JavaScript
- Mainnet
- Testnet
curl -X GET "https://api.spacescan.io/nft/stats"
curl -X GET "https://api-testnet11.spacescan.io/nft/stats"
- Mainnet
- Testnet
import requests
url = "https://api.spacescan.io/nft/stats"
response = requests.get(url)
data = response.json()
print(data)
import requests
url = "https://api-testnet11.spacescan.io/nft/stats"
response = requests.get(url)
data = response.json()
print(data)
- Mainnet
- Testnet
const url = "https://api.spacescan.io/nft/stats";
fetch(url)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
const url = "https://api-testnet11.spacescan.io/nft/stats";
fetch(url)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Response Example
{
"status": "success",
"data": {
"collections_count": 4547,
"nft_count": 1637021,
"trades_count": 104329,
"traded_amount_xch": 4.680786556872335e-8,
"royalty_amount_xch": 2.202437563733082e-9,
"traded_amount_fiat": 9.77022e-7,
"royalty_amount_fiat": 4.5972e-8
}
}
Response Schema
Field | Type | Description |
---|---|---|
status | string | The status of the API request |
data | object | Object containing NFT statistics |
collections_count | number | Total number of NFT collections |
nft_count | number | Total number of NFTs |
trades_count | number | Total number of NFT trades |
traded_amount_xch | number | Total amount of XCH traded for NFTs |
royalty_amount_xch | number | Total amount of XCH collected as royalties |
traded_amount_fiat | number | Total amount traded in fiat currency |
royalty_amount_fiat | number | Total amount of royalties in fiat currency |
Error Responses
HTTP Status Code | Meaning |
---|---|
400 | Bad Request -- Your request is invalid. |
429 | Too Many Requests -- You're requesting too many times! Slow down! |
500 | Internal Server Error -- We had a problem with our server. Try again later. |
503 | Service Unavailable -- We're temporarily offline for maintenance. Please try again later. |