Loading
Loading
Get real-time prices for 245+ commodities in a single request. Specify one or more commodity symbols to receive current market prices, refreshed every minute, with unit and currency metadata.
Pass a comma-separated list of commodity symbols to get current prices. An optional quote parameter converts prices into a desired currency. If some symbols can't be resolved, the API returns 206 Partial Content with an unresolved object instead of failing the whole request.
Authorize every request with your API key, passed either as a header or as a query parameter:
X-apiKeyapiKeyThis is version v2.0 of the API.
symbols is required. Omitting it returns a 400 error.
formatoptionalStringdefault: jsonjson.symbolsrequiredStringComma-separated list of commodity symbols. Visit the supported symbols list for all valid values.
quoteoptionalStringTarget currency for the exchange rate. Defaults to the market currency of each commodity.
A successful request returns a 200 OK with current prices for each symbol and metadata describing the unit and quote currency.
successtrue for successful requests.
timestampUnix timestamp indicating when the response was generated.
Object where each key is a commodity symbol and the value is the current price.
Object containing unit and currency metadata for each requested commodity.
Present only on a 206 Partial Content response, when some requested symbols could not be resolved. Object where each key is an unresolved symbol and the value contains a detail message.
warningPresent only when currency conversion for the requested quote is temporarily unavailable; rates are then returned in each commodity's default currency instead.
Besides the response body, every response carries custom headers you can use to track credit usage, and concurrency usage on endpoints that enforce a concurrency limit. See the Custom Response Headers documentation and the endpoints with concurrency limits for more details.
X-Concurrent-Threadsheaderconcurrency-limited endpointsSpecifies the maximum number of concurrent requests allowed.
X-Concurrent-Threads-Activeheaderconcurrency-limited endpointsIndicates the number of active concurrent requests being processed.
X-AF-Credits-Costheaderall responsesSpecifies the number of credits consumed by the current request.
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
please pass correct parameters
Maximum symbols per request exceeded
The symbol is not supported, please visit the documentation for a list of supported symbols
The quote currency is invalid, please visit the documentation for a list of valid quote currencies