Get Collection Activities
This endpoint returns activity history for a collection including mints, burns, and transfers.
Endpoint
- Mainnet
- Testnet
GET https://api.spacescan.io/collections/{collection_id}/activities
GET https://api-testnet11.spacescan.io/collections/{collection_id}/activities
Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
collection_id | string | Yes | - | The unique identifier of the collection |
type | string | No | mint | Activity type (mint/burn/transfer) |
page | number | No | 1 | Page number for pagination |
count | number | No | 50 | Number of items per page |
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/collections/{collection_id}/activities?type=mint" \
-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/collections/{collection_id}/activities?type=mint&page=1&count=50"
response = requests.get(url)
data = response.json()
print(data)
import requests
collection_id = "col1z0ef7w5n4vq9qkue67y8jnwumd9799sm50t8fyle73c70ly4z0ws0p2rhl"
url = f"https://api-testnet11.spacescan.io/collections/{collection_id}/activities?type=mint&page=1&count=50"
response = requests.get(url, params=params)
data = response.json()
print(data)
- Mainnet
- Testnet
const collectionId = "col1z0ef7w5n4vq9qkue67y8jnwumd9799sm50t8fyle73c70ly4z0ws0p2rhl";
const url = https://api.spacescan.io/collections/${collectionId}/activities?type=mint&page=1&count=50
;
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/collections/${collectionId}/activities?type=mint&page=1&count=50
;
fetch(url)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Response
Failed to load API response. Please try again later.
Response Schema
Field | Type | Description |
---|---|---|
status | string | The status of the API request |
data | array | List of activities |
pagination | object | Pagination information |
Activity Object
Field | Type | Description |
---|---|---|
id | string | NFT ID |
name | string | NFT name |
preview_url | string | NFT preview URL |
timestamp | string | Activity timestamp |
type | string | Activity type (mint/burn/transfer) |
owner | object | Owner details |
Error Responses
HTTP Status Code | Meaning |
---|---|
400 | Bad Request -- Invalid parameters |
429 | Too Many Requests -- Rate limit exceeded |
500 | Internal Server Error |
503 | Service Unavailable |