Oil Price API — WTI & Brent

Oil price API WTI & Brent, spot and futures.

Live WTI and Brent crude oil prices for your app — spot and front-month futures, each with bid and ask, refreshed every second and returned as clean JSON from one endpoint.

  • Unlimited free trial for integrations
  • No credit card
  • JSON over HTTPS
GET
Sample responseapplication/json
{
  "success": true,
  "timestamp": 1792185351,
  "rates": {
    "WTIOIL-SPOT": {
      "rate": 98.96,
      "bid": 98.92,
      "ask": 98.96
    }
  },
  "metadata": {
    "WTIOIL-SPOT": {
      "unit": "Bbl",
      "quote": "USD"
    }
  }
}
4
Oil symbols
1s
Refresh, every plan
Bid/Ask
On every symbol
1990
History from

Benchmark board

Two benchmarks, two curves.

Four symbols cover the oil market most apps care about. Read across for the futures premium, down for the Brent–WTI spread — every figure below is one or two calls to the latest endpoint.

USD / barrel-SPOT-FUTFut − spot
WTI98.96101.87+2.91
Brent108.05109.63+1.58
Brent − WTI+9.09+7.76

Refreshed hourly on this page · per second through the API

Symbols

Pick the symbol you need

SymbolWhat it tracksUnitBid / askChart
WTIOIL-SPOTWTI crude — continuous cash (spot) priceUSD per barrelYesLive chart →
WTIOIL-FUTWTI crude — NYMEX front-month futures, continuousUSD per barrelYesLive chart →
BRENTOIL-SPOTBrent crude — continuous cash (spot) priceUSD per barrelYesLive chart →
BRENTOIL-FUTBrent crude — ICE front-month futures, continuousUSD per barrelYesLive chart →

What's included

Everything you need to build with crude oil.

01

Second-by-second prices

All four oil symbols are polled every second. Every current plan reads the newest tick; only the legacy Lite plan reads a snapshot up to 10 minutes old.

02

Bid and ask on every call

Every response carries the latest rate plus bid and ask, so you can show the spread or price both sides of a trade.

03

Spot and futures side by side

Use the continuous spot price for display and alerts, or the front-month NYMEX and ICE futures when you need to match exchange quotes.

04

150+ currencies

Add quote=EUR, quote=INR or any supported currency and the API converts the barrel price for you — no second FX call.

05

History back to 1990

Daily WTI and Brent history through the historical, time-series and fluctuation endpoints, with the same symbols and the same key.

06

Plain REST and JSON

One GET request, one x-api-key header. Works from curl, JavaScript, Python, PHP, Go or a spreadsheet — no SDK to install.

WTI

WTI crude oil price API

West Texas Intermediate is the US benchmark: a light, sweet crude priced for delivery at Cushing, Oklahoma. Its main futures contract trades on NYMEX in lots of 1,000 barrels and is quoted in US dollars per barrel.

Request /v3/rates/latest/WTIOIL-SPOT for a continuous WTI cash price, or /v3/rates/latest/WTIOIL-FUT for the front-month NYMEX contract on a continuous basis. Both return rate, bid and ask in USD per barrel.

Typical uses: US fuel and freight pricing, refinery and energy dashboards, and anything that has to follow the price US traders watch. For a chart and one-year history, see the live WTI price page.

Brent

Brent crude oil price API

Brent is the main international benchmark, used to price crude from Europe, Africa and the Middle East. The physical Dated Brent assessment draws on several North Sea grades — Brent, Forties, Oseberg, Ekofisk and Troll — and, since June 2023, US WTI Midland. ICE Brent futures trade in 1,000-barrel lots in US dollars per barrel.

Request /v3/rates/latest/BRENTOIL-SPOT for a continuous Brent cash price, or /v3/rates/latest/BRENTOIL-FUT for the ICE front-month contract on a continuous basis.

Brent usually trades a few dollars above WTI, and that gap moves with shipping costs, US export flows and supply news. To watch it directly, use the WTI to Brent ratio tool or request both symbols and compare.

Spot vs futures

Which oil price should your app use?

Spot (-SPOT) is a continuous cash price. It has no expiry date, so it moves smoothly and never jumps when a contract changes. Use it for price displays, unit conversions, alerts and long-running charts.

Futures (-FUT) follows the front-month exchange contract — NYMEX for WTI, ICE for Brent — on a continuous basis. Use it when your numbers need to line up with futures quotes, hedging reports or trading screens.

The two are usually close, and the gap between them reflects time to delivery. Pick one per series and don't mix them in the same chart. Both are derived market prices: neither is an exchange settlement nor an official benchmark assessment such as Dated Brent.

History

Historical oil prices

The latest-rate endpoint answers “what is oil trading at right now”. For anything older, use the same symbols on the history endpoints — daily data goes back to 1990:

Use cases

