Real-time and historical Natural Gas futures data from NYMEX (Henry Hub).
| Method | Endpoint | Description |
|---|
| GET | /v1/futures/natural-gas | Current contract prices |
| GET | /v1/futures/natural-gas/historical | Historical data |
| GET | /v1/futures/natural-gas/ohlc | Daily OHLC |
| GET | /v1/futures/natural-gas/intraday | 5-minute intervals |
| GET | /v1/futures/natural-gas/spreads | Calendar spreads |
| GET | /v1/futures/natural-gas/curve | Futures curve |
| GET | /v1/futures/natural-gas/spread-history | Spread history |
GET /v1/futures/natural-gas
{
"commodity": "NATURAL_GAS_FUTURES",
"source": "NYMEX",
"updated_at": "2025-12-29T14:30:00.000Z",
"trading_hours": "18:00-17:00 ET",
"contracts": [
{
"contract_month": "2026-02",
"last_price": 3.425,
"currency": "USD",
"unit": "MMBtu",
"open": 3.395,
"close": 3.420,
"high": 3.455,
"low": 3.380,
"volume": 234567,
"change_percent": 0.73
}
]
}
GET /v1/futures/natural-gas/historical
| Parameter | Type | Default | Description |
|---|
from | date | 30 days ago | Start date |
to | date | today | End date |
contracts | string | all | Contract months |
format | string | json | json or csv |
GET /v1/futures/natural-gas/ohlc
| Parameter | Type | Default | Description |
|---|
days | integer | 30 | Period (1-365) |
contract | string | front month | Contract month |
GET /v1/futures/natural-gas/intraday
| Parameter | Type | Default | Description |
|---|
date | date | today | Trading date |
contract | string | front month | Contract month |
Natural gas spreads are particularly important for seasonal analysis.
GET /v1/futures/natural-gas/spreads
| Parameter | Type | Default | Description |
|---|
pairs | string | consecutive | Spread pairs |
days | integer | 30 | Analysis period |
- Winter/Summer Spreads: Analyze seasonal price differentials
- Storage Economics: Calculate injection/withdrawal economics
- Basis Trading: Compare regional price differences
GET /v1/futures/natural-gas/curve
| Parameter | Type | Default | Description |
|---|
date | date | today | Analysis date |
Natural gas curves often show:
- Winter Premium: Higher prices for winter months (Nov-Mar)
- Shoulder Season Lows: Lower prices in spring/fall
- Storage Injection: Summer contango for storage fill
GET /v1/futures/natural-gas/spread-history
| Parameter | Type | Required | Description |
|---|
front_contract | string | Yes | Front contract |
back_contract | string | Yes | Back contract |
days | integer | No | History period |
import requests
response = requests.get(
"https://api.oilpriceapi.com/v1/futures/natural-gas",
headers={"Authorization": "Token YOUR_API_KEY"}
)
data = response.json()
print(f"Nat Gas Front Month: ${data['contracts'][0]['last_price']}/MMBtu")
| Session | Time (ET) | Time (GMT) |
|---|
| Electronic | 18:00-17:00 | 23:00-22:00 |
| Settlement | 14:30 ET | 19:30 GMT |