---
title: "Get basis spread history"
method: GET
path: "/v1/spreads/basis/historical"
tags: ["Spreads"]
---

# Get basis spread history

`GET /v1/spreads/basis/historical`

## Request

- Base URL: `https://api.oilpriceapi.com`
- URL: `https://api.oilpriceapi.com/v1/spreads/basis/historical`
- Auth: API key in header `Authorization`

Historical basis spread series.

## Query parameters

- `pair` 'WAHA_HH' | 'BRENT_WTI' | 'BRENT_DUBAI' | 'TTF_HH' | 'BRENT_OMAN', required
- `period` string

## Response `200`

Get basis spread history

- object
  - `status` string, required
  - `data` object, required
    - `period` string
    - `count` integer
    - `data` object[]
      - `date` string
      - `value` number
    - `pair` string

## Other responses

- `400`: A required parameter is missing or invalid. The message enumerates valid values.
- `401`: Missing or invalid API key.
- `500`: Unexpected server error. Retry transient failures with bounded backoff and retain the request ID when contacting support.

## Changes

- **2026-08-25** `0e79e21dee2e`: 1 breaking, 5 info
  - added the new required `query` request parameter `pair`
  - added the new optional `query` request parameter `period`
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `401`
  - …2 more

[Operation history](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1/changes/v1/spreads/basis/historical/get.md)

---

[API](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1.md) - [All operations](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1/revisions/7f8b4d763210?raw)
