Aller au contenu
GET /v1/meta

Service metadata and full commodity 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/commodities-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/commodities-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/commodities-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/commodities-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/commodities-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 public chart API (live)",
        "service": "commodities-api",
        "endpoints": {
            "GET /v1/list": "The whole commodity board in one call.",
            "GET /v1/meta": "This document (with the full commodity list).",
            "GET /v1/category": "A category board ranked by day change (category=energy|grains|softs|livestock).",
            "GET /v1/commodity": "One commodity quote (commodity=wti|natgas|corn|coffee|… or aliases like oil, gas)."
        },
        "categories": [
            "energy",
            "grains",
            "softs",
            "livestock"
        ],
        "commodities": {
            "wti": "Crude Oil (WTI)",
            "corn": "Corn",
            "oats": "Oats",
            "brent": "Brent Crude Oil",
            "cocoa": "Cocoa",
            "sugar": "Sugar No.11",
            "wheat": "Wheat",
            "coffee": "Coffee",
            "cotton": "Cotton",
            "natgas": "Natural Gas",
            "gasoline": "RBOB Gasoline",
            "leanhogs": "Lean Hogs",
            "soybeans": "Soybeans",
            "heatingoil": "Heating Oil",
            "livecattle": "Live Cattle",
            "soybeanoil": "Soybean Oil",
            "orangejuice": "Orange Juice",
            "soybeanmeal": "Soybean Meal",
            "feedercattle": "Feeder Cattle"
        },
        "description": "Live commodity futures prices from Yahoo Finance: for any energy, grain, soft or livestock commodity, the front-month futures price, previous close, day change (absolute and percent), day high/low and 52-week high/low, with currency and quoting unit. Look one up, pull a category board (energy, grains, softs, livestock) ranked by the day's move, or get the whole board. Live, no key. Distinct from the precious-metals API — this is the energy, agricultural and soft-commodity complex.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:26.477Z",
        "request_id": "b7d0e10a-9b1f-4339-9000-9feac8aa38d4"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}