Natural Gas (NATURAL_GAS_GBP)
Status: ✅ Available | ⚡ Real-time | 📊 Historical Data
Real-time and historical pricing data for UK Natural Gas (NBP). Access current and 8+ years of daily historical prices via our API.
Quick Reference
| Property | Value |
|---|---|
| Commodity Code | NATURAL_GAS_GBP |
| Name | UK Natural Gas (NBP) |
| Category | Natural Gas |
| Currency | GBp (pence sterling) |
| Unit | pence/therm |
| Source | IG Markets (real-time), ONS SAP (historical) |
Historical Data Availability
| Metric | Value |
|---|---|
| Date Range | January 1, 2018 → Present |
| Coverage | 99.7% of trading days |
| Total Records | ~248,000 |
| Update Frequency | Real-time during market hours |
Note: Historical data from 2018-2023 uses UK Office for National Statistics System Average Price (SAP) data, providing daily settlement prices. Real-time data uses NBP spot prices from IG Markets.
Get Latest Price
GET/v1/prices/latest?by_code=NATURAL_GAS_GBP
Request
curl -X GET "https://api.oilpriceapi.com/v1/prices/latest?by_code=NATURAL_GAS_GBP" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Accept: application/json"
Response
{
"status": "success",
"data": {
"price": 95.5,
"formatted": "95.5 GBp/thm",
"currency": "GBp",
"code": "NATURAL_GAS_GBP",
"created_at": "2026-01-22T14:00:00Z",
"type": "spot_price",
"source": "oilprice.ig"
}
}
Get Historical Data
Past 24 Hours
GET /v1/prices/past_day?by_code=NATURAL_GAS_GBP
Past 7 Days
GET /v1/prices/past_week?by_code=NATURAL_GAS_GBP
Past 30 Days
GET /v1/prices/past_month?by_code=NATURAL_GAS_GBP
Past Year
GET /v1/prices/past_year?by_code=NATURAL_GAS_GBP
Custom Date Range (8 Years Available)
GET /v1/prices/by_code?by_code=NATURAL_GAS_GBP&start_date=2018-01-01&end_date=2026-01-22
See Historical Prices API for full documentation.
Code Examples
cURL
# Get latest price
curl -H "Authorization: Token YOUR_API_KEY" \
"https://api.oilpriceapi.com/v1/prices/latest?by_code=NATURAL_GAS_GBP"
# Get historical data from 2020
curl -H "Authorization: Token YOUR_API_KEY" \
"https://api.oilpriceapi.com/v1/prices/by_code?by_code=NATURAL_GAS_GBP&start_date=2020-01-01&end_date=2020-12-31"
Python
import requests
api_key = "YOUR_API_KEY"
url = "https://api.oilpriceapi.com/v1/prices/latest"
response = requests.get(
url,
params={"by_code": "NATURAL_GAS_GBP"},
headers={"Authorization": f"Token {api_key}"}
)
data = response.json()
print(f"UK Natural Gas: {data['data']['formatted']}")
JavaScript
const apiKey = "YOUR_API_KEY";
const code = "NATURAL_GAS_GBP";
fetch(`https://api.oilpriceapi.com/v1/prices/latest?by_code=${code}`, {
headers: {
Authorization: `Token ${apiKey}`,
},
})
.then((res) => res.json())
.then((data) => {
console.log(`UK Natural Gas: ${data.data.formatted}`);
});
Price History Highlights
| Period | Event | Price Range |
|---|---|---|
| 2018 | "Beast from the East" cold snap | Spiked to 150+ p/therm |
| 2020 | COVID demand collapse | Dropped to ~20 p/therm |
| 2021-2022 | Energy crisis | Peaked at 600+ p/therm |
| 2023-2024 | Market normalization | 50-120 p/therm |
Related Endpoints
- Get All Prices - Get all commodity prices in one call
- Historical Prices - Time-series data
- Commodities List - Browse all commodities
Last Updated: 2026-01-22