Aller au contenu
GET /v1/meta

Service metadata

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/gini-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/gini-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gini-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gini-api/v1/meta");
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/gini-api/v1/meta",
    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": {
        "service": "gini-api",
        "endpoints": {
            "GET /v1/list": "List all countries (limit, offset).",
            "GET /v1/meta": "This document.",
            "GET /v1/rank": "Rank countries by latest Gini (order=desc most unequal | asc most equal, limit).",
            "GET /v1/search": "Search by country name or code (q=).",
            "GET /v1/country": "Gini data for a country: latest, history, min/max (country=, e.g. Brazil — or code=, e.g. BR/BRA)."
        },
        "description": "World Bank Gini-index (income inequality, 0=perfect equality … 100=maximal inequality) for every country: latest value, full year-by-year history and all-time min/max, enriched with ISO 3166-1 alpha-2 code and flag emoji. Look up by country or code, rank by latest inequality, search or list. No key.",
        "total_countries": 171,
        "most_recent_year": 2024
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:06.785Z",
        "request_id": "9a45d01c-e8c8-4648-9b35-11ac8acc1fa9"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}