520+ commodities

Real-time commodity prices API for developers

Live market rates for gold, silver, WTI and Brent crude, natural gas and 520+ other assets. One REST call returns clean JSON you can ship in minutes.

  • Unlimited free trial for integrations
  • No credit card
  • Cancel anytime
Market boardOct 16, 20:34 UTC · 30D
  • GoldXAU
    4,168.36▼ 2.42%
    USD / T.oz
  • SilverXAG
    57.02▼ 9.79%
    USD / T.oz
  • WTI CrudeWTIOIL-FUT
    101.77▼ 0.58%
    USD / Bbl
  • Brent CrudeBRENTOIL-FUT
    109.78▲ 3.77%
    USD / Bbl
  • Natural GasNG-FUT
    3.13▲ 7.93%
    USD / MMBtu
Loading…
520+
Commodities
150+
Quote Currencies
99.97%
Uptime SLA
<80ms
Avg Response

Trusted by teams at

Valona IntelligenceRebel OilTía

Core features

Everything you need to build with commodity data

520+ Commodities in One API

Query live and historical prices for 520+ commodities — precious metals, energy, agriculture, and industrial materials — through a single JSON API instead of juggling multiple data vendors.

  • XAU
  • XAG
  • XPT
  • XPD
  • XCU-SPOT
  • WTIOIL-FUT
  • BRENTOIL-FUT
  • NG-FUT
  • + 512 more

Integrate in Under 5 Minutes

One API key, one REST call, one JSON response. Copy-paste examples take you from signup to your first live price in under 5 minutes — no SDK required.

$ curl "https://api.commoditypriceapi.com/v3/rates/latest?symbols=XAU" \
    -H "x-api-key: YOUR_API_KEY"

{ "success": true, "rates": { "XAU": 4141.4 } }

Per-Second Prices Where It Matters

Gold, silver, platinum, palladium, copper and WTI and Brent crude are refreshed every second on every plan, with bid and ask. Every other symbol updates as often as its market publishes.

  • XAU
  • XAG
  • XPT
  • XPD
  • XCU-SPOT
  • + 5 more

Prices in 150+ Currencies

Get any commodity price denominated in the currency you need with a single quote parameter. 150+ world currencies supported out of the box.

  • USD
  • EUR
  • GBP
  • JPY
  • CNY
  • INR
  • AED
  • CHF
  • + 142 more

Unlimited Free Trial for Integrations

Simple monthly or annual plans with no long-term contracts. Start with an unlimited free trial for integrations, then upgrade, downgrade, or cancel whenever you like.

  • Unlimited free trial for integrations
  • No card required
  • Cancel anytime
01Real-Time & Historical Rates

Live Rates and Historical Data, 1 Call Away.

Fetch the latest spot rates the moment markets move, or pull the closing rate for any past date — each is a single GET request to one endpoint.

Every response is clean JSON with a unit and timestamp per symbol, ready to drop straight into dashboards, alerts, or pricing engines.

02Time-Series & Fluctuation

Track Price Movement Across Any Date Range.

The time-series endpoint returns day-by-day rates between any two dates, ready for charting — no client-side aggregation needed.

The fluctuation endpoint computes absolute and percentage change for you, so building 24-hour, 7-day, or 30-day movers takes 1 call instead of a data pipeline.

03Developer-First API

5 REST Endpoints. 1 API Key. 0 SDKs.

Latest, historical, fluctuation, time-series, and symbols — 5 predictable REST endpoints cover the full workflow, all authenticated with a single x-api-key header.

Interactive documentation and a live playground let you test real requests before writing a line of code, and responses stay plain JSON on every plan.

New — Official MCP Server

Connect Claude, Cursor & any AI agent to live commodity prices

The official CommodityPriceAPI MCP server exposes gold, silver, oil, and 520+ commodities as AI tools. One npx command — no code required. Ask your AI assistant for live rates, historical data, and fluctuations directly.

npx -y @commoditypriceapi/mcpSet up the MCP server

1Send a request

curl "https://api.commoditypriceapi.com/v3/rates/latest?symbols=XAU,WTIOIL-FUT" \
  -H "x-api-key: YOUR_API_KEY"

2Get JSON back200 OK

application/json
{
  "success": true,
  "timestamp": 1703866777,
  "rates": {
    "XAU": 2066.98,
    "WTIOIL-FUT": 72.29
  },
  "metadata": {
    "XAU": {
      "unit": "T.oz",
      "quote": "USD"
    },
    "WTIOIL-FUT": {
      "unit": "Bbl",
      "quote": "USD"
    }
  }
}
Loading...

FAQ

Frequently asked questions

Data sources, update intervals, plans and limits. If your question isn't here, we usually reply within a day.

Contact support
  • We have over 520 commodities available on our platform. Please take a look at the full list of available in our documentation.

  • We get the prices from trusted organizations such as banks and other financial institutions. The prices we provide are not raw exchange prices. They are derived data — we deliver the mid-market price (the average of the bid and ask) from a regulated broker's real-time market feed, with the underlying pricing derived from exchange-traded futures (e.g., Brent → ICE Futures Europe, WTI → NYMEX). For classification purposes on your end, the data should be treated as aggregated/derived, not as a direct exchange feed.

  • Ten symbols are refreshed every second on every current plan: gold (XAU), silver (XAG), platinum (XPT), palladium (XPD), copper spot and futures (XCU-SPOT, XCU-FUT) and WTI and Brent crude, spot and futures (WTIOIL-SPOT, WTIOIL-FUT, BRENTOIL-SPOT, BRENTOIL-FUT). Each has its own endpoint, /v3/rates/latest/{symbol}, which returns bid and ask as well as the rate. On the legacy Lite plan they may be up to 10 minutes old.

  • A -SPOT symbol is a continuous cash price with no expiry date, so it moves smoothly — best for displays, conversions and alerts. A -FUT symbol follows the front-month exchange futures contract on a continuous basis — best when your numbers must match futures quotes. Neither is an exchange settlement or an official benchmark price.

  • You can check your usage for the month by going to the dashboard page or through the usage API.

  • No, we don't have any free plans. However, we do offer an unlimited free trial for integrations, and it does not require a credit card.

  • Yes, you can automatically extend your trial for up to three times if you choose to extend it within the trial period. Beyond the third extension, the process will require a manual review. You may submit a request to our support team, and after a thorough evaluation, we may approve an extension for your plan.

  • No, we don't provide refunds. However, you can cancel your subscription at any time.

  • No. The Basic, Standard and Advanced plans have no per-minute rate limit; only your monthly request quota applies. The legacy Lite plan is limited to 10 requests per minute.

Get your API key today

CommodityPriceAPI is the easiest way to get real-time and historical prices for a diverse range of commodities. Our API is easy to use and can be integrated into your application in minutes.