Naar de inhoud
GET /v1/index

One index quote with day and 52-week stats

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/indices-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "name": "S&P 500",
        "as_of": "2026-06-08T20:56:48.000Z",
        "index": "sp500",
        "price": 7405.73,
        "change": 21.99,
        "region": "us",
        "symbol": "^GSPC",
        "country": "US",
        "day_low": 7395.13,
        "currency": "USD",
        "day_high": 7466.81,
        "change_pct": 0.3,
        "week52_low": 5943.23,
        "week52_high": 7620.9,
        "previous_close": 7383.74
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:35.165Z",
        "request_id": "8f5479a9-d7b8-4b7a-bf5f-d88d8a6d3fc6"
    },
    "status": "ok",
    "message": "Index retrieved successfully",
    "success": true
}