Oil price API provides real-time access to oil price data.

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

5M+

Data points

1.5M+

Requests handled / month

~1-2min

Between Price updates

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?

OilpriceAPI should be used for display, analysis & educational purposes. The data should not be relied upon to make financial decisions.

What is the latest price source?

OilpriceAPI provides a manufactured price that is calculated by averaging many publicly available live price sources on a minute by minute basis. It should therefore be considered an approximated live price.

How far back does the data go?

OilpriceAPI has over 5 million oil price data points and daily average prices that go back as far as May 1987.