---
title: "Check data freshness for all commodities"
method: GET
path: "/v1/prices/all/health"
tags: ["Prices", "Premium"]
---

# Check data freshness for all commodities

`GET /v1/prices/all/health`

## Request

- Base URL: `https://api.oilpriceapi.com`
- URL: `https://api.oilpriceapi.com/v1/prices/all/health`
- Auth: API key in header `Authorization`

Monitor which commodities have fresh data and which are stale

## Response `200`

Data freshness status

- DataHealthResponse
  - `status` string
  - `data` object
    - `fresh` string[]
    - `stale` string[]
    - `last_update` string, date-time

## Other responses

- `401`: Unauthorized
- `500`: Unexpected server error. Retry transient failures with bounded backoff and retain the request ID when contacting support.

---

[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)
