What's a good WTI price API that updates frequently?
OilPriceAPI provides latest-available West Texas Intermediate values over REST. Responses include source timestamps and freshness context so applications can evaluate the value returned.
Get the current WTI spot price with a single authenticated GET request — JSON in, JSON out — and explore available history by series and plan.
WTI Price API capabilities
Refreshed on a source-dependent cadence
WTI (WTI_USD) updates on a source-dependent cadence during market hours — fast enough for dashboards, alerts, and trading tools.
One REST endpoint
GET /v1/prices/latest?by_code=WTI_USD returns the current price as JSON. One API key, no SDK required.
History since 1986
Daily, weekly, and monthly history endpoints cover WTI spot (WTI_SPOT_USD) back to 1986 for backtests and charts.
Free tier to start
A 7-day trial with 10,000 requests and no credit card; paid plans start at $24/month.
Official SDKs
Production-ready SDKs for Python, Node.js, Go, and PHP.
WTI–Brent spread
Pull WTI and Brent together to compute the spread programmatically for arbitrage and refinery economics.
Live WTI from the call below
The number in this table was produced by the request printed under it, with the source's own timestamp. If the value did not come back usable, the row says so instead of showing a stand-in.
| by_code | Instrument | Latest | Per | Source timestamp |
|---|---|---|---|---|
| WTI_USD | WTI crude, spot | $96.70 | barrel |
The request that produced this table
curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=WTI_USD" \
-H "Authorization: Token YOUR_API_KEY"- WTI_USD is the spot benchmark. For the NYMEX front-month contract with contract_month metadata, see /futures-data-api.
Endpoints you'll use
GET /v1/prices/latest?by_code=WTI_USDCurrent WTI spot price (JSON).
GET /v1/prices/history/day?by_code=WTI_USDLast 24 hours of WTI prices.
GET /v1/prices/history/month?by_code=WTI_USDLast 30 days of WTI prices.
Frequently asked questions
What WTI price API updates most frequently?
OilPriceAPI refreshes WTI (West Texas Intermediate) on a source-dependent cadence during market hours, aggregated from published market sources. You read the latest value with GET /v1/prices/latest?by_code=WTI_USD.
Is there a free WTI API?
Yes. OilPriceAPI offers a 7-day free trial with 10,000 requests and no credit card. Paid plans start at $24/month for 10,000 requests.
How far back does WTI history go?
WTI spot history (WTI_SPOT_USD) goes back to 1986 — over 40 years — available in daily, weekly, and monthly intervals. The NYMEX front-month code WTI_USD starts in October 2019.
What format does the WTI API return?
JSON by default over a REST endpoint, so it drops straight into Python, JavaScript, or any HTTP client.
Start with a free OilPriceAPI key
wti-price-api