An oil price API that is simple, efficient and up to date.

OilpriceAPI is a JSON REST API that provides live* oil prices and historical oil price data in a clean and simple way.

1.2M+

Data points

up to 15min

Live price delay*

200K+

Requests handled / month

Simple integration

OilpriceAPI is a modern JSON API that returns well formatted, live and historical oil price data. Each API endpoint is simple and self-explanatory. For a list of all available endpoints please see our documentation.

View the documentation

Endpoints

/latest

Returns the latest oil price (default: brent crude). The price provided can have a 1-5 minute delay from true live prices.

/past_day

Returns all oil price data available within the last 24 hours.

/past_week

Returns all oil price data available within the last 7 days.

/past_month

Returns all oil price data available within the last 30 days.

/past_year

Returns all oil price data available within the last 365 days.

Pricing

After 7 day free trial

Monthly
Yearly (10% discount)

Get started for free

Fetch the oil price in your app in just a few minutes.

FAQ

Can I use this for financial applications?

No, it's not recommended. OilpriceAPI should be used for display, analysis & educational purposes only. The data should not be relied upon to make financial decisions.

What is the latest price source?

OilpriceAPI provides a manufactured price that is constructed by averaging many publicly available live price sources. It should therefore be considered as an approximated live price.

How far back does the data go?

OilpriceAPI has daily average prices that go back as far as May 1987.