/v1/country
Business + consumer confidence side by side for one economy
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/confidence-api/v1/country" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/confidence-api/v1/country", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/confidence-api/v1/country");
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/confidence-api/v1/country",
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": {
"code": "USA",
"name": "United States",
"note": "One economy's OECD Business and Consumer Confidence side by side. Both indices oscillate around 100 (above = optimism). Survey-based soft data that leads the hard data. Monthly, cached a few hours.",
"period": "2026-04",
"source": "OECD Business & Consumer Confidence (SDMX)",
"is_aggregate": false,
"combined_read": "both firms and households pessimistic",
"business_confidence": {
"mood": "pessimism",
"value": 99.97,
"change": 0.057,
"reading": "pessimistic but recovering",
"direction": "rising"
},
"consumer_confidence": {
"mood": "pessimism",
"value": 95.631,
"change": -0.466,
"reading": "pessimistic and deteriorating",
"direction": "falling"
}
},
"meta": {
"timestamp": "2026-06-12T19:37:51.816Z",
"request_id": "eeee82a7-94d4-4b77-9f4b-8f3d98b1c25b"
},
"status": "ok",
"message": "Country confidence retrieved successfully",
"success": true
}