commodities

Available commodity prices

https://docs.economicsapi.com/endpoints/getcommoditiesavailable
gethttps://api.economicsapi.com/v1/commodities/available

Find names for commodity prices with q. Returns matching names and aliases, not prices or observations. Copy a returned slug or readable alias into /v1/commodities/{slug} for the latest value, or append /history. Each instrument defines its benchmark, unit, frequency and source. Discovery is unmetered.

curl -X GET "https://api.economicsapi.com/v1/commodities/available?q=gold" \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"

Authorization

Authorizationstringheaderrequired

Bearer token. API key from your economicsapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.

Query parameters

qstringrequired

Name or alias to find

min length 1

Example: "gold"

limitintegerdefault 50

min 1 · max 100

offsetintegerdefault 0

Use next_offset from the previous response

min 0

Response

200Successful Responseapplication/json
dataAvailableInstrument[]required
next_offsetinteger | null
401Missing or invalid API keyapplication/json
errorstring
messagestring
request_idstring
422Validation Errorapplication/json
detailValidationError[]
429Rate limit exceededapplication/json
errorstring
messagestring
request_idstring
Response
{
  "data": [
    {
      "slug": "gold-world-bank-usd-troy-ounce",
      "name": "Gold monthly benchmark",
      "aliases": [
        "gold",
        "gold monthly benchmark"
      ],
      "category": "metals",
      "currency": "USD",
      "unit": "troy_ounce",
      "frequency": "monthly"
    }
  ]
}