# Austria Statistics API
> Official Austrian statistics from Statistics Austria (Statistik Austria) Open Government Data as a clean, keyless JSON API. Get the latest Austrian consumer price index and inflation — the monthly index (base 2015 = 100) with both the annual and monthly rate of change, normalised from the source CSV — look up any OGD dataset's metadata and downloadable resources, and pull a dataset's observations as tidy JSON rows (German decimal commas converted to plain numbers, dimension codes and figures separated). A thin gateway over the Statistics Austria OGD portal: you supply a dataset identifier (e.g. OGD_vpi15_VPI_2015_1) and we parse the open CSV for you. Ideal for inflation trackers, Eurozone macro research and economic dashboards.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/austria-stats-api/..."
```

## Pricing
- **Free** (Free) — 2,750 calls/Mo, 3 req/s
- **Basic** ($12/Mo) — 51,000 calls/Mo, 10 req/s
- **Pro** ($30/Mo) — 197,000 calls/Mo, 25 req/s
- **Mega** ($66/Mo) — 826,000 calls/Mo, 60 req/s

## Endpoints

### Inflation

#### `GET /v1/cpi` — Latest Austrian CPI and inflation

**Parameters:**
- `periods` (query, optional, string) — Number of recent months (1-120) Example: `12`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/austria-stats-api/v1/cpi?periods=12"
```

**Response:**
```json
{
    "data": {
        "base": "2015 = 100",
        "latest": {
            "period": "2025M12",
            "index_value": 140.4,
            "change_annual_pct": 3.7,
            "change_monthly_pct": 0.3
        },
        "series": [
            {
                "period": "2025M12",
                "index_value": 140.4,
                "change_annual_pct": 3.7,
                "change_monthly_pct": 0.3
            },
            {
                "period": "2025M11",
                "index_value": 140,
                "change_annual_pct": 4,
                "change_monthly_pct": 0.3
            },
            {
                "period": "2025M10",
                "index_value": 139.6,
                "change_annual_pct": 4,
                "change_monthly_pct": 0.4
            },
            {
                "period": "2025M09",
                "index_value": 139,
                "change_annual_pct": 4,
                "change_monthly_pct": -0.3
            },
            {
                "period": "2025M08",
                "index_value": 139.4,
                "change_annual_pct": 4.2,
                "change_monthly_pct": 0.3
            },
            {
                "period": "2025M07",
                "index_value": 139,
                "change_annual_pct": 3.6,
                "change_monthly_pct": 0.3
            },
            {
                "period": "2025M06",
                "index_value": 138.6,
                "change_annual_pct": 3.3,
            
…(truncated, see openapi.json for full schema)
```

### Catalog

#### `GET /v1/dataset` — OGD dataset metadata and resources

