Aller au contenu
GET /v1/series

One indicator time series for one country

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/imf-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/imf-api/v1/series" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/imf-api/v1/series", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/imf-api/v1/series");
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/imf-api/v1/series",
    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": {
        "note": "Includes IMF historical data and forecasts; later years are projections.",
        "count": 52,
        "source": "IMF",
        "values": {
            "1980": -0.3,
            "1981": 2.5,
            "1982": -1.8,
            "1983": 4.6,
            "1984": 7.2,
            "1985": 4.2,
            "1986": 3.5,
            "1987": 3.5,
            "1988": 4.2,
            "1989": 3.7,
            "1990": 1.9,
            "1991": -0.1,
            "1992": 3.5,
            "1993": 2.8,
            "1994": 4,
            "1995": 2.7,
            "1996": 3.8,
            "1997": 4.4,
            "1998": 4.5,
            "1999": 4.8,
            "2000": 4.1,
            "2001": 1,
            "2002": 1.7,
            "2003": 2.8,
            "2004": 3.8,
            "2005": 3.5,
            "2006": 2.8,
            "2007": 2,
            "2008": 0.1,
            "2009": -2.6,
            "2010": 2.7,
            "2011": 1.6,
            "2012": 2.3,
            "2013": 2.1,
            "2014": 2.5,
            "2015": 2.9,
            "2016": 1.8,
            "2017": 2.5,
            "2018": 3,
            "2019": 2.6,
            "2020": -2.1,
            "2021": 6.2,
            "2022": 2.5,
            "2023": 2.9,
            "2024": 2.8,
            "2025": 2.1,
            "2026": 2.3,
            "2027": 2.1,
            "2028": 2.1,
            "2029": 1.9,
            "2030": 1.8,
            "2031": 1.8
        },
        "country": "USA",
        "indicator": "NGDP_RPCH",
        "last_year": "2031",
        "first_year": "1980",
        "latest_value": 1.8
    },
    "meta": {
        "timestamp": "2026-06-12T01:43:01.694Z",
        "request_id": "575e18ed-1c7e-4140-938a-5e635090116a"
    },
    "status": "ok",
    "message": "Series retrieved successfully",
    "success": true
}