Aller au contenu
GET /v1/meta

Service metadata + sector breakdown

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/sp500-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/sp500-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sp500-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sp500-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/sp500-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": {
        "sectors": {
            "Energy": 21,
            "Materials": 26,
            "Utilities": 31,
            "Financials": 76,
            "Health Care": 59,
            "Industrials": 80,
            "Real Estate": 31,
            "Consumer Staples": 36,
            "Communication Services": 23,
            "Consumer Discretionary": 48,
            "Information Technology": 72
        },
        "service": "sp500-api",
        "endpoints": {
            "GET /v1/list": "List constituents (limit, offset, sector= to filter).",
            "GET /v1/meta": "This document.",
            "GET /v1/search": "Search constituents by symbol, name, sub-industry or HQ (q=).",
            "GET /v1/sector": "Companies in a GICS sector (sector=, e.g. Industrials).",
            "GET /v1/company": "Constituent by ticker symbol (symbol=, e.g. AAPL) or name (name=, e.g. Apple)."
        },
        "description": "S&P 500 index constituents: ticker symbol, company name, GICS sector & sub-industry, headquarters, date added, SEC CIK and year founded. Look up by symbol or name, filter by GICS sector, search, or list the index. Source: Wikipedia/datasets S&P 500 constituents. No key.",
        "total_constituents": 503
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:09.890Z",
        "request_id": "f473ebf9-fa1c-4d6a-b285-65a7fbd61968"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}