Vai al contenuto
GET /v1/meta

Service metadata and sector list

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/sectors-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}