Skip to content
GET /v1/historical

Price at a past timestamp

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/tokenprice-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/tokenprice-api/v1/historical" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tokenprice-api/v1/historical", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tokenprice-api/v1/historical");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/tokenprice-api/v1/historical",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "price": 1,
        "token": "ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "symbol": "USDC",
        "decimals": 6,
        "timestamp": 1700000107,
        "confidence": 0.99,
        "requested_timestamp": 1700000000
    },
    "meta": {
        "timestamp": "2026-06-09T11:39:45.989Z",
        "request_id": "c2df436c-34c1-4f39-846b-b77a20178a79"
    },
    "status": "ok",
    "message": "Historical price retrieved successfully",
    "success": true
}