Commodity Price API – Real-Time & Historical Commodities Data

Commodity Price API – Real-Time Commodity Data (Gold, Oil, Metals)

Access real-time and historical commodity prices via API. Get gold, oil, metals and commodities data in structured JSON format.

Request Your API Key →
Commodity Prices API (Commodity Price API) Diagram showing how to get real-time and historical commodity prices in JSON format
Choose a commodity, send a GET request, and receive real-time and historical JSON commodity price data.

Commodities as the Pulse of the Global Economy

Commodity prices influence inflation, global trade, and production costs across industries. The Commodity Price API provides access to real-time and historical commodity price data, including gold, oil, metals, and agricultural products in a structured format.

Track key commodities such as oil, gold, coffee, and steel in a single API feed, with historical time series and frequent updates. Instead of combining multiple data sources, access consistent commodity price data from one API.

Supported Commodities

Commodity Data Coverage by Category

The Commodity Price API organizes data across major market sectors, providing structured and reliable price coverage for key global commodities.

Metals & Mining

Includes gold, silver, copper, aluminum, lithium, steel, and other industrial metals with long-term historical data.

Energy & Fuels

Covers crude oil (WTI, Brent), natural gas, coal, gasoline, and other energy commodities.

Industrial Inputs

Includes cobalt, nickel, zinc, fertilizers, rare earths, silicon, and other key industrial materials.

Agricultural & Food

Coffee, wheat, corn, sugar, livestock, dairy, and other agricultural commodities with broad historical coverage.

All commodity price data is sourced from official market reports, exchanges, and verified providers to ensure accuracy and global consistency.

Example Request

            
import requests

url = "https://apidata.fin2dev.com/v1/commodities"
params = {"key":"YOUR_API_KEY","commodity_name":"gold"}

data = requests.get(url, params=params).json()

print(data["result"]["output"])
        
        
<?php
$url  = "https://apidata.fin2dev.com/v1/commodities?key=YOUR_API_KEY&commodity_name=gold";
$data = json_decode(file_get_contents($url), true);

echo $data["result"]["output"] . PHP_EOL;
?>

Example Response

{
    "status": {
        "code": 200,
        "message": "OK",
        "details": ""
    },
    "result": {
        "output": [
            {
                "commodity_name": "gold",
                "commodity_unit": "usd/t.oz",
                "commodity_price": "4571.63",
                "price_change_day": "-24.48",
                "percentage_day": "-0.53%",
                "percentage_week": "-3.56%",
                "percentage_month": "1.24%",
                "percentage_year": "39.67%",
                "datetime": "2026-04-22T10:29:00"
            }
        ]
    }
}

How Industries and Traders Rely on Price Data

Commodity markets are at the heart of risk management, cost forecasting, and investment strategies. With the Commodity Prices API, you can:

Track Volatility

Monitor oil or grain prices and adjust hedging models.

Compare Long-Term Cycles

Analyze metals like copper and aluminum to forecast demand.

Analyze Agricultural Risks

Anticipate risks for food producers based on price shocks.

Study Energy Shifts

Optimize manufacturing and logistics costs.

From Volatility to Insight

Whether you are powering trading dashboards, monitoring supply chain risks, or running economic research, the API transforms raw commodity data into actionable insights. By bridging real-time markets with deep historical context, it enables both day-to-day decisions and long-horizon analysis.

Powering Global Commodity Intelligence. Request your API key today and integrate real-time and historical commodity intelligence into your platform.
For inquiries, contact [email protected].

Interactive API Documentation

Explore endpoints, try requests, and view live responses — no server required.

Formats to Download the Data

Available on request. If interested, please contact us.

JSON REST API

The primary format. Lightweight, easy to parse in JavaScript, Python, etc. Full filtering support.

  • Real-time streaming
  • Pagination and sorting
  • Rate limits with headers

XML Feeds

Ideal for legacy enterprise systems and ERP integrations.

  • Schema-defined structure
  • Compatible with Java/.NET
  • Optional XSD validation

Bulk CSV/JSON Downloads

Download full historical datasets (up to 15+ years) for offline analysis.

  • Daily snapshots (compressed)
  • One-click export via dashboard
  • S3/GCS bucket access available

Developer Notes

Authentication

All requests require a valid key parameter. Keys are issued upon registration and tied to your account. Rotate keys via the developer portal.

Rate Limits

Rate limits are applied based on your subscription tier. Basic, Popular, and Premium plans offer progressively higher request allowances.

Data Freshness

Commodity price data is updated every 5–15 minutes. Historical datasets are refreshed daily to ensure accuracy and consistency.

Global Coverage

The API covers major commodity markets including metals, energy, agriculture, industrial inputs, and food-related commodities across global regions.

Pricing

Start with a small plan for testing, then scale as your application grows. This overview keeps pricing simple and easy to compare.

Basic

Entry plan for testing and small projects
Intro offer
$9
  • 500 calls included
  • 10 calls per minute

Premium

For scaling applications
Higher volume
$49
  • 10,000 calls included
  • 30 calls per minute
Note: This is a simplified pricing overview for quick comparison. Full plan details can be placed on the pricing page.

API Documentation

View the complete Commodity Prices API documentation, including endpoint descriptions, request parameters, JSON response examples, and integration guides.


Developer Resources

Commodity Prices API GitHub Repository