What developers build with oil prices

  1. 01

    Fuel and freight pricing

    Index fuel surcharges, delivery fees or bunker estimates to WTI or Brent, and update them automatically instead of by hand.

  2. 02

    Energy and trading dashboards

    Show live WTI and Brent with bid/ask and the spread between them, next to gold, natural gas and the rest of the catalogue.

  3. 03

    Alerts and automation

    Trigger an email, webhook or Slack message when Brent crosses a level, using the per-second feed on paid plans.

  4. 04

    Finance, ERP and AI agents

    Feed oil prices into cost models, invoices and forecasts — or let Claude, Cursor and other assistants query them through our MCP server.

API reference

Latest oil price

Returns the latest price for one oil symbol — WTI or Brent, spot or front-month futures — with bid and ask, in USD per barrel unless you ask for another currency.

Endpoint

GEThttps://api.commoditypriceapi.com/v3/rates/latest/{symbol}
Available on every plan, refreshed every second. Standard, Advanced and Enterprise can quote it in any supported currency; on Basic rates are in USD and quote is ignored. On the legacy Lite plan rates are in USD and may be up to 10 minutes old.

Authentication

x-api-keyheader · stringrequired
Your API key, sent as a request header. Find it in your dashboard.

Path parameter

symbolstringrequired
One symbol per request. This page covers WTIOIL-SPOT, WTIOIL-FUT, BRENTOIL-SPOT and BRENTOIL-FUT. The same endpoint also serves XAU, XAG, XPT, XPD, XCU-SPOT and XCU-FUT; every other commodity is on /rates/latest.

Query parameters

quotestringoptionalStandard & above
Currency to convert the rate into, e.g. EUR or INR. Defaults to the symbol's native currency (USD). Supported currencies.
metadatabooleanoptional
Include the metadata object (unit and quote currency). Defaults to true; pass false for a smaller payload.

Response fields

successboolean
true on a 200 response.
timestampnumber
Unix time (seconds) when the response was generated.
rates.WTIOIL-SPOTobject
rate (latest price), bid and ask, in USD per barrel.
metadata.WTIOIL-SPOTobject
unit (Bbl) and quote currency of the returned rate.

Status codes

200—Rate returned.
400VALIDATION_ERRORSymbol not served by this endpoint, or include value not valid for the symbol.
401UNAUTHORIZEDMissing or invalid x-api-key.
403LIMIT_REACHEDMonthly request quota used up.
404SYMBOL_NOT_FOUND / QUOTEUnknown symbol (with suggestions) or unsupported quote currency.
429TOO_MANY_REQUESTSPer-minute rate limit hit (legacy Lite plan).

Full list in the error reference. History lives on /rates/historical and /rates/time-series.

Example

$ curl https://api.commoditypriceapi.com/v3/rates/latest/WTIOIL-SPOT \
  -H "x-api-key: YOUR_API_KEY" \
  -G -d "quote=USD"

Sample values. Run the playground above for a live response.

FAQ

Frequently asked questions

Contact support
  • 01

    Which oil prices does the API cover?

    Four symbols: WTIOIL-SPOT and WTIOIL-FUT for West Texas Intermediate, and BRENTOIL-SPOT and BRENTOIL-FUT for Brent. The -SPOT symbols are continuous cash prices; the -FUT symbols follow the front-month NYMEX (WTI) and ICE (Brent) futures contracts on a continuous basis. All four are quoted in US dollars per barrel.

  • 02

    How often are oil prices updated?

    All four oil symbols are polled every second. On every current plan, from Basic to Enterprise, each request returns the newest price; only on the legacy Lite plan can the price be up to 10 minutes old.

  • 03

    Is there a free oil price API?

    Every plan includes the oil endpoint, and you can start with an unlimited free trial for integrations on the Basic plan — no credit card required. Basic returns prices in USD; conversion to other currencies starts on the Standard plan.

  • 04

    What is the difference between WTIOIL-SPOT and WTIOIL-FUT?

    WTIOIL-SPOT is a continuous cash price with no expiry, so it moves smoothly. WTIOIL-FUT tracks the front-month NYMEX WTI futures contract on a continuous basis. They are usually close; the difference reflects time to delivery. The same applies to BRENTOIL-SPOT and BRENTOIL-FUT on ICE.

  • 05

    Is this the official WTI or Brent benchmark price?

    No. The API returns derived market prices with bid and ask. They are not exchange settlement prices and not an official benchmark assessment such as Dated Brent. A futures symbol tracks the pricing of the exchange contract but is not a direct feed from NYMEX or ICE.

  • 06

    Can I get oil prices in euros, rupees or other currencies?

    Yes. Add the quote parameter, for example quote=EUR, on the Standard plan or above and the API converts the price per barrel into that currency. More than 150 currencies are supported.

  • 07

    How far back does historical oil price data go?

    Daily history for WTI and Brent goes back to 1990 through the historical, time-series and fluctuation endpoints.

  • 08

    Can I call the oil price API from Python or JavaScript?

    Yes. It is a plain REST API that returns JSON: send a GET request with your key in the x-api-key header. The documentation has ready-made cURL, JavaScript, Python and PHP examples.

Get started

Try it free. No card. No catch.

Start with an unlimited free trial for integrations on the Basic plan — no credit card. Upgrade when you need other currencies and the time-series, fluctuation and intraday endpoints.

  • Unlimited free trial for integrations
  • No card required
  • Cancel anytime