Skip to main content

Get NFT Original Data

This endpoint allows you to fetch the original raw data/content of a specific NFT.

Endpoint

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

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}/original" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

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

Response

The endpoint returns the raw binary data of the NFT's original content. The content type will vary depending on the NFT's data format:

  • Images: Returns image data (PNG, JPEG, GIF, etc.)
  • Documents: Returns document data (PDF, JSON, etc.)
  • Audio: Returns audio data (MP3, WAV, etc.)
  • Video: Returns video data (MP4, WebM, etc.)

Response Headers

HeaderDescription
Content-TypeThe MIME type of the returned content (e.g., image/png, application/pdf)
Content-LengthSize of the response in bytes
Cache-ControlCaching directives for the response

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Your request is invalid
404Not Found -- The specified NFT or its original data 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 is the raw binary data of the NFT's original content
  • No JSON wrapping is applied to the response
  • Content-Type header indicates the format of the returned data
  • Large files may take longer to download
  • Consider implementing appropriate timeout handling in your client