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

Oil price API: government set prices

Government set prices

Prices a government has fixed, as each level took effect.

GEThttps://api.oilapi.net/v1/prices/set
PlansEvery plan
Cost1 call per request
ReturnsEvery fuel in one call
UpdatedWhen a new level is set

What it is for

Where a government or regulator fixes fuel prices: the level in force, the day it took effect, the level before and the change.

Some countries set prices by town or zone; region picks one. date gives the prices in force on any past day.

Good for
  • Alerts when a set price changes
  • Showing what changed this month
  • Prices by zone
  • The price in force on a past date
Also the MCP tool set_prices

Parameters 4 in the query

NameWhere and typeRequiredWhat it doesExample
countryquery countryrequiredTwo letter country code, such as fr, gb or ke.hr
regionquery stringoptionalA town or zone, where prices are set by place; leave out for the national price or the fullest record.
datequery dateoptionalThe prices in force on this date; leave out for now.2025-01-01
currencyquery ISO 4217optionalConvert every price to this currency on its own day, such as usd.usd

Try it runs against the live API with your key

No key yet? Get a free one; it is saved in this browser for every page.

The answer 200, application/json

FieldTypeWhat it holdsExample
fuelstringFuel code; see Fuels and units"diesel_blue"
pricenumberThe price in currency per unit1.38
currencystringThree letter currency code"EUR"
unitstringlitre, gallon or barrel"litre"
effective_fromstringThe day the price took effect"2026-10-01"
previousnumberThe level before it0.84
changenumberprice minus previous0.54

Example answer real, from what we hold now; long lists cut to three

GET /v1/prices/set?country=hr
{
    "data": [
        {
            "fuel": "diesel_blue",
            "price": 1.38,
            "currency": "EUR",
            "unit": "litre",
            "effective_from": "2026-10-01",
            "previous": 0.84,
            "change": 0.54
        }
    ],
    "meta": {
        "count": 1,
        "as_of": "2026-10-29",
        "region": null
    }
}

Errors every error has the same shape

HTTPCodeWhenWhat to do
401unauthorizedNo key, or not a valid oneSend your key in the X-API-Key header; your account page shows it.
400bad_requestA value is wrong or a required one is missingThe message names the parameter and the form it takes.
422unknown_parameterA parameter this endpoint does not takeTake it out; the parameters this endpoint takes are listed above.
429rate_limitedToo many calls this minuteWait the seconds in the Retry-After header, then call again.
429quota_exceededToday's calls are used upWait for the day to reset at midnight UTC, or move to a larger plan.
Dates and times are UTC. A point's date is the day its price took effect, or the first day of its week or month for weekly and monthly series. Conversions use each day's own rate, so a converted series moves with both the price and the exchange rate.

Related