Buy one archived object over x402 (pay per resource)
One archived Parquet / JSON object for one USDC payment — no key needed.
Flow: call once to get a 402 quoting the price for exactly this object (a missing object is a 404 before any quote, so you can never pay for a file that is not there); sign the amount; call again with x-payment. The response is a pre-signed download URL valid for one hour.
A Pro Plus key gets the same URL free (parity with /archives/download, which lists whole ranges). Prices per data_type are in GET /api/v1/pricing → resources.
Request
- Base URL: https://cryptodataapi.com
- URL: https://cryptodataapi.com/api/v1/backtesting/archives/purchase
- Auth: API key in header X-API-Key
Query parameters
klines, funding, liquidations, hl_liquidations, hl_trade_flow, daily, snapshots, klines_deep, funding_deep
klines / funding / daily / *_deep
klines / funding / liquidations / *_deep
YYYY-MM-DD for daily-file types
YYYY-MM for *_deep monthly files
klines_deep only: 1h, 4h, 1d
daily only: klines or funding
snapshots only: the snapshot data type name
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.