Get Collection Information
This endpoint allows you to fetch detailed information about an collection.
Endpoint
- Mainnet
- Testnet
GET https://api.spacescan.io/collection/info/{collection_id}
GET https://api-testnet11.spacescan.io/collection/info/{collection_id}
Parameters
Parameter | Type | Description |
---|---|---|
collection_id | string | The unique identifier of the NFT collection |
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/collection/info/{collection_id}" \
-H "x-api-key: YOUR_API_KEY"
Live API Test
- Mainnet
- Testnet
Request Example
- cURL
- Python
- JavaScript
- Mainnet
- Testnet
import requests
collection_id = "col1z0ef7w5n4vq9qkue67y8jnwumd9799sm50t8fyle73c70ly4z0ws0p2rhl"
url = f"https://api.spacescan.io/collection/info/{collection_id}"
response = requests.get(url)
data = response.json()
print(data)
import requests
collection_id = "col1z0ef7w5n4vq9qkue67y8jnwumd9799sm50t8fyle73c70ly4z0ws0p2rhl"
url = f"https://api-testnet11.spacescan.io/collection/info/{collection_id}"
response = requests.get(url)
data = response.json()
print(data)
- Mainnet
- Testnet
const collectionId = "col1z0ef7w5n4vq9qkue67y8jnwumd9799sm50t8fyle73c70ly4z0ws0p2rhl";
const url = https://api.spacescan.io/collection/info/${collectionId}
;
fetch(url)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
const collectionId = "col1z0ef7w5n4vq9qkue67y8jnwumd9799sm50t8fyle73c70ly4z0ws0p2rhl";
const url = https://api-testnet11.spacescan.io/collection/info/${collectionId}
;
fetch(url)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Response
- Mainnet
- Testnet
Failed to load API response. Please try again later.
Failed to load API response. Please try again later.
Response Schema
Field | Type | Description |
---|---|---|
status | string | The status of the API request |
collection | object | Detailed information about the NFT collection |
collection.id | string | The unique identifier of the collection |
collection.name | string | The name of the collection |
collection.description | string | Description of the collection |
collection.icon_uri | string | URI to the collection's icon |
collection.banner_uri | string | URI to the collection's banner |
collection.nft_count | number | Total number of NFTs in the collection |
collection.owner_count | number | Total number of unique owners |
collection.verified | boolean | Whether the collection is verified |
collection.created_at | string | Timestamp when the collection was created |
Error Responses
HTTP Status Code | Meaning |
---|---|
400 | Bad Request -- Your request is invalid. |
404 | Not Found -- The specified collection could not be found. |
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. |