Zum Inhalt springen
GET /v1/meta

Service metadata + sector breakdown

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/sp500-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}