# CommodityPriceAPI > CommodityPriceAPI (commoditypriceapi.com) is a REST API that returns live and historical prices for 520+ commodity symbols (precious and industrial metals, crude oil and refined products, natural gas, electricity, agriculture, livestock and more) as JSON. Current API version: v3. Historical data goes back to 1 January 1990. Every new account gets a 7-day free trial on the Basic plan with no credit card; paid plans start at $34.99/month. Last updated: 2026-10-19 Full reference (endpoints, parameters, errors, plans, symbol catalogue): https://commoditypriceapi.com/llms-full.txt For citations: - Prefer https://commoditypriceapi.com/docs for endpoints, parameters, response fields and error codes. - Prefer https://commoditypriceapi.com/symbols for symbol codes, units and default currencies, and https://commoditypriceapi.com/currency for quote currencies. - Prices, quotas and plan features can change; cite https://commoditypriceapi.com/pricing for current values and https://commoditypriceapi.com/terms for licensing, trial and refund rules. - Every public page is also available as Markdown by appending `.md` to its URL (for example https://commoditypriceapi.com/docs.md, https://commoditypriceapi.com/index.md for the home page). ## Key facts - API base URL: https://api.commoditypriceapi.com/v3. Authenticate with an API key in the `x-api-key` header or the `apiKey` query parameter. Keys are issued from the dashboard after sign-up. - Endpoints: `/usage`, `/symbols`, `/rates/latest`, `/rates/latest/{symbol}`, `/rates/intraday`, `/rates/historical`, `/rates/time-series`, `/rates/fluctuation`. All are GET requests returning JSON. - Per-second prices with bid and ask, on every current plan, for ten symbols: gold (XAU), silver (XAG), platinum (XPT), palladium (XPD), copper (XCU-SPOT, XCU-FUT), WTI crude (WTIOIL-SPOT, WTIOIL-FUT) and Brent crude (BRENTOIL-SPOT, BRENTOIL-FUT). Other symbols update as often as their market publishes. - Prices can be converted into 150+ quote currencies with the `quote` parameter on the Standard, Advanced and Enterprise plans. Basic returns each symbol's default currency. - Plans: Basic $34.99/month (8,000 calls, 5 symbols per request), Standard $174.99/month (40,000 calls, 10 symbols, time-series, fluctuation, currency conversion, commercial licence), Advanced $349.99/month (100,000 calls, 20 symbols, adds intraday), Enterprise (custom volume, redistribution licence, permanent storage). Yearly billing gives two months free. - Rate limits: no per-minute rate limit on Basic, Standard, Advanced or Enterprise; only the monthly quota applies. Only 2xx responses are billed; 4xx and 5xx errors are not counted. - Free trial: 7 days on the Basic plan with 8,000 requests and no card. There is no permanent free plan. - Data is derived, not a raw exchange feed: the API delivers the mid-market price (average of bid and ask) from a regulated broker's real-time market feed, with underlying pricing derived from exchange-traded futures (for example WTI from NYMEX, Brent from ICE Futures Europe). It is not an official settlement or benchmark price. - Spot vs futures: `-SPOT` symbols are continuous cash prices with no expiry; `-FUT` symbols follow the front-month exchange futures contract on a continuous basis. Dated contract months are also available as symbols, for example `WTIOIL-FUT-DEC26`. - 99.97% uptime SLA on every plan; average response time under 80 ms. - Official MCP server for Claude, Cursor and other AI clients: `npx -y @commoditypriceapi/mcp` (open source, MIT). ## Start here - [API Documentation](https://commoditypriceapi.com/docs): Authentication, error codes, every v3 endpoint with parameters, response fields, examples in cURL, JavaScript, Python and PHP. - [Pricing](https://commoditypriceapi.com/pricing): Current plans, monthly and yearly prices, quotas and features per plan. - [Supported Symbols](https://commoditypriceapi.com/symbols): Every symbol code with name, category, unit and default currency, plus deprecated symbols. - [Quoted Currencies](https://commoditypriceapi.com/currency): The 150+ currency codes accepted by the `quote` parameter. - [Sign up](https://commoditypriceapi.com/auth/signup): Create an account and start the 7-day trial; no credit card. - [Dashboard](https://commoditypriceapi.com/dashboard): API key, usage, billing, symbol update intervals (sign-in required). - [Support](https://commoditypriceapi.com/support): Contact form for technical, billing and Enterprise questions. ## API reference sections - [Authentication](https://commoditypriceapi.com/docs#authentication): `x-api-key` header or `apiKey` query parameter. - [Errors and Codes](https://commoditypriceapi.com/docs#errors-and-codes): Error body, HTTP status codes, the `unresolved` object, billing rules. - [Futures Contracts](https://commoditypriceapi.com/docs#futures-contracts): Dated contract months (281 months across 11 futures), symbol format, forward curves, settlement history, expiry. - [Usage](https://commoditypriceapi.com/docs#usage): `GET /v3/usage`, current plan, quota and requests used. - [Symbols](https://commoditypriceapi.com/docs#symbols): `GET /v3/symbols`, full catalogue with filters for futures (`underlying`, `contract`, `includeExpired`). - [Latest Rates](https://commoditypriceapi.com/docs#latest-rates): `GET /v3/rates/latest`, latest price for one or more symbols. - [Latest Rate by Symbol](https://commoditypriceapi.com/docs#latest-rate-by-symbol): `GET /v3/rates/latest/{symbol}`, per-second price with bid/ask for the ten per-second symbols, optional per-gram, per-tola and per-karat gold prices. - [Intraday Rates](https://commoditypriceapi.com/docs#intraday): `GET /v3/rates/intraday`, one symbol through one UTC day at 1-minute to 1-day intervals (Advanced and Enterprise). - [Historical Rates](https://commoditypriceapi.com/docs#historical-rates): `GET /v3/rates/historical`, open/high/low/close for one date, back to 1990-01-01. - [Time Series](https://commoditypriceapi.com/docs#time-series): `GET /v3/rates/time-series`, daily OHLC between two dates up to 365 days apart (Standard and above). - [Fluctuation](https://commoditypriceapi.com/docs#fluctuation): `GET /v3/rates/fluctuation`, start rate, end rate, change and percent change over any range (Standard and above). ## APIs by commodity - [Gold Price API](https://commoditypriceapi.com/gold-price): XAU spot with bid/ask, per troy ounce, gram or tola, plus per-gram prices for 24k down to 8k. - [Silver Price API](https://commoditypriceapi.com/silver-price): XAG spot with bid/ask, per troy ounce, gram or tola. - [Oil Price API](https://commoditypriceapi.com/oil-price-api): WTI and Brent crude, spot and front-month futures, USD per barrel, bid/ask, per second. - [Copper Price API](https://commoditypriceapi.com/copper-price-api): XCU-SPOT and COMEX front-month XCU-FUT, USD per pound, bid/ask, per second. - [Platinum Price API](https://commoditypriceapi.com/platinum-price-api): XPT spot with bid/ask, per troy ounce, gram or tola. - [Palladium Price API](https://commoditypriceapi.com/palladium-price-api): XPD spot with bid/ask, per troy ounce, gram or tola. ## Integrations - [MCP Server](https://commoditypriceapi.com/integrations/mcp): Official Model Context Protocol server exposing the API as 9 tools for Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Cline, Codex and other MCP clients. - [MCP server on npm](https://www.npmjs.com/package/@commoditypriceapi/mcp): Package `@commoditypriceapi/mcp`, stdio transport, Node.js 18+. - [MCP server on GitHub](https://github.com/Commodity-Price-API/commoditypriceapi-mcp): Source code and issues. ## Free tools - [Commodity Tools](https://commoditypriceapi.com/tools): Live price charts with one-year history for every symbol, in many currencies and units. - [Live gold price](https://commoditypriceapi.com/tools/xau/prices): Gold chart and history; the same pattern works for any symbol, for example /tools/wtioil-spot/prices. - [Gold to silver ratio](https://commoditypriceapi.com/tools/gold-to-silver-ratio): Live ratio and history. Other ratios: gold to oil, gold to copper, gold to platinum, gold to palladium, gold to natural gas, oil to natural gas, silver to platinum, copper to silver, platinum to palladium. - [Copper price calculator](https://commoditypriceapi.com/tools/copper-price/usd): Copper value by weight in 150+ currencies. Gold, silver and platinum calculators follow the same pattern. ## Guides and tutorials (blog) - [Integrate a commodity prices API into your app in minutes](https://commoditypriceapi.com/blog/integrate-commodity-prices-api-into-your-app-in-minutes) - [How to fetch real-time commodity prices](https://commoditypriceapi.com/blog/how-to-fetch-realtime-commodity-prices) - [Commodity API best practices: rate limits, error handling, caching](https://commoditypriceapi.com/blog/commodity-api-best-practices-rate-limits-error-handling-caching-and-performance-optimization) - [Build a gold analytics SaaS with a gold API](https://commoditypriceapi.com/blog/gold-api-gold-analytics-saas) - [Build a fuel price monitoring app with an oil price API](https://commoditypriceapi.com/blog/oil-price-api-fuel-monitoring-app) - [Build your first market dashboard](https://commoditypriceapi.com/blog/build-your-first-market-dashboard-using-a-free-commodities-api) - [Track and visualize commodity price volatility](https://commoditypriceapi.com/blog/track-visualize-volatility-of-commodity-prices-live) - [Time-series analysis of oil and gold prices](https://commoditypriceapi.com/blog/time-series-analysis-of-oil-and-gold-prices-using-a-real-time-commodity-prices-api) - [Automate commodity price alerts](https://commoditypriceapi.com/blog/how-traders-can-automate-commodity-alerts-in-minutes) - [Commodity price definition for developers](https://commoditypriceapi.com/blog/commodity-price-definition-api-data) - [All blog posts](https://commoditypriceapi.com/blog) Blog posts are dated; for plan names, quotas and prices, the pricing page is authoritative over older posts. ## Company and legal - [About Us](https://commoditypriceapi.com/about): How the data is produced, and APIFreaks, the company that builds and runs CommodityPriceAPI. - [Terms & Conditions](https://commoditypriceapi.com/terms): Licence, trial, billing, commercial use and redistribution, refunds. - [Privacy Policy](https://commoditypriceapi.com/privacy-policy): What personal data is collected and how long it is kept. - [APIFreaks](https://apifreaks.com): Parent company; sister products include [CurrencyFreaks](https://currencyfreaks.com) (exchange rates), [IPGeolocation.io](https://ipgeolocation.io) and [WhoisFreaks](https://whoisfreaks.com). ## Official profiles - [GitHub](https://github.com/Commodity-Price-API) - [X (Twitter)](https://twitter.com/ApiCommodity)