Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs
API referenceAsset images

An asset's picture

What a scan's `metadata.imageUrl` names: an asset's picture, looked up by the asset's id. When Helius's CDN copy of it loads (the API checks), this answers 302 to that copy, kept for an hour. Otherwise the API fetches the picture its metadata names (never your browser), asking public IPFS gateways that answer for one kept on IPFS, and redraws it as a new WebP of at most 192 px a side with no metadata, kept for a day. SVG and anything that isn't a PNG, JPEG, WebP or GIF of at most 8 MB is refused. 404 when there is no picture to show, kept for ten minutes.

GET/v1/asset-images/{id}

What a scan's metadata.imageUrl names: an asset's picture, looked up by the asset's id. When Helius's CDN copy of it loads (the API checks), this answers 302 to that copy, kept for an hour. Otherwise the API fetches the picture its metadata names (never your browser), asking public IPFS gateways that answer for one kept on IPFS, and redraws it as a new WebP of at most 192 px a side with no metadata, kept for a day. SVG and anything that isn't a PNG, JPEG, WebP or GIF of at most 8 MB is refused. 404 when there is no picture to show, kept for ten minutes.

Path Parameters

id*string

The asset's id: a token's mint, an NFT's mint or a compressed NFT's asset id

Match^[1-9A-HJ-NP-Za-km-z]{32,44}$

Response Body

image/webp

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/asset-images/string"
"string"