**Parameters:**
- `dataset` (query, required, string) — OGD dataset identifier Example: `OGD_vpi15_VPI_2015_1`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/austria-stats-api/v1/dataset?dataset=OGD_vpi15_VPI_2015_1"
```

**Response:**
```json
{
    "data": {
        "tags": [
            "Preisentwicklung",
            "Inflation"
        ],
        "notes": "Verbraucherpreisindex und Subindizes, Datensatz beinhaltet neben Messzahlen auch Veränderungen zum Vormonat, Monatliche Zeitreihe Jänner 2016 bis Dezember 2025; Ein Teil der Indexwerte im April 2020 basieren auf hauptsächlich bzw. vollständig imputierten Preisen.",
        "title": "Verbraucherpreisindex Basis 2015, ECOICOP",
        "dataset": "OGD_vpi15_VPI_2015_1",
        "license": "Creative Commons Namensnennung 4.0 International",
        "resources": [
            {
                "url": "https://data.statistik.gv.at/data/OGD_vpi15_VPI_2015_1.csv",
                "name": "OGD_vpi15_VPI_2015_1",
                "format": "csv",
                "last_modified": "2026-02-25T09:00:00"
            },
            {
                "url": "https://data.statistik.gv.at/data/OGD_vpi15_VPI_2015_1_HEADER.csv",
                "name": "OGD_vpi15_VPI_2015_1_HEADER",
                "format": "csv",
                "last_modified": "2026-02-25T09:00:00"
            },
            {
                "url": "https://data.statistik.gv.at/data/OGD_vpi15_VPI_2015_1_C-VPIZR-0.csv",
                "name": "OGD_vpi15_VPI_2015_1_C-VPIZR-0",
                "format": "csv",
                "last_modified": "2026-02-25T09:00:00"
            },
            {
                "url": "https://data.statistik.gv.at/data/OGD_vpi15_VPI_2015_1_C-VPI5-0.csv",
                "nam
…(truncated, see openapi.json for full schema)
```

### Data

#### `GET /v1/data` — Dataset observations (CSV parsed to JSON)

**Parameters:**
- `dataset` (query, required, string) — OGD dataset identifier Example: `OGD_vpi15_VPI_2015_1`
- `limit` (query, optional, string) — Max rows (1-1000, most recent first) Example: `50`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/austria-stats-api/v1/data?dataset=OGD_vpi15_VPI_2015_1&limit=50"
```

**Response:**
```json
{
    "data": {
        "rows": [
            {
                "C-VPI5-0": "VPI-12",
                "C-VPIZR-0": "VPIZR-2025",
                "F-VPIEFVM": 0,
                "F-VPIMZBM": 134.4,
                "F-VPIMZVM": 0,
                "F-VPIPZVM": 0,
                "F-VPIEFVJM": 0.355,
                "F-VPIGEWBM": 8.37157,
                "F-VPIMZVJM": 128.9,
                "F-VPIPZVJM": 4.3
            },
            {
                "C-VPI5-0": "VPI-11",
                "C-VPIZR-0": "VPIZR-2025",
                "F-VPIEFVM": 0,
                "F-VPIMZBM": 166.2,
                "F-VPIMZVM": 0,
                "F-VPIPZVM": 0,
                "F-VPIEFVJM": 0.768,
                "F-VPIGEWBM": 13.55245,
                "F-VPIMZVJM": 157.1,
                "F-VPIPZVJM": 5.8
            },
            {
                "C-VPI5-0": "VPI-10",
                "C-VPIZR-0": "VPIZR-2025",
                "F-VPIEFVM": 0,
                "F-VPIMZBM": 135.1,
                "F-VPIMZVM": 0,
                "F-VPIPZVM": 0,
                "F-VPIEFVJM": 0.047,
                "F-VPIGEWBM": 0.92721,
                "F-VPIMZVJM": 128.6,
                "F-VPIPZVJM": 5.1
            },
            {
                "C-VPI5-0": "VPI-09",
                "C-VPIZR-0": "VPIZR-2025",
                "F-VPIEFVM": 0,
                "F-VPIMZBM": 130.4,
                "F-VPIMZVM": 0,
                "F-VPIPZVM": 0,
                "F-VPIEFVJM": 0.364,
                "F-VPIGEWBM": 10.8
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Service metadata

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/austria-stats-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "note": "dataset takes an OGD identifier, e.g. OGD_vpi15_VPI_2015_1 (consumer prices). C-* columns are dimension codes, F-* columns are figures.",
        "source": "Statistics Austria (Statistik Austria) — Open Government Data",
        "upstream": "https://data.statistik.gv.at",
        "endpoints": [
            "/v1/cpi",
            "/v1/dataset",
            "/v1/data",
            "/v1/meta"
        ],
        "cpi_dataset": "OGD_vpi15_VPI_2015_1",
        "description": "Keyless gateway over the Statistics Austria OGD portal. /v1/cpi gives the latest Austrian consumer price index and inflation (index + annual + monthly change); /v1/dataset returns an OGD dataset's metadata and resources; /v1/data returns a dataset's observations (CSV parsed to JSON); German decimals are normalised.",
        "documentation": "https://austria-stats-api.oanor.dev"
    },
    "meta": {
        "timestamp": "2026-06-15T20:41:10.540Z",
        "request_id": "fb8891b8-861c-4276-9940-9606260f2e92"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/austria-stats-api
OpenAPI spec: https://www.oanor.com/api/austria-stats-api/openapi.json
