API documentation
US Oil Prices API
WTI & BrentDaily WTI and Brent spot prices (FOB, USD per barrel), straight from the U.S. Energy Information Administration as clean, versioned JSON.
500 req/mo · No credit card required · One key, every API on the platform
- Checking status…
- WTI & Brent spot
- USD per barrel (FOB)
- Source: U.S. EIA
- Published with a 1–6 day official lag
Base URL & authentication
All endpoints live under one base URL. Authenticate every request with your key
in the X-Api-Key header — no OAuth, no signing. The same key works
on every API of the platform.
# Base URL {{GATEWAY_URL}} # Every request X-Api-Key: sk_live_YOUR_KEY
Missing or invalid keys return 401 — see
errors. The demo endpoint is the only keyless route.
Endpoints
All paths relative to the base URL. Every 200 ships ETag,
Cache-Control and RateLimit-* headers.
| Method | Path | Summary |
|---|---|---|
| GET | /oil/latest Free+ | Latest published price for every blend, one call. |
| GET | /oil/{blend} Free+ | Latest price for a single blend — wti | brent. |
| GET | /oil/{blend}/history Free+ | Paginated history: start/end (YYYY-MM-DD), limit 1–100 (default 30), keyset via meta.next_end. |
Sample — 200 /oil/latest
{
"data": [
{ "blend": "Brent", "date": "2026-07-13", "price": 81.62, "currency": "USD", "unit": "barrel", "source": "EIA" },
{ "blend": "WTI", "date": "2026-07-13", "price": 79.2, "currency": "USD", "unit": "barrel", "source": "EIA" }
]
}
Errors, auth & limits
One uniform error contract everywhere:
{ "error": { "code", "message" } } with stable,
machine-readable codes — shared by every API on the platform.
| Status | Code | When |
|---|---|---|
| 401 | UNAUTHORIZED | Missing X-Api-Key header, or invalid/revoked key. |
| 400 | VALIDATION_ERROR | Bad query/path parameters. |
| 404 | BLEND_NOT_FOUND · NO_DATA · NOT_FOUND | Unknown value for the path parameter (the message lists the valid ones), no data for the requested range yet, or unknown route. |
| 429 | RATE_LIMITED | Per-minute limit of your plan exceeded — check Retry-After. |
| 429 | QUOTA_EXCEEDED | Monthly cap reached. Nothing is billed on top — resets on the 1st (UTC). |
| 502 | UPSTREAM_ERROR | The origin API was unreachable — retry shortly. |
Data provenance
Daily spot prices from the U.S. Energy Information Administration (Cushing WTI and Europe Brent, FOB). The EIA publishes the daily spot with a typical lag of 1–6 days — the latest endpoints always return the most recent published price, never an estimate. This product is not endorsed by or affiliated with the EIA.
Example
curl -H "X-Api-Key: sk_live_YOUR_KEY" \ https://api.synergicapis.com/oil/latest
import requests
r = requests.get(
"https://api.synergicapis.com/oil/latest",
headers={"X-Api-Key": "sk_live_YOUR_KEY"},
)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://api.synergicapis.com/oil/latest", { headers: { "X-Api-Key": "sk_live_YOUR_KEY" }, }); const { data } = await res.json(); console.log(data);
Live demo
Real request against the production API — no key needed here (demo endpoint, 5 requests/minute).
Press the button to fetch the latest official figures.