/v1/data
A series time-series for a country
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/sdg-api/v1/data" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sdg-api/v1/data", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sdg-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/sdg-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": {
"area": "276",
"data": [
{
"area": "Germany",
"unit": "PER_100000_LIVE_BIRTHS",
"year": 2023,
"value": "3.62022",
"source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
"area_code": "276",
"dimensions": {
"Sex": "FEMALE",
"Reporting Type": "G"
},
"value_type": "Float"
},
{
"area": "Germany",
"unit": "PER_100000_LIVE_BIRTHS",
"year": 2022,
"value": "4.03073",
"source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
"area_code": "276",
"dimensions": {
"Sex": "FEMALE",
"Reporting Type": "G"
},
"value_type": "Float"
},
{
"area": "Germany",
"unit": "PER_100000_LIVE_BIRTHS",
"year": 2021,
"value": "4.45641",
"source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
"area_code": "276",
"dimensions": {
"Sex": "FEMALE",
"Reporting Type": "G"
},
"value_type": "Float"
},
{
"area": "Germany",
"unit": "PER_100000_LIVE_BIRTHS",
"year": 2020,
"value": "4.23313",
"source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
"area_code": "276",
"dimensions": {
"Sex": "FEMALE",
"Reporting Type": "G"
},
"value_type": "Float"
},
{
"area": "Germany",
"unit": "PER_100000_LIVE_BIRTHS",
"year": 2019,
"value": "3.96585",
"source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
"area_code": "276",
"dimensions": {
"Sex": "FEMALE",
"Reporting Type": "G"
},
"value_type": "Float"
},
{
"area": "Germany",
"unit": "PER_100000_LIVE_BIRTHS",
"year": 2018,
"value": "4.20703",
"source": "MMEIG estimates available at https://www.who.int/publications/i/item/9789240108462",
"area_code": "276",
"dimensions": {
"Sex": "FEMALE",
"Reporting Type": "G"
},
"val
…