/v1/meta
Service metadata and full commodity list
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}