{"openapi":"3.1.0","info":{"title":"Latvia Statistics API","version":"1.0.0","description":"Official Latvian statistics from the Official Statistics Portal of Latvia (Central Statistical Bureau, CSB) as a clean, keyless JSON API. Get the latest Latvian consumer price index and inflation — the monthly index (2025 = 100) with both the month-on-month and year-on-year change, straight from the source — pull any table in the Latvian PxWeb catalogue as a tidy time-series (economy, prices, population, labour market, trade, business and more), inspect a table's variables and value codes, and browse the subject tree. A thin gateway over the Official Statistics of Latvia PxWeb API: you supply a table path (relative, e.g. VEK/PC/PCI/PCI021m) with optional dimension selection, we return tidy period/value observations. Ideal for inflation trackers, Baltic and Eurozone macro research and economic dashboards.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/latvia-stats-api","description":"oanor gateway"}],"tags":[{"name":"Inflation"},{"name":"Data"},{"name":"Catalog"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/cpi":{"get":{"operationId":"get_v1_cpi","tags":["Inflation"],"summary":"Latest Latvian CPI and inflation","description":"","parameters":[{"name":"periods","in":"query","required":false,"description":"Number of recent months (1-120)","schema":{"type":"string"},"example":"12"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"base":"2025 = 100","table":"VEK/PC/PCI/PCI021m","latest":{"period":"2026M05","index_value":103.8,"change_annual_pct":3.5,"change_monthly_pct":0.5},"series":[{"period":"2026M05","index_value":103.8,"change_annual_pct":3.5,"change_monthly_pct":0.5},{"period":"2026M04","index_value":103.3,"change_annual_pct":2.9,"change_monthly_pct":0.6},{"period":"2026M03","index_value":102.7,"change_annual_pct":3.4,"change_monthly_pct":1.9},{"period":"2026M02","index_value":100.8,"change_annual_pct":2.3,"change_monthly_pct":0.2},{"period":"2026M01","index_value":100.5,"change_annual_pct":2.9,"change_monthly_pct":0},{"period":"2025M12","index_value":100.5,"change_annual_pct":3.5,"change_monthly_pct":-0.1},{"period":"2025M11","index_value":100.6,"change_annual_pct":3.8,"change_monthly_pct":-0.3},{"period":"2025M10","index_value":100.9,"change_annual_pct":4.3,"change_monthly_pct":0.4},{"period":"2025M09","index_value":100.5,"change_annual_pct":4.1,"change_monthly_pct":0.2},{"period":"2025M08","index_value":100.3,"change_annual_pct":4.1,"change_monthly_pct":-0.2},{"period":"2025M07","index_value":100.5,"change_annual_pct":3.8,"change_monthly_pct":0.1},{"period":"2025M06","index_value":100.4,"change_annual_pct":3.8,"change_monthly_pct":0.1}],"source":"Official Statistics of Latvia (CSB)","measure":"Consumer price index","commodity_group":"Goods and services - total"},"meta":{"timestamp":"2026-06-15T20:41:17.810Z","request_id":"81928818-98dc-4ad8-8da0-2c544e20492c"},"status":"ok","message":"CPI retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/series":{"get":{"operationId":"get_v1_series","tags":["Data"],"summary":"Any Latvian PxWeb table as a time-series","description":"","parameters":[{"name":"path","in":"query","required":true,"description":"Table path relative to OSP_PUB","schema":{"type":"string"},"example":"VEK/PC/PCI/PCI021m"},{"name":"select","in":"query","required":false,"description":"Dimension constraints \"Code:Value;Code:Value\"","schema":{"type":"string"},"example":"ECOICOP_V2:0;ContentsCode:PCI021m"},{"name":"periods","in":"query","required":false,"description":"Recent periods (1-240)","schema":{"type":"string"},"example":"12"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"path":"VEK/PC/PCI/PCI021m","count":12,"title":"Consumer price indices by commodity groups (2025=100) by Commodity group (ECOICOP ver.2) and Time period","series":[{"value":103.8,"period":"2026M05","period_label":"2026M05"},{"value":103.3,"period":"2026M04","period_label":"2026M04"},{"value":102.7,"period":"2026M03","period_label":"2026M03"},{"value":100.8,"period":"2026M02","period_label":"2026M02"},{"value":100.5,"period":"2026M01","period_label":"2026M01"},{"value":100.5,"period":"2025M12","period_label":"2025M12"},{"value":100.6,"period":"2025M11","period_label":"2025M11"},{"value":100.9,"period":"2025M10","period_label":"2025M10"},{"value":100.5,"period":"2025M09","period_label":"2025M09"},{"value":100.3,"period":"2025M08","period_label":"2025M08"},{"value":100.5,"period":"2025M07","period_label":"2025M07"},{"value":100.4,"period":"2025M06","period_label":"2025M06"}],"constrained":{"ECOICOP_V2":{"pos":0,"code":"0","label":"GOODS AND SERVICES - TOTAL"},"ContentsCode":{"pos":0,"code":"EliminatedValue","label":"Consumer price indices by commodity groups (2025=100)"}},"time_dimension":"TIME"},"meta":{"timestamp":"2026-06-15T20:41:18.273Z","request_id":"3aff8482-f100-4d6f-9e2f-119f0aa66ae5"},"status":"ok","message":"Series retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/catalog":{"get":{"operationId":"get_v1_catalog","tags":["Catalog"],"summary":"Browse the subject tree","description":"","parameters":[{"name":"path","in":"query","required":false,"description":"Sub-path to list (omit for root)","schema":{"type":"string"},"example":"VEK/PC"},{"name":"limit","in":"query","required":false,"description":"Max items (1-400)","schema":{"type":"string"},"example":"100"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"path":"VEK/PC","count":4,"items":[{"id":"PCI","text":"Consumer price index and changes","type":"folder"},{"id":"PCS","text":"Harmonized consumer price index and changes","type":"folder"},{"id":"PCC","text":"Average retail trade prices","type":"folder"},{"id":"A_PC","text":"Archive - consumer prices","type":"folder"}]},"meta":{"timestamp":"2026-06-15T20:41:18.414Z","request_id":"cd8b2603-1d25-4c94-b632-6afb2dee1f47"},"status":"ok","message":"Catalog retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/table":{"get":{"operationId":"get_v1_table","tags":["Catalog"],"summary":"Table metadata (variables and value codes)","description":"","parameters":[{"name":"path","in":"query","required":true,"description":"Table path relative to OSP_PUB","schema":{"type":"string"},"example":"VEK/PC/PCI/PCI021m"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"path":"VEK/PC/PCI/PCI021m","title":"Consumer price indices and changes by commodity groups (ECOICOP ver.2) by Commodity group (ECOICOP ver.2), Indicator and Time period","variables":[{"code":"ECOICOP_V2","text":"Commodity group (ECOICOP ver.2)","time":false,"n_values":375,"sample_values":[{"code":"0","text":"GOODS AND SERVICES - TOTAL"},{"code":"20.01","text":"Goods - total"},{"code":"20.02","text":"Non-food goods"},{"code":"20.03","text":"Services"},{"code":"20.04","text":"Food, alcoholic beverages and tobacco"},{"code":"01","text":"Food and non-alcoholic beverages"}]},{"code":"ContentsCode","text":"Indicator","time":false,"n_values":6,"sample_values":[{"code":"PCI021m2","text":"2010=100"},{"code":"PCI021m3","text":"2015=100"},{"code":"PCI021m","text":"2025=100"},{"code":"PCI021m4","text":"12-month average over the previous 12-month average"},{"code":"PCI021m5","text":"% over the previous period"},{"code":"PCI021m6","text":"% over the corresponding period of previous year"}]},{"code":"TIME","text":"Time period","time":true,"n_values":317,"sample_values":[{"code":"2000M01","text":"2000M01"},{"code":"2000M02","text":"2000M02"},{"code":"2000M03","text":"2000M03"},{"code":"2000M04","text":"2000M04"},{"code":"2000M05","text":"2000M05"},{"code":"2000M06","text":"2000M06"}]}]},"meta":{"timestamp":"2026-06-15T20:41:18.554Z","request_id":"4d41ea57-b0ff-4ca2-89bb-744059c49b81"},"status":"ok","message":"Table metadata retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Service metadata","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"path is relative to OSP_PUB, e.g. VEK/PC/PCI/PCI021m (consumer prices).","source":"Official Statistics of Latvia (Central Statistical Bureau, CSB)","upstream":"https://data.stat.gov.lv/api/v1/en/OSP_PUB","cpi_table":"VEK/PC/PCI/PCI021m","endpoints":["/v1/cpi","/v1/series","/v1/table","/v1/catalog","/v1/meta"],"description":"Keyless gateway over the Official Statistics of Latvia PxWeb API. /v1/cpi gives the latest Latvian consumer price index and inflation (index + monthly + year-on-year change); /v1/series pulls any table as a clean time-series; /v1/table inspects a table's variables; /v1/catalog browses the subject tree.","documentation":"https://latvia-stats-api.oanor.dev"},"meta":{"timestamp":"2026-06-15T20:41:18.650Z","request_id":"f4d34a6f-7839-438d-9759-a69f543aaacd"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":2300,"rps_limit":3,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":1080,"monthly_call_quota":47000,"rps_limit":10,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2790,"monthly_call_quota":188000,"rps_limit":25,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":6340,"monthly_call_quota":808000,"rps_limit":60,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/latvia-stats-api"}