/v1/index
Headline score, rating and prior readings
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}