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/statcan-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/statcan-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/statcan-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/statcan-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/statcan-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": {
        "name": "Statistics Canada Economic Data API",
        "source": "Statistics Canada Web Data Service (www150.statcan.gc.ca)",
        "country": "Canada",
        "endpoints": [
            {
                "path": "/v1/indicators",
                "description": "List curated indicators"
            },
            {
                "path": "/v1/indicator",
                "description": "Latest value of one indicator (?code=cpi)"
            },
            {
                "path": "/v1/snapshot",
                "description": "All curated indicators at once"
            },
            {
                "path": "/v1/series",
                "description": "Raw time series for any vector (?vector=41690973&periods=12)"
            },
            {
                "path": "/v1/meta",
                "description": "This metadata document"
            }
        ],
        "disclaimer": "Unofficial proxy of the public Statistics Canada Web Data Service. Not affiliated with Statistics Canada. Data only; refer to StatCan for authoritative figures.",
        "indicators": [
            "cpi",
            "unemployment_rate",
            "gdp_monthly",
            "policy_rate",
            "population"
        ],
        "description": "Key Canadian economic indicators from the official Statistics Canada Web Data Service: the Consumer Price Index, unemployment rate, monthly real GDP, the Bank of Canada policy rate and the national population estimate. Look up a single indicator, read a full snapshot, or fetch the raw time series for any Statistics Canada vector. Values always resolve to the latest published reference period."
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:00.502Z",
        "request_id": "8eb42923-2531-4be3-9ab5-124fe4929ebc"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}