---
title: "Get the refining margin index"
method: GET
path: "/v1/spreads/margin"
tags: ["Spreads"]
---

# Get the refining margin index

`GET /v1/spreads/margin`

## Request

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

Refining margin index with signal and one-year percentile.

## Response `200`

Get the refining margin index

- object
  - `status` string, required
  - `data` object, required
    - `index` string
    - `name` string
    - `margin_usd_bbl` number
    - `crude_input` string
    - `product_basket` object
    - `signal` string
    - `percentile_1y` number
    - `changes` object
      - `change_1d` number
      - `change_1d_pct` number
      - `change_7d` number
      - `change_7d_pct` number
    - `timestamp` string, date-time

## 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`: 4 info
  - 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`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`

[Operation history](https://skmtc.dev/oilpriceapi/apis/oil-price-api-v1/changes/v1/spreads/margin/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)
