Skip to main content

Get NFT Metadata

This endpoint allows you to fetch the metadata information of a specific NFT in CHIP-0007 format.

Endpoint

GET https://api.spacescan.io/nfts/{nft_id}/metadata

Parameters

ParameterTypeRequiredDefaultDescription
nft_idstringYes-The unique identifier of the NFT
Free API

Use api.spacescan.io for free tier access. See our API Plans for rate limits and features.

Pro API

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/nfts/{nft_id}/metadata" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/nfts/nft10lutrplp2mqrp0wg27sjmjeezzluk9a7jgmjpdv6n5qalkpy8kxqrkqag7/metadata"

Response Schema

FieldTypeDescription
formatstringThe metadata format (e.g., "CHIP-0007")
namestringThe name of the NFT
descriptionstringDescription of the NFT
sensitive_contentbooleanFlag indicating if content is sensitive
collectionobjectCollection information
collection.namestringName of the collection
collection.idstringUnique identifier of the collection
collection.attributesarrayArray of collection attributes
attributesarrayArray of NFT attributes/traits

Example Response

{
"format": "CHIP-0007",
"name": "Chia Friends #6707",
"description": "10,000 eco-bit NFTs on Chia, from Chia.",
"sensitive_content": false,
"collection": {
"name": "Chia Friends",
"id": "517B1E97-F1AF-4824-A7B9-8D85E281D7B8",
"attributes": [
{
"type": "description",
"value": "10,000 eco-bit NFTs on Chia, from Chia."
},
{
"type": "twitter",
"value": "@chia_friends"
},
{
"type": "website",
"value": "https://www.chiafriends.xyz/"
}
]
},
"attributes": [
{
"trait_type": "Background",
"value": "Yak"
},
{
"trait_type": "Body",
"value": "Parakeet (Green)"
},
{
"trait_type": "Eyes",
"value": "Cyborg"
},
{
"trait_type": "Mouth",
"value": "Beak (Small)"
}
]
}

Response Headers

HeaderDescription
Content-Typeapplication/json
Cache-ControlCaching directives for the response

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Your request is invalid
404Not Found -- The specified NFT or its metadata could not be found
429Too Many Requests -- You're requesting too many times
500Internal Server Error -- We had a problem with our server
503Service Unavailable -- We're temporarily offline for maintenance

Notes

  • The response follows the CHIP-0007 metadata standard
  • All metadata is returned in JSON format
  • Collection attributes may vary depending on the NFT collection
  • NFT attributes/traits are specific to each individual NFT