commodities
commodities.sh price
10000 (raw units)
price
14
calls / 30d
8
unique payers
2026-09-17
updated
Provider
api.commodities.sh · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x0D4Ee4E945601865E3A5bC5a188e4a9CF23c00d5",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"as_of": "2026-07-20",
"derived": false,
"freshness_class": "eod",
"instrument": "CL",
"license_tag": "us_gov_public",
"observed_at": "2026-07-24T12:00:00.000Z",
"quality": "official",
"source": {
"name": "EIA",
"series_id": "PET.RWTC.D",
"url": "https://api.eia.gov/v2/seriesid/PET.RWTC.D"
},
"unit": "USD/bbl",
"value": 70.12
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"as_of": {
"type": "string"
},
"derived": {
"type": "boolean"
},
"freshness_class": {
"type": "string"
},
"instrument": {
"type": "string"
},
"license_tag": {
"type": "string"
},
"observed_at": {
"type": "string"
},
"quality": {
"type": "string"
},
"unit": {
"type": "string"
},
"value": {
"type": "number"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.commodities.sh/v1/price/CL" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.commodities.sh/v1/price/CL");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.commodities.sh/v1/price/CL")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4884.json, and this resource appears in /discovery/resources and /discovery/search.