Naar de inhoud
GET /v1/commodities

Supported commodities and groups

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/commodityseasonality-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Supported commodities. Pass key/name/alias as commodity= to /v1/seasonality, or month= (1-12 or name) to /v1/month.",
        "count": 20,
        "groups": [
            "energy",
            "metals",
            "grains",
            "softs",
            "livestock"
        ],
        "source": "Yahoo Finance",
        "commodities": [
            {
                "key": "crude_oil",
                "name": "WTI Crude Oil",
                "group": "energy",
                "symbol": "CL=F"
            },
            {
                "key": "brent",
                "name": "Brent Crude Oil",
                "group": "energy",
                "symbol": "BZ=F"
            },
            {
                "key": "natural_gas",
                "name": "Natural Gas",
                "group": "energy",
                "symbol": "NG=F"
            },
            {
                "key": "gasoline",
                "name": "RBOB Gasoline",
                "group": "energy",
                "symbol": "RB=F"
            },
            {
                "key": "heating_oil",
                "name": "Heating Oil",
                "group": "energy",
                "symbol": "HO=F"
            },
            {
                "key": "gold",
                "name": "Gold",
                "group": "metals",
                "symbol": "GC=F"
            },
            {
                "key": "silver",
                "name": "Silver",
                "group": "metals",
                "symbol": "SI=F"
            },
            {
                "key": "copper",
                "name": "Copper",
                "group": "metals",
                "symbol": "HG=F"
            },
            {
                "key": "platinum",
                "name": "Platinum",
                "group": "metals",
                "symbol": "PL=F"
            },
            {
                "key": "palladium",
                "name": "Palladium",
                "group": "metals",
                "symbol": "PA=F"
            },
            {
                "key": "corn",
                "name": "Corn",
                "group": "grains",
                "symbol": "ZC=F"
            },
            {
                "key": "wheat",
                "name": "Wheat",
                "group": "grains",
                "symbol": "ZW=F"
            },
            {
                "key": "soybeans",
                "name": "Soybeans",
                "group": "grains",
                "symbol": "ZS=F"
            },
            {
                "key": "soybean_oil",
                "name": "Soybean Oil",
                "group": "grains",
                "symbol": "ZL=F"
            },
            {
                "key": "coffee",
                "name": "Coffee",
                "group": "softs",
                "symbol": "KC=F"
            },
            {
                "key": "sugar",
                "name": "Sugar",
                "group": "s
…