Token Price History
Returns historical price data points for a token over a specified time range.
Time range options:
- Predefined: 1d, 7d, 14d, 30d, 90d, 180d, 365d, max
- Custom: use from / to (Unix seconds or YYYY-MM-DD)
Granularity is automatic based on range:
- 1d → 5-minute intervals
- 7d–90d → hourly
- 180d+ → daily
Request
- Base URLhttps://api.asksurf.ai
- AuthHTTP bearer
Query parameters
Single token ticker symbol like BTC, ETH, or SOL (multi-symbol not supported)
Window of historical data to return: 1d, 7d, 14d, 30d, 90d, 180d, 365d, or max. Ignored when from/to are set. This endpoint uses time_range only — it does NOT accept interval; bucket granularity is chosen server-side based on the window size.
Start of custom date range (Unix timestamp or YYYY-MM-DD). Must be used together with to. Overrides time_range when set.
End of custom date range (Unix timestamp or YYYY-MM-DD). Must be used together with from. Overrides time_range when set.
Quote currency like usd, eur, or btc
Response
OK
Example response
{
"$schema": "https://example.com/schemas/MarketPriceResponse.json"
}Changes
No recorded changes to this operation across all 12 revisions of this API.