Public APIs

๐ŸŽ Black Friday: 40% off the first payment of every plan, and Skip the queue for $29, through December 6.

CommodityPriceAPI is in the queue

It will be published on January 1, 2027.

From $29 instead of $49, live within minutes

  1. Submitted

    Received for review.

  2. In the queue

    Until January 1, 2027.

  3. Live

    Listed on Public APIs, with a link to its website.

CommodityPriceAPI favicon

CommodityPriceAPI

Finance

Real-time and historical prices for 70+ global commodities. JSON API for fintech, trading, and analytics. Fast, reliable, developer-friendly.

CommodityPriceAPI's website screenshot

About CommodityPriceAPI

CommodityPriceAPI is a REST API providing real-time and historical price data for 240+ commodities, including precious metals, energy products such as WTI Crude and Brent Oil, agricultural goods, and industrial materials. It returns JSON responses with prices quotable in 150+ currencies, and covers five endpoints: symbols, latest rates, historical rates, time series, and fluctuation. Historical data is available back to January 1, 1990. Data updates on a 60-second cycle, and authentication is handled via an API key sent as a query parameter or an x-api-key header.

The API is intended for developers building applications such as dashboards, pricing engines, or alerting systems that require commodity price data without integrating multiple data vendors. Requests are billed per successful (2xx) response; error responses are not counted against usage quotas. A version 2 of the API remains available alongside the current v3.

The product also offers an official MCP server, installable via a single npx command, that exposes commodity price data as tools for AI assistants and agents such as Claude and Cursor. Plans are offered on a monthly or annual basis with a 7-day free trial, no credit card required, and no long-term contract.

Key features

  • Real-time and historical prices for 240+ commodities via one JSON API
  • Prices available in 150+ quote currencies
  • Time-series endpoint for day-by-day rates and a fluctuation endpoint for percentage/absolute change
  • Historical data available back to January 1, 1990
  • 5 REST endpoints (latest, historical, fluctuation, time-series, symbols) authenticated with a single API key
  • Official MCP server connects Claude, Cursor, and other AI agents to live commodity data via npx

Frequently asked questions

Is there a free tier or trial?

Yes, CommodityPriceAPI offers a 7-day free trial with no credit card required, and plans can be upgraded, downgraded, or cancelled anytime.

How do I authenticate API requests?

Requests are authenticated with an API key sent either as an apiKey query parameter or an x-api-key request header.

What data format does the API use?

The API returns plain JSON responses across 5 REST endpoints, with interactive documentation and a live playground for testing requests.

How far back does historical data go?

Historical rates are available going back to January 1, 1990.

Does it support AI agent integrations?

Yes, an official MCP server exposes commodity prices as AI tools, letting assistants like Claude and Cursor query live rates via a single npx command.

Ad
SerpApi - Search API favicon

SerpApi - Search API

SerpApi's Search API makes it easy and fast to scrape Google and other search engines.

Learn more

Featured products

  • SerpApi - Search API favicon

Show your product to thousands of developers

ยท 100k monthly pageviews
ยท 9k newsletter subscribers

Advertise your product