Pushbuild

Statistics Latvia API: CPI, GDP, Unemployment & Any Table

Central Statistical Bureau of Latvia data from its official PxWeb API: monthly CPI, quarterly GDP growth and unemployment presets, any table by path with variable filters, and table search. Labelled rows with ISO periods.

$0.16 per 1,000 rows

Get an API key

Example request

POST /statistics-latvia-data/run
{
  "presets": [
    "cpi",
    "gdp"
  ],
  "maxItems": 20
}

What a response looks like

POST /statistics-latvia-data/run{"maxItems": 5, "presets": ["cpi", "gdp"]}
{"count": 5, "items": [{ "codes": {  "ECOICOP_V2": "0" }, "contentsCode": "PCI021m6", "dimensions": {  "Commodity group (ECOICOP ver.2)": "GOODS AND SERVICES - TOTAL" }, "indicator": "% over the corresponding period of previous year", "period": "2025-10", "periodCode": "2025M10", … ]}
contentsCodeindicatorperiodperiodCodepresetseries
PCI021m6% over the corresponding period of previous year2025-102025M10cpi% over the corresponding period of previous ye…
PCI021m6% over the corresponding period of previous year2025-112025M11cpi% over the corresponding period of previous ye…
PCI021m6% over the corresponding period of previous year2025-122025M12cpi% over the corresponding period of previous ye…
PCI021m6% over the corresponding period of previous year2026-012026M01cpi% over the corresponding period of previous ye…
PCI021m6% over the corresponding period of previous year2026-022026M02cpi% over the corresponding period of previous ye…

Real rows returned by this API on 2026-11-09 for the request shown.

What it returns

Official statistics from the Central Statistical Bureau of Latvia (CSB), read from its PxWeb API as labelled rows with ISO periods. Pull headline inflation, growth and labour-market series, search the table catalogue, or read any table with your own filters. No key needed.

FieldMeaning
table, tableTitleTable path and title
indicator, contentsCodeMeasure and its code, where the table has one
period, periodCodeISO period (2026-09, 2026Q2) and the source code
series, dimensions, codesMeasure plus breakdown labels, and codes to reuse in filters
value, updated, preset, sourceFigure, table update time, preset used, and table page

Common uses

  • Baltic, Central European and euro-area macro dashboards
  • Tracking Latvia's inflation, growth and jobs
  • Research needing any official Latvia table

Request

POST https://api.pushbuild.com/statistics-latvia-data/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
presetslist of stringsAny of: cpi, gdp, unemployment. Default (when no table is given): all three.
tablestringAny table path, e.g. VEK/PC/PCI/PCI021m. Find paths with Search tables.
filtersstringVariable code -> value codes. ["*"] selects all values. Variables left out use the table total where it has one, else their first value; all contents are returned unless ContentsCode is filtered.
lastNintegerHow many of the latest periods to return. Default: 12.
fromPeriodstringPeriod code in the table format, e.g. 2020M01, 2020Q1, 2020. Overrides Latest periods.
toPeriodstringISO form, e.g. 2026-06 or 2026Q2.
searchstringWords to search Statistics Latvia tables. Returns matching table paths and titles instead of data.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/statistics-latvia-data/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"presets": ["cpi", "gdp"], "maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.16 per 1,000 rows. No charge for errors or empty searches.

RowsCost
1,000$0.16
10,000$1.60
100,000$16.00
1,000,000$160.00
6,249 a monthFree ($1 monthly credit)

Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: https://api.pushbuild.com/mcp/statistics-latvia-data. Add it to any assistant that supports remote MCP servers, with your key in the X-API-Key header. Same prices. Setup for each app.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.

Want these numbers on one screen alongside your own? Dashboards and reporting