Skip to main content

Get Token Price

This endpoint allows you to fetch real-time price information for Chia Asset Tokens (CAT)

Endpoint

GET https://api.spacescan.io/token/price/{asset_id}?currency={currency_code}

Parameters

ParameterTypeDescriptionRequired
asset_idstringThe unique identifier (TAIL hash) of the CATYes
currencystringCurrency code (e.g., USD, EUR, USD, etc.)No
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/token/price/{asset_id}?currency=USD" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Example

Response

Failed to load API response. Please try again later.

Response Schema

FieldTypeDescription
statusstringThe status of the API request
priceobjectPrice information for the CAT

Price Object (if requested)

FieldTypeDescription
[currency]stringPrice in specified currency (e.g., "usd": 0.02624364935709997)
xchstringPrice in XCH

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Invalid parameters
429Too Many Requests -- Rate limit exceeded
500Internal Server Error
503Service Unavailable