Vai al contenuto
GET /v1/index

One index quote with day and 52-week stats

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/indices-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}