Get price history for a SINGLE asset, optimized for AI analysis
Changed onReturns ~200 intelligently sampled price data points in CSV format for any custom time range. 'slug' must be a CoinCap asset slug — resolve it first with /agentFriendly/assets_search. CoinCap slugs differ from other providers: use 'xrp' (not 'ripple'), 'render' (not 'render-token'), 'fetch' (not 'fetch-ai'), 'avalanche' (not 'avalanche-2'). Unknown slugs return HTTP 404. For MULTIPLE assets in one call (comparisons, screening, movers) use /agentFriendly/full_assets_by_slug with slugs=a,b,c and includeHistory=true; for a single current snapshot use /assets/{slug}.
Request
- Base URLhttps://rest.coincap.io/v3
- Auth
- HTTP bearer
- or API key in query parameter apiKey
- or API key in header Payment-Signature
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Asset slug (e.g., bitcoin, ethereum)
Query parameters
Start timestamp in milliseconds (defaults to 30 days ago)
End timestamp in milliseconds (defaults to 1 day ago)
Response
Historical price data with approximately 200 data points
Changes
- info
the endpoint scheme security
apiKeywas added to the API - info
the endpoint scheme security
x402was added to the API - info
added the non-success response with the status
- info
- info
endpoint added
- info