Aller au contenu
GET /v1/meta

Service metadata and sector list

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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