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.
Returns the latest oil price (default: brent crude). The price provided can have a 1-5 minute delay from true live prices.
Returns all oil price data available within the last 24 hours.
Returns all oil price data available within the last 7 days.
Returns all oil price data available within the last 30 days.
Returns all oil price data available within the last 365 days.
Fetch the oil price in your app in just a few minutes.
OilpriceAPI should be used for display, analysis & educational purposes. The data should not be relied upon to make financial decisions.
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.
OilpriceAPI has over 5 million oil price data points and daily average prices that go back as far as May 1987.