PricesPump pricesStation pricesSet pricesTaxes and margins
MarketsCrude benchmarksJet and heating oilRefined productsCurrencies
DataCountriesSupply and stocksHistoryStatus
DocsQuick startAPI referenceMCP serverChangelog
Pricing
BRENT123.1$/bbl ▼ 3.92%WTI103.4$/bbl ▼ 1.79%ULSD4.687$/gal ▼ 3.02%RBOB3.521$/gal ▼ 1.92%MX REGULAR23.99MX$/l ▲ 0.00%ES PETROL 951.749€/l ▼ 0.34%FR PETROL 952.195€/l ▼ 0.07%PT PETROL 952.094€/l ▼ 0.01%CA REGULAR1.829C$/l ▲ 6.04%GB PETROL 95 E101.719£/l ▼ 0.29%AT PETROL 951.780€/l ▼ 2.48%HR PETROL 951.640€/l ▲ 0.00%SI PETROL 951.627€/l ▲ 0.00%AL PETROL196.0ALL/lDZ PETROL47.00DZD/lAO PETROL304.0AOA/lBRENT123.1$/bbl ▼ 3.92%WTI103.4$/bbl ▼ 1.79%ULSD4.687$/gal ▼ 3.02%RBOB3.521$/gal ▼ 1.92%MX REGULAR23.99MX$/l ▲ 0.00%ES PETROL 951.749€/l ▼ 0.34%FR PETROL 952.195€/l ▼ 0.07%PT PETROL 952.094€/l ▼ 0.01%CA REGULAR1.829C$/l ▲ 6.04%GB PETROL 95 E101.719£/l ▼ 0.29%AT PETROL 951.780€/l ▼ 2.48%HR PETROL 951.640€/l ▲ 0.00%SI PETROL 951.627€/l ▲ 0.00%AL PETROL196.0ALL/lDZ PETROL47.00DZD/lAO PETROL304.0AOA/l

Errors

Every error code, and what to do about it.

On this pageThe shapeEvery code

The shape

{"error": {"code": "unknown_parameter", "message": "...", "docs": "https://oilapi.net/documentation/errors"}}

The code is fixed forever and meant for your code; the message is for people.

Every code

CodeStatusWhat to do
bad_request400A value is wrong or missing. The message says which and what is expected.
unknown_parameter422A parameter this endpoint does not take. The message lists the ones it does.
unauthorized401No key, or a key that is not valid. Send it in X-API-Key.
upgrade_required403Your plan does not include this. The error names the plan that does.
not_found404No record by that id or name, or no such endpoint. An empty list is a 200, never a 404.
rate_limited429Too many calls this minute. Wait for Retry-After seconds.
quota_exceeded429Today's calls are used up. They reset at 00:00 UTC.
server_error500Our side went wrong. It is logged; try again shortly.