# Financial Datasets — Inflation (Historical)

Retrieve inflation history via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Financial Datasets, pass parameters such as end_date, series, start_date, and retrieve structured data including inflation series identifier, reference month, index level, month-over-month percentage change, and year-over-year percentage change for inflation chart, and series research, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/financial-datasets/financial-datasets-inflation-historical/712d6c52-a882-481d-9b25-40800b0e655a/
API ID: 712d6c52-a882-481d-9b25-40800b0e655a
Provider: financialdatasets
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/financialdatasets/macro/inflation
Page update time: 2026-12-03T02:49:08.236Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.02 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:07.266Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "20000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Financial Datasets Inflation History API

Supply series and optionally start\_date or end\_date. inflation records contain monthly index levels and change\_1m\_pct and change\_12m\_pct. Keep seasonal adjustment and index base context with the series, and treat a missing comparison value separately from zero inflation.

## What You Can Build

- **Inflation chart**: Chart index levels and changes over a selected range.
- **Series research**: Compare matching inflation series while preserving adjustment context.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `inflation[].series` | Inflation series identifier |
| `inflation[].date` | Reference month |
| `inflation[].value` | Index level |
| `inflation[].change_1m_pct` | Month-over-month percentage change |
| `inflation[].change_12m_pct` | Year-over-year percentage change |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Financial Datasets — Inflation (Historical) request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "series": {
          "type": "string",
          "description": "The series id, e.g. cpi_all_sa or pce_core_sa. CPI: six concepts (all items, core, food, energy, shelter, services less energy), each seasonally adjusted (_sa) and not (_nsa). PCE: pce_all_sa and pce_core_sa. Use the /macro/inflation/series endpoint to get the list."
        },
        "start_date": {
          "type": "string",
          "description": "The first month to return, inclusive, in YYYY-MM-DD format; any day inside a month selects that month. Defaults to five years before end_date when both dates are omitted; omit it with an end_date to get all available history through that month."
        },
        "end_date": {
          "type": "string",
          "description": "The last month to return, inclusive, in YYYY-MM-DD format. Defaults to today."
        },
        "cursor": {
          "type": "string",
          "description": "Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it."
        }
      },
      "required": [
        "series"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "inflation": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "change_12m_pct": {
            "type": "number"
          },
          "change_1m_pct": {
            "type": "number"
          },
          "date": {
            "type": "string"
          },
          "series": {
            "type": "string"
          },
          "value": {
            "type": "number"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/financialdatasets/macro/inflation?end_date=2026-08-31&series=cpi_all_sa&start_date=2025-09-01' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "inflation": [
    {
      "change_12m_pct": 3.4,
      "change_1m_pct": 0.4,
      "date": "2026-08-01",
      "series": "cpi_all_sa",
      "value": 334.131
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does value represent a percentage rate?
It represents the selected index level; the change fields provide percentage changes.

### Can I choose a date range?
Use start_date and end_date in YYYY-MM-DD form for the selected series.

### Should missing change values be displayed as zero?
No. A missing comparison value is different from a returned zero change.

### How do I continue through the results?
Use the opaque cursor from the pagination response on this same OpenAny endpoint, retaining required inputs. Keep the original query scope when continuing; a new filter selection starts a new request without that cursor.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Review the pricing area for the selected API implementation before calling. Follow its billing unit and terms; retrieving additional pages requires additional requests.

## Available implementations
- financialdatasets: https://openany.si/financial-datasets/financial-datasets-inflation-historical/712d6c52-a882-481d-9b25-40800b0e655a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
