Vai al contenuto
GET /v1/index

Headline score, rating and prior readings

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "index": "CNN Fear & Greed (US stocks)",
        "score": 29.69,
        "rating": "fear",
        "source": "CNN Business",
        "updated": "2026-06-11T23:59:42+00:00",
        "week_ago": 53.89,
        "year_ago": 64.2,
        "month_ago": 66.63,
        "previous_close": 27.46
    },
    "meta": {
        "timestamp": "2026-06-12T01:42:36.320Z",
        "request_id": "cc1ada74-f7c5-4758-a5a1-0c4f25552854"
    },
    "status": "ok",
    "message": "Index retrieved successfully",
    "success": true
}