WTI and Brent developer access

Crude Oil Price API

Retrieve latest available WTI and Brent values with source timestamps through a versioned REST API. Start with the canonical Brent request and expand only to datasets included in your account.

7 days, 10,000 core API requests, no credit card. Then 200 requests/month on Free.

Reviewed July 17, 2026

How do I retrieve WTI or Brent through an API?

Send an authenticated GET request to the latest-price endpoint with the canonical commodity code. BRENT_CRUDE_USD identifies Brent and WTI_USD identifies West Texas Intermediate. Read the returned timestamp before deciding whether the value is current enough for your workflow.

Canonical endpoint

GET /v1/prices/latest?by_code=BRENT_CRUDE_USD
Start with this API path

Methodology

The endpoint and authentication scheme are checked against the public OpenAPI contract. This page does not infer one refresh interval for every source.

Limitations

  • Refresh cadence varies by source, market hours, dataset, and plan.
  • Historical depth and redistribution rights are not implied by latest-price access.
  • OilPriceAPI is not an exchange or a system of record for trade execution.

Canonical benchmark codes

WTI Crude Oil

WTI_USD

U.S. crude benchmark associated with Cushing, Oklahoma.

Brent Crude Oil

BRENT_CRUDE_USD

Widely used international crude benchmark.

First authenticated request

curl -H "Authorization: Token YOUR_API_KEY" \
  "https://api.oilpriceapi.com/v1/prices/latest?by_code=BRENT_CRUDE_USD"

For a keyless integration check, call https://api.oilpriceapi.com/v1/demo/prices. Demo coverage and rate limits are intentionally restricted.

What the integration provides

Source timestamps

Responses identify when the returned observation was updated so applications can evaluate freshness.

Latest and historical workflows

Use versioned endpoints for latest values and plan-eligible history. Availability varies by source and entitlement.

Stable developer contract

Token authentication, JSON responses, canonical commodity codes, and tested recovery paths for common API errors.

Production checklist

  • Read and store the returned source timestamp.
  • Handle 401, 403, 429, timeout, and retryable 5xx responses.
  • Cache according to the selected source and workflow.
  • Confirm plan entitlement before depending on history or specialist datasets.

Crude oil API questions

Which crude benchmarks should I use for a first request?

Use BRENT_CRUDE_USD for Brent and WTI_USD for West Texas Intermediate. The canonical first request uses BRENT_CRUDE_USD.

How current are the returned values?

Latest available values include source timestamps; refresh cadence varies by source, market hours, dataset, and plan.

What does the trial include?

New accounts receive a 7-day, 10,000-request core commodity api trial without a credit card. Dataset entitlements can differ from core API access.

Can I redistribute the raw data?

OilPriceAPI sells API access, normalization, monitoring, and delivery. Standard plans do not grant ownership of underlying source data or unrestricted raw-data redistribution rights.

Review data usage terms