Aller au contenu
GET /v1/country

Headline + youth unemployment for one economy with its rank

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/unemployment-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/unemployment-api/v1/country" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/unemployment-api/v1/country", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/unemployment-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/unemployment-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 harmonised unemployment rate (headline 15+ and youth 15-24), seasonally adjusted, with the month-on-month change and its rank among tracked economies (1 = tightest labour market). Monthly, cached a few hours.",
        "source": "OECD harmonised unemployment (SDMX)",
        "is_aggregate": false,
        "unemployment_rate": {
            "of": 43,
            "rank": 12,
            "rate": 4.3,
            "trend": "unchanged",
            "change": 0,
            "period": "2026-05"
        },
        "youth_unemployment_rate": {
            "of": 43,
            "rank": 8,
            "rate": 9.4,
            "trend": "falling (labour market tightening)",
            "change": -0.1,
            "period": "2026-05"
        }
    },
    "meta": {
        "timestamp": "2026-06-12T19:37:46.529Z",
        "request_id": "a458c21d-44fd-446b-b8c1-362c53f218e1"
    },
    "status": "ok",
    "message": "Country unemployment retrieved successfully",
    "success": true
}