Skip to content
GET /v1/orderbook

Top of order book

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/coinbase-api

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

Get an API key

Code snippets

curl "https://api.oanor.com/coinbase-api/v1/orderbook" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coinbase-api/v1/orderbook", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coinbase-api/v1/orderbook");
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/coinbase-api/v1/orderbook",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

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

{
    "data": {
        "asks": [
            {
                "size": 0.03999441,
                "price": 62529.73
            },
            {
                "size": 0.01673402,
                "price": 62529.78
            },
            {
                "size": 0.03272435,
                "price": 62529.79
            },
            {
                "size": 0.17920124,
                "price": 62530.99
            },
            {
                "size": 0.12793451,
                "price": 62532
            },
            {
                "size": 0.0299697,
                "price": 62532.59
            },
            {
                "size": 0.15991317,
                "price": 62533.94
            },
            {
                "size": 0.0076,
                "price": 62534
            },
            {
                "size": 0.01354882,
                "price": 62534.41
            },
            {
                "size": 0.00119942,
                "price": 62534.42
            }
        ],
        "bids": [
            {
                "size": 0.00030188,
                "price": 62529.72
            },
            {
                "size": 1.76e-6,
                "price": 62529.69
            },
            {
                "size": 0.01789955,
                "price": 62526.9
            },
            {
                "size": 0.12794521,
                "price": 62526.76
            },
            {
                "size": 0.0177,
                "price": 62526.74
            },
            {
                "size": 0.01789955,
                "price": 62526.68
            },
            {
                "size": 0.04796857,
                "price": 62526.17
            },
            {
                "size": 0.0076,
                "price": 62526
            },
            {
                "size": 1.793e-5,
                "price": 62525.99
            },
            {
                "size": 0.34372728,
                "price": 62525.52
            }
        ],
        "pair": "BTC-USD",
        "time": "2026-06-09T11:38:32.624545420Z",
        "level": 2,
        "source": "Coinbase Exchange",
        "spread": 0.01,
        "best_ask": 62529.73,
        "best_bid": 62529.72,
        "spread_pct": 0
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:33.594Z",
        "request_id": "8ed4dcb0-e1c7-457a-93ef-445274d7056d"
    },
    "status": "ok",
    "message": "Order book retrieved successfully",
    "success": true
}