Zum Inhalt springen
GET /v1/meta

Service metadata and sector list

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/sectors-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sectors-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sectors-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/sectors-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "source": "Yahoo Finance SPDR sector ETFs (live)",
        "sectors": {
            "energy": "Energy (XLE)",
            "materials": "Materials (XLB)",
            "utilities": "Utilities (XLU)",
            "financials": "Financials (XLF)",
            "healthcare": "Health Care (XLV)",
            "technology": "Technology (XLK)",
            "industrials": "Industrials (XLI)",
            "real_estate": "Real Estate (XLRE)",
            "communication": "Communication Services (XLC)",
            "consumer_staples": "Consumer Staples (XLP)",
            "consumer_discretionary": "Consumer Discretionary (XLY)"
        },
        "service": "sectors-api",
        "endpoints": {
            "GET /v1/meta": "This document (with the full sector list).",
            "GET /v1/sector": "One sector's performance (sector=technology|energy|… or etf=XLK).",
            "GET /v1/sectors": "All 11 sectors ranked by the day's move, with leader/laggard."
        },
        "description": "Live S&P 500 sector performance from Yahoo Finance via the eleven SPDR sector ETFs: each GICS sector (Technology, Financials, Energy, Health Care, Consumer Discretionary, Consumer Staples, Industrials, Materials, Utilities, Real Estate, Communication Services) with its ETF price, day change, day high/low and 52-week high/low. Pull the whole board ranked by the day's move, or one sector. Live, no key. Distinct from index-level, single-stock and cross-asset-ratio APIs — this is the equity-sector performance breakdown.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:03.480Z",
        "request_id": "7fe9afba-0efd-4d21-9adf-ae5bdd89a78d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}