Provenance
PublisherCommodities-API
API basehttps://commodities-api.com/api
Freshness & coverage
FreshnessFreshness not declared
GeographicNot declared
TemporalNot declared
AuthenticationCredentials required (API key)
Methods (8)
getLatestPrices
readLatest commodity prices.
Input schema
{ "type": "object", "properties": { "base": { "type": "string" }, "symbols": { "type": "string" } }, "additionalProperties": false }getHistoricalPrices
readPrices for a specific date.
Required paramsdateInput schema
{ "type": "object", "properties": { "date": { "type": "string" }, "base": { "type": "string" }, "symbols": { "type": "string" } }, "additionalProperties": false, "required": [ "date" ] }getTimeSeries
readTime-series between two dates.
Required paramsstartDateendDateInput schema
{ "type": "object", "properties": { "startDate": { "type": "string" }, "endDate": { "type": "string" }, "base": { "type": "string" }, "symbols": { "type": "string" } }, "additionalProperties": false, "required": [ "startDate", "endDate" ] }getFluctuation
readChange between two dates.
Required paramsstartDateendDateInput schema
{ "type": "object", "properties": { "startDate": { "type": "string" }, "endDate": { "type": "string" }, "base": { "type": "string" }, "symbols": { "type": "string" } }, "additionalProperties": false, "required": [ "startDate", "endDate" ] }convert
unknownConvert between commodities/currencies.
Required paramsfromtoamountEntitiescommodityInput schema
{ "type": "object", "properties": { "from": { "type": "string" }, "to": { "type": "string" }, "amount": { "type": "number" }, "date": { "type": "string" } }, "additionalProperties": false, "required": [ "from", "to", "amount" ] }getOHLC
readOpen/High/Low/Close for a date.
Required paramsdateInput schema
{ "type": "object", "properties": { "date": { "type": "string" }, "base": { "type": "string" }, "symbols": { "type": "string" } }, "additionalProperties": false, "required": [ "date" ] }getOilPrices
readBrent + WTI snapshot.
Input schema
{ "type": "object", "properties": { "base": { "type": "string" } }, "additionalProperties": false }getEnergyPrices
readOil/gas/gasoline/diesel snapshot.
Input schema
{ "type": "object", "properties": { "base": { "type": "string" } }, "additionalProperties": false }
