跳到主要内容

Get CAT Price

This endpoint allows you to fetch real-time price information for Chia Asset Tokens (CATs) in various currencies. Track current market prices, exchange rates, and fiat valuations for any CAT in the Chia ecosystem. This data is essential for portfolio tracking, trading decisions, and financial applications built on the Chia blockchain.

Endpoint

GET https://api.spacescan.io/cat/catprice/{asset_id}?currency={currency_code}

Parameters

ParameterTypeDescriptionRequired
asset_idstringThe unique identifier (TAIL hash) of the CATYes
currencystringCurrency code (e.g., USD, EUR, INR, 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/cat/catprice/{asset_id}?currency=INR" \
-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
amount_pricenumberCurrent price in the requested currency
xch_pricestringCurrent price in XCH

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Your request is invalid or unsupported currency.
404Not Found -- The specified CAT could not be found.
429Too Many Requests -- You're requesting too many times! Slow down!
500Internal Server Error -- We had a problem with our server. Try again later.
503Service Unavailable -- We're temporarily offline for maintenance. Please try again later.