Aller au contenu
GET /v1/data

Latest observations for any series

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/abs-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/abs-api/v1/data" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/abs-api/v1/data", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/abs-api/v1/data");
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/abs-api/v1/data",
    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": {
        "key": "1.10001.10.50.Q",
        "count": 8,
        "source": "Australian Bureau of Statistics",
        "dataflow": "CPI",
        "observations": [
            {
                "value": 101.7,
                "period": "2026-Q1"
            },
            {
                "value": 100.32,
                "period": "2025-Q4"
            },
            {
                "value": 99.73,
                "period": "2025-Q3"
            },
            {
                "value": 98.43,
                "period": "2025-Q2"
            },
            {
                "value": 97.7,
                "period": "2025-Q1"
            },
            {
                "value": 96.81,
                "period": "2024-Q4"
            },
            {
                "value": 96.62,
                "period": "2024-Q3"
            },
            {
                "value": 96.41,
                "period": "2024-Q2"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-15T11:14:57.249Z",
        "request_id": "f5dc2b21-78fa-4ae7-a7e4-1c462f7e47b4"
    },
    "status": "ok",
    "message": "Data retrieved successfully",
    "success": true
}