Skip to main content

Get NFT License

This endpoint allows you to fetch the license information/document associated with a specific NFT.

Endpoint

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

Path Parameters

ParameterTypeDescription
nft_idstringThe unique identifier of the NFT

Response Headers

HeaderDescription
Content-TypeThe MIME type of the license document (e.g., application/pdf, text/plain)
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 license 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 license document data
  • No JSON wrapping is applied to the response
  • Content-Type header indicates the format of the returned license document
  • Common license formats include PDF and plain text
  • Consider implementing appropriate timeout handling in your client