OilpriceAPI is a JSON REST API service that provides real-time and historical price data for various commodities, including Brent Crude, WTI, Natural Gas, and Gold
The API offers a user-friendly integration process, allowing users to access well-formatted data through simple and self-explanatory endpoints
.
Key Features
Real-Time Data: The API updates prices approximately every 1-2 minutes, ensuring users have access to the most current information1
.
Historical Data: In addition to real-time prices, the service offers historical data ranging from the past 24 hours to the past year1
.
Multiple Endpoints: The API provides various endpoints for different time frames, including /latest, /past_day, /past_week, /past_month, and /past_year
.
Usage Statistics
Over 5 million data points served
More than 1.5 million requests handled per month
Users from over 20 countries rely on OilpriceAPI for real-time data
Integration
The API uses a simple authentication method with an API token. Users can make requests using curl or integrate the API into their applications. Here's an example of a basic API request:
bash
curl https://api.oilpriceapi.com/v1/prices/latest \
-H 'Authorization: Token YOUR_API_TOKEN' \
-H 'Content-Type: application/json'
OilpriceAPI offers a 7-day free trial, after which users can subscribe to a monthly pricing plan
2. The service aims to simplify market analysis and empower users to make informed decisions based on accurate and timely data in the dynamic commodities market.