CommodityPriceAPI is a data infrastructure company. We collect, validate, and deliver real-time and historical prices for 130+ commodities — gold, silver, WTI and Brent crude, natural gas, wheat, corn, copper and more — through a REST API that a developer can integrate in an afternoon. The product is owned and operated by JFreaks Software Solutions, a developer-focused SaaS company headquartered in Lahore, Pakistan.
Commodity prices move the real economy. They set the cost of a gold necklace in a retail shop, the margin on a fuel delivery contract, the hedge on a wheat harvest, and the valuation of a portfolio. Yet for most of the software industry, getting those numbers programmatically has meant one of two bad options: an enterprise market-data terminal with a procurement cycle and a five-figure contract, or a scraped, unversioned feed that breaks without warning.
We did not set out to build this — our customers asked for it. CurrencyFreaks, our foreign exchange API, now serves 1,026 currencies and carried four precious metals alongside them. That small addition kept generating the same request: teams already trusting us for FX wanted deeper gold and silver, then crude oil, natural gas, wheat and copper — same key, same response shape, same support.
Rather than bolt a half-solution onto an FX product, we built commodities as its own service, with the same discipline JFreaks has applied to data infrastructure for over a decade across IPGeolocation.io and WhoisFreaks. The hard part of a data product is never the endpoint — it is reconciling messy sources, normalizing units, watching the pipeline at 3am, and keeping the response shape stable for years so nobody's integration breaks.
The result is the product our users specified and our engineers wanted to use: one API key, one predictable JSON shape, prices in the currency and unit you actually need, historical data that agrees with live data, and pricing published on a public page instead of quoted on a sales call.
Our prices are aggregated from global trading venues and CFD-based feeds rather than a single daily benchmark fix. Raw quotes are ingested continuously, cross-checked between sources to catch stale ticks and outliers, then written into a single canonical store that every endpoint reads from.
Conversion happens at request time, not at ingest time. That is why the same gold price can come back to you in USD per troy ounce, EUR per gram, or PKR per tola without you maintaining a conversion table — and why a 22K carat breakdown and a raw spot rate stay mathematically consistent.
Because a price feed is only as good as the day it fails, the pipeline is monitored end to end and the service carries a 99.97% uptime SLA on every plan, including the cheapest one. Our own website runs on the same public API, on the same keys our customers use — when something degrades, we feel it first.
We are also clear about what we are not. We are a price data provider, not an exchange, a broker, or an investment adviser. We publish our symbol and currency coverage openly so you can verify fit before you write a line of code.
Six principles that decide what we build, and what we refuse to ship.
We run our own ingestion, normalization, and validation pipelines. Prices arrive from aggregated global venues, get reconciled against each other, and are converted into the units and currencies your application actually asks for.
Every request is TLS-encrypted and key-authenticated, backed by a 99.97% uptime SLA on all plans. Sub-80ms average response times keep the API safe to sit in a user-facing request path.
Rates can be denominated in 150+ currencies and returned in troy ounces, grams, or tola — so a fintech in Karachi, a broker in London, and a jeweller in Dubai can all use the same endpoint.
Commodity markets trade around the clock, five days a week. Our feeds track extended trading hours instead of a single daily fix, so the numbers you show match what traders see.
Latest rates, historical snapshots, time-series ranges, and period-over-period fluctuation come from one consistent dataset — so a backtest and a live dashboard never disagree.
Plain REST, plain JSON, no mandatory SDK, no proprietary terminal. If you can make an HTTP request, you are integrated — and you can leave whenever you want.
Seven endpoints cover the entire product surface — five general ones plus dedicated gold and silver routes. There is no sprawling object model to learn and no versioning treadmill — everything is a GET request with an API key header and a JSON response.
The full reference, with copy-pasteable examples in curl, JavaScript, Python and PHP, lives in our documentation.
Read the documentation/rates/latestCurrent prices for any supported symbol, in any supported currency and unit.
/rates/historicalPrices as they stood on a specific date, for backtests and reconciliation.
/rates/time-seriesA continuous range of prices for charting and trend analysis.
/rates/fluctuationChange and percentage change between two dates, computed for you.
/symbolsThe full, machine-readable catalogue of what we cover.
/rates/latest/xauA dedicated gold endpoint — spot XAU with carat breakdowns, updated every second on Plus, Premium and Enterprise.
/rates/latest/xagThe same for silver — spot XAG with carat breakdowns and 1-second updates on Plus, Premium and Enterprise.
Our terms of service and privacy policy set out exactly what we do with your data and what you can expect from the service. If something in them is unclear, ask us — we would rather answer the question than have you guess.
CommodityPriceAPI is owned and operated by JFreaks Software Solutions, a bootstrapped, customer-funded software company based in Lahore, Pakistan, with a portfolio built entirely around turning raw data into reliable APIs. That parentage is practical, not decorative: the infrastructure practices, on-call culture, billing platform, and support standards behind this product are the same ones running across the group.
JFreaks reached profitability within a year of shipping its first API and has stayed customer-funded ever since — no outside investors deciding what gets built or how it gets priced. Four brands run on the same engineering foundation:
IP geolocation, timezone, and threat intelligence APIs — the group's first product and the template for everything since.
WHOIS, DNS, SSL and subdomain data powering cybersecurity and brand-protection platforms.
Foreign exchange and currency conversion rates — the product whose customers asked for commodity coverage, and the direct reason CommodityPriceAPI exists.
AI writing and content tooling for writers, marketers, and enterprise content teams.
Figures above are published by each product on its own site and are accurate as of August 2026.
Create an account, get an API key, and pull your first live commodity price in minutes. No credit card, no sales call, and an engineer on the other end of support if you get stuck.