/v1/category
A category board ranked by day change
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/commodities-api/v1/category" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/commodities-api/v1/category", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/commodities-api/v1/category");
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/category",
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": {
"count": 5,
"category": "energy",
"commodities": [
{
"name": "Natural Gas",
"unit": "MMBtu",
"as_of": "2026-06-09T02:51:54.000Z",
"price": 3.15,
"quote": "USD per MMBtu",
"change": 0.01,
"symbol": "NG=F",
"day_low": 3.13,
"category": "energy",
"currency": "USD",
"day_high": 3.15,
"commodity": "natgas",
"change_pct": 0.16,
"week52_low": 2.48,
"week52_high": 7.83,
"previous_close": 3.15
},
{
"name": "RBOB Gasoline",
"unit": "gallon",
"as_of": "2026-06-09T02:52:08.000Z",
"price": 3.01,
"quote": "USD per gallon",
"change": -0.01,
"symbol": "RB=F",
"day_low": 3.01,
"category": "energy",
"currency": "USD",
"day_high": 3.02,
"commodity": "gasoline",
"change_pct": -0.33,
"week52_low": 1.67,
"week52_high": 3.82,
"previous_close": 3.02
},
{
"name": "Brent Crude Oil",
"unit": "barrel",
"as_of": "2026-06-09T02:50:58.000Z",
"price": 93.61,
"quote": "USD per barrel",
"change": -0.64,
"symbol": "BZ=F",
"day_low": 93.48,
"category": "energy",
"currency": "USD",
"day_high": 94.52,
"commodity": "brent",
"change_pct": -0.68,
"week52_low": 58.72,
"week52_high": 126.1,
"previous_close": 94.25
},
{
"name": "Crude Oil (WTI)",
"unit": "barrel",
"as_of": "2026-06-09T02:52:20.000Z",
"price": 90.65,
"quote": "USD per barrel",
"change": -0.65,
"symbol": "CL=F",
"day_low": 90.48,
"category": "energy",
"currency": "USD",
"day_high": 91.55,
"commodity": "wti",
"change_pct": -0.71,
"week52_low": 54.98,
"week52_high": 119.48,
"previous_close": 91.3
},
{
"name": "Heating Oil",
"unit": "gallon",
"as_of": "2026-06-09T02:46:03.000Z",
"price": 3.57,
"quote": "USD per gallon",
"change": -0.03,
"symbol": "HO=F",
"day_low": 3.57,
"category": "energy",
"currency": "USD",
…