Oil Price API for ChatGPT
Get real-time Brent, WTI, and natural gas prices directly in ChatGPT. Set up GPT Actions in 5 minutes or use our pre-built GPT.
Two Ways to Get Oil Prices in ChatGPT
Use the Pre-Built GPT (Easiest)
Search for "Oil & Gas Prices" in the ChatGPT GPT Store, or click the link below. No setup required.
- 1.Open ChatGPT and go to Explore GPTs
- 2.Search for "Oil & Gas Prices"
- 3.Start asking about commodity prices
Build a Custom GPT with GPT Actions
Create your own GPT with full control over the system prompt, endpoints, and behavior. Best for specialized use cases.
- 1.Get a free API key
- 2.Create a new GPT in ChatGPT > Configure > Actions
- 3.Paste the OpenAPI schema below
- 4.Set Auth to "API Key" with Bearer token
Requires ChatGPT Plus or Team
GPT Actions OpenAPI Schema
Copy this schema into your custom GPT's Actions configuration. It gives ChatGPT access to real-time commodity prices from OilPriceAPI.
{
"openapi": "3.1.0",
"info": {
"title": "OilPriceAPI",
"version": "1.0.0",
"description": "Real-time oil and commodity prices"
},
"servers": [
{ "url": "https://api.oilpriceapi.com" }
],
"paths": {
"/v1/prices/latest": {
"get": {
"operationId": "getLatestPrice",
"summary": "Get the latest price for a commodity",
"parameters": [
{
"name": "by_code",
"in": "query",
"required": false,
"schema": { "type": "string" },
"description": "Commodity code (e.g. BRENT_CRUDE_USD, WTI_USD)"
}
],
"responses": {
"200": {
"description": "Latest commodity price"
}
}
}
},
"/v1/prices": {
"get": {
"operationId": "getAllPrices",
"summary": "Get all current commodity prices",
"responses": {
"200": {
"description": "All commodity prices"
}
}
}
}
}
}Authentication setup: In your GPT's Actions settings, choose "API Key" as the authentication type. Set Auth Type to "Bearer" and paste your OilPriceAPI key. The key will be sent as Authorization: Token YOUR_API_KEY with every request.
Example Prompts
Try these prompts in ChatGPT with the OilPriceAPI GPT or your custom GPT:
"What is the current Brent crude oil price?"
Get the latest Brent crude spot price in USD per barrel
"Compare WTI and Brent oil prices and explain the spread"
Side-by-side comparison with spread analysis and market context
"Give me a full energy market overview"
All tracked commodity prices including oil, gas, coal, and refined products
"What is the price of European natural gas (TTF)?"
Dutch TTF gas price in EUR/MWh with Henry Hub comparison
"Show me diesel and heating oil prices"
Refined product prices updated throughout the trading day
"How much is gold per ounce right now?"
Precious metals pricing alongside energy commodities in one API
What Energy Professionals Build with ChatGPT + OilPriceAPI
Daily Market Briefings
Ask ChatGPT for a daily energy market summary with key price movements, spreads, and notable changes across oil, gas, and refined products.
Spread Analysis
Compare Brent-WTI spreads, US vs European gas prices, or crude vs refined product margins. ChatGPT explains the context behind the numbers.
Client Reports
Generate formatted commodity price reports for clients or internal stakeholders with current prices, trends, and market commentary.
Documented Commodity Coverage in ChatGPT
Crude Oil
- Brent Crude (global benchmark)
- WTI (US benchmark)
- Urals (Russian)
- Dubai (Middle East)
Natural Gas
- US Henry Hub ($/MMBtu)
- UK NBP (pence/therm)
- European TTF (EUR/MWh)
Refined Products
- Diesel
- Gasoline
- RBOB Gasoline
- Jet Fuel, Heating Oil
Other
- Gold
- Thermal & Newcastle Coal
- EU & UK Carbon
- EUR/USD, GBP/USD
Frequently Asked Questions
How do I use OilPriceAPI with ChatGPT?
Two options: (1) Use our pre-built "Oil & Gas Prices" GPT from the GPT Store — no setup needed. (2) Create a custom GPT with GPT Actions using the OpenAPI schema above for full control over prompts and behavior.
Do I need ChatGPT Plus?
The pre-built GPT is accessible to all ChatGPT users. Creating custom GPTs with GPT Actions requires ChatGPT Plus or Team.
Is the oil price data real-time?
Yes. Prices are updated throughout the trading day from multiple market sources. When you ask ChatGPT for a price, it fetches the latest data from OilPriceAPI in real time.
Is the ChatGPT integration free?
OilPriceAPI offers a free tier with 50 requests per day. For heavier ChatGPT usage, paid plans start at $19/month for 10,000 requests. The MCP server npm package is free and open source.
Can I build a custom GPT for my team?
Absolutely. Use the OpenAPI schema above to create a custom GPT tailored to your team's needs. Add custom system prompts for your specific commodities, reporting formats, or analysis workflows.
Start Getting Oil Prices in ChatGPT
Get your free API key and ask ChatGPT about commodity prices in minutes