Basis Spreads
Basis spreads compare a local or regional price against a benchmark.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/spreads/basis | Current basis spread snapshot |
| GET | /v1/spreads/basis/historical | Historical basis spread values |
| GET | /v1/spreads/basis/all | All available basis spread series |
Example
The selector is pair, not code. Valid values: WAHA_HH, BRENT_WTI, BRENT_DUBAI, TTF_HH, BRENT_OMAN. Omitting it returns 400 MISSING_PARAMETER.
curl "https://api.oilpriceapi.com/v1/spreads/basis?pair=BRENT_WTI" \
-H "Authorization: Token YOUR_API_KEY"
{
"status": "success",
"data": {
"pair": "BRENT_WTI",
"spread_name": "Brent-WTI Spread",
"value": 4.33,
"unit": "USD/bbl",
"components": { "BRENT_CRUDE_USD": 104.32, "WTI_USD": 99.99 },
"signal": "normal",
"timestamp": "2026-09-13T14:31:46Z",
"percentile_1y": 49
}
}
/v1/spreads/basis/all takes no pair and returns every series at once.
Waha-Henry Hub (WAHA_HH)
WAHA_HH is Waha spot (NATURAL_GAS_WAHA) minus EIA Henry Hub spot (NATURAL_GAS_HENRY_HUB_SPOT_USD), in USD/MMBtu. The two legs are paired on the newest source date both carry, which the response states in as_of_date. The value, historical rows, percentile, signal, change windows and negative streak all use that pairing.
- EIA publishes Henry Hub spot up to about a week late, so the basis can trail the latest Waha print.
- If the legs share no source date in the last 30 days, the response is an error naming both codes, not a subtraction across different dates.
- Before November 2026 this pair subtracted the NYMEX front-month futures quote (
NATURAL_GAS_USD) collected on a different day.
Deprecated keys. For compatibility, the Henry Hub spot leg is also served under components.NATURAL_GAS_USD and legs.NATURAL_GAS_USD, flagged by deprecated_component_keys: {"NATURAL_GAS_USD": "NATURAL_GAS_HENRY_HUB_SPOT_USD"}. Those keys now carry the spot value, not the futures quote, and will be removed on or after 2027-02-15. Read NATURAL_GAS_HENRY_HUB_SPOT_USD instead. Other pairs carry no alias keys.
See Spreads & Margins for common parameters, response shape, and error handling.