Brent Crude Oil Price API
Brent Crude Oil is the global benchmark for international oil prices, used to price roughly two-thirds of the world's traded crude oil supply. Brent Crude futures trade on ICE and are priced in USD per barrel. The Brent Crude Oil Price API provides real-time Brent oil market data for energy analysts, traders, and financial applications.
Use Cases
- Track Brent crude oil prices for global energy market analysis
- Build international oil price dashboards and trackers
- Monitor Brent futures for energy trading platforms
- Integrate Brent oil pricing into fuel and energy cost tools
/v1/commodityprice GET
https://api.api-ninjas.com/v1/commodityprice
Parameters
namerequiredName of commodity. Use
brent_crude_oilfor Brent Crude Oil. See the full list of supported commodities.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON object with the following fields or an error if the request is unsuccessful.
exchangeThe symbol of the exchange where the commodity is traded (e.g.,
ICE).nameThe name of the commodity.
priceThe current price of the commodity in USD.
updatedThe Unix timestamp of the price update.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/commodityprice?name=brent_crude_oilHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/commodityprice?name=brent_crude_oil" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed above, you can still make API calls by using any HTTP request library and following the documentation above.
/v1/commoditypricehistorical GET Premium Only
https://api.api-ninjas.com/v1/commoditypricehistorical
Returns historical Brent Crude Oil futures price data in OHLCV (Open, High, Low, Close, Volume) format. Data is returned in descending order (most recent first), and all prices are in USD.
Parameters
namerequiredUse
brent_crude_oilfor Brent Crude Oil.periodoptionalTime interval between data points. Valid values:
1m,5m,15m,30m,1h,4h,1d. Default is1h.startoptionalStart timestamp in Unix format. Defaults to 24 hours ago.
endoptionalEnd timestamp in Unix format. Defaults to current time.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects or an error if the request is unsuccessful.
openOpening price in USD.
highHighest price in USD.
lowLowest price in USD.
closeClosing price in USD.
volumeTrading volume.
timeUnix timestamp of the period.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/commoditypricehistorical?name=brent_crude_oil&period=1hHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/commoditypricehistorical?name=brent_crude_oil&period=1h" \
-H "X-Api-Key: YOUR_API_KEY"