VOOZH about

URL: https://apify.com/parseforge/latvia-csb-statistics-scraper

โ‡ฑ Latvia CSB Statistics Scraper ยท Apify


Pricing

from $7.50 / 1,000 results

Go to Apify Store

Latvia CSB Statistics Scraper

Reach into the Central Statistical Bureau of Latvia and pull table rows by tablePath. Each record carries the indicator name, contents code, time period, category, unit, and numeric value. Useful for demographic, economic, and population analysis on Latvian official statistics.

Pricing

from $7.50 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

24 days ago

Last modified

Share

๐Ÿ‘ ParseForge Banner

๐Ÿ‡ฑ๐Ÿ‡ป Latvia CSB Public Statistics Scraper

๐Ÿš€ Export Latvia Central Statistical Bureau (CSB) public statistics in seconds. Population, prices, labour, trade, and more straight from the official data.stat.gov.lv endpoint into a clean dataset.

๐Ÿ•’ Last updated: 2026-06-05 ยท ๐Ÿ“Š 8 fields per record ยท 2,000+ official tables ยท Population, economy, prices, labour, trade

The ๐Ÿ‡ฑ๐Ÿ‡ป Latvia CSB Public Statistics Scraper turns Latvia Central Statistical Bureau (CSB)'s official statistics service into a structured dataset. It calls the public REST endpoint with the table path you choose, parses the response, and flattens it into one row per data point.

You can target any of the 2,000+ public tables hosted by Latvia Central Statistical Bureau (CSB). The scraper auto-discovers each table's variables and pulls the full multi-dimensional matrix.

๐ŸŽฏ Target Audience๐Ÿ’ก Primary Use Cases
๐Ÿ“Š EconomistsPull macro indicators for cross-country comparisons
๐Ÿข Market researchersDemographic and consumer baselines
๐Ÿ›๏ธ Public policy teamsTrack official indicators over time
๐ŸŽ“ ResearchersBuild reproducible national datasets
๐Ÿ“ฐ JournalistsVerify population, price, and trade statistics
๐Ÿ‘ฉโ€๐Ÿ’ป DevelopersMirror official tables into your own database

๐Ÿ“‹ What this scraper does

  • Calls the official data.stat.gov.lv REST endpoint with the table path you provide.
  • Auto-discovers each table's variables (region, time, category) via the metadata endpoint.
  • Parses the response and flattens every cell into one row.
  • Resolves variable codes to human-readable labels.
  • Surfaces upstream errors as a single diagnostic record instead of crashing.
  • Exports as a clean tabular dataset ready for download in your preferred format.

๐Ÿ’ก Why it matters: Official statistics agencies ship data as multi-dimensional matrices. Most analysts spend hours wrangling that shape into long-form rows. This actor does the flattening for you so the data drops straight into pandas, BigQuery, or a spreadsheet.

๐ŸŽฌ Full Demo

๐Ÿšง Coming soon.

โš™๏ธ Input

FieldTypeRequiredDescription
tablePathstringYesLatvia Central Statistical Bureau (CSB) table path.
maxItemsintegerNoFree users 10. Paid users up to 1,000,000. Prefill 10.
langenumNoResponse language.
query or variableSelectionstringNoOptional. JSON array of variable selections forwarded to the API.

Example 1:

{
"tablePath":"OSP_PUB/START/POP/IR/IRS/IRS010",
"maxItems":100,
"lang":"en"
}

Example 2:

{
"tablePath":"OSP_PUB/START/ECN/CPI/PCI/PCI010",
"maxItems":200,
"lang":"en"
}

โš ๏ธ Good to Know: Every table has its own variable structure. If you leave the variable selection empty, the actor auto-discovers the variables and requests all values. For very large tables, set maxItems to bound the dataset.

๐Ÿ“Š Output

Each record is a flat object. The error field is always last.

FieldTypeDescription
๐Ÿ—‚๏ธ tablePathstringLatvia Central Statistical Bureau (CSB) table path.
๐Ÿ“˜ titlestringHuman-readable title of the table.
๐Ÿ“… periodstringTime period label.
๐Ÿท๏ธ categorystringPrimary category label.
๐Ÿ“ unitstringUnit of measurement when reported by the source.
๐Ÿ”ข valuenumberNumeric value of the cell.
๐Ÿ•’ scrapedAtstringISO timestamp when the row was fetched.
โŒ errorstringSet if the upstream response was an error.

โœจ Why choose this Actor

| ๐Ÿ†“ | Works with the free public REST endpoint. No authentication needed. | | ๐Ÿงน | Resolves variable codes to readable labels. | | ๐Ÿ”ข | Auto-casts numeric cells to real numbers. | | ๐Ÿ›Ÿ | Surfaces upstream errors as a clean diagnostic record. | | ๐Ÿ”Œ | Targets any of the 2,000+ official tables by identifier. | | ๐Ÿ’พ | Push to dataset for instant export. |

๐Ÿ“ˆ How it compares to alternatives

ApproachSetup timeVariable resolutionFlat rowsError handling
Roll your own fetch30 min plusManualManualNone
Python client library1 hour installPartialManualPartial
This Actor5 seconds, no installAutomaticAutomaticBuilt in

๐Ÿš€ How to use

  1. Click Try for free.
  2. Pick a table path. Defaults are provided.
  3. (Optional) Pass a variable selection to narrow the slice.
  4. Click Start. Within seconds your dataset is ready.

๐Ÿ’ผ Business use cases

๐Ÿ“Š Macro research. Pull GDP, prices, and labour indicators into a single dataset.

๐Ÿข Market sizing. Use demographic tables to baseline market opportunity by region.

๐Ÿ›๏ธ Policy monitoring. Track official indicators over time without a custom scraper.

๐Ÿค– ML feature engineering. Build clean training sets of macro indicators for forecasting models.

๐Ÿ”Œ Automating this scraper

  • Make and Zapier trigger this actor on a monthly cadence, push results to Airtable or Google Sheets.
  • Cron schedule uses Apify's native scheduler.
  • Webhooks notify your endpoint the moment a run finishes.
  • Pipe to BigQuery, Snowflake, or Postgres with native Apify integrations.

๐ŸŒŸ Beyond business use cases

๐ŸŽ“ Education. Teach econometrics or social science with real official statistics.

๐Ÿงช Personal research. Pull niche tables on agriculture, energy, or migration for a side project.

๐Ÿค Non-profit and open data. Build public dashboards of demographics and economy.

๐Ÿงฐ Tinkering and prototyping. Spin up a data feed in seconds for a chart library demo.

๐Ÿค– Ask an AI assistant about this scraper

Pop this README into Claude, ChatGPT, or any AI assistant and ask it to map your specific workflow to the actor's inputs. The schema, examples, and field list above contain everything an LLM needs to design a working pipeline.

โ“ Frequently Asked Questions

โ“ Do I need an API key? No. The endpoint is fully public.

โ“ How do I find the right identifier? Browse the table catalogue on data.stat.gov.lv. Each table has a short code or path.

โ“ Can I narrow the slice? Yes, pass a variable selection to filter dimensions.

โ“ Are values cast to numbers? Yes. Numeric cells are returned as real numbers.

โ“ How do you handle errors? Upstream errors are pushed as a single record with the error field populated instead of crashing.

โ“ Can I schedule runs? Yes, use Apify's native scheduler or hook into Make or Zapier.

โ“ Is this scraping or an API? API. The REST endpoint is the official public interface.

โ“ Will the schema change? Core fields (identifier, period, value, error) are stable.

โ“ What format can I download? Use any export format offered by the Apify dataset UI.

๐Ÿ”Œ Integrate with any app

Apify ships native integrations with Make, Zapier, Slack, Discord, Google Drive, Google Sheets, Gmail, Airbyte, Keboola, Telegram, GitHub, and any REST API or webhook endpoint. Trigger runs from a calendar event, a form submission, or a cron job, or pipe results straight into BigQuery, Snowflake, or a Postgres warehouse.

๐Ÿ”— Recommended Actors

ActorWhat it does
ParseForge Denmark Statbank ScraperDenmark official statistics.
ParseForge Norway SSB ScraperNorway official statistics.
ParseForge OurAirports ScraperGlobal airport database.
ParseForge Alpha Vantage ScraperMarket data and indicators.

๐Ÿ’ก Pro Tip: browse the complete ParseForge collection for 900+ production-grade scrapers across business intelligence, real estate, e-commerce, sports, finance, and public records.


Disclaimer: This actor scrapes only publicly available data. ParseForge is not affiliated with, endorsed by, or sponsored by any of the third-party services referenced. Users are responsible for complying with the target site's terms of service and applicable law. Create a free account w/ $5 credit.

You might also like

Latvia Companies Registry Scraper

parseforge/latvia-lursoft-ur-scraper

Reach into the data.gov.lv Uznemumu Registrs dataset of Latvian companies by resource id. Add an optional free text query to filter results. Useful for KYC checks, cross border due diligence, sales prospecting in the Baltics, and building Latvia focused B2B company intelligence.

TurkStat Turkey Statistics Scraper

parseforge/turkstat-turkey-statistics-scraper

Query TurkStat (TรœฤฐK) categories and pull Turkish national statistics with indicator, value, period, region, category, unit, source, and release_date. Useful for inflation analysis, demographic research, and macroeconomic dashboards covering the Turkish lira, employment, and trade.

Dutch CBS Statistics Scraper

parseforge/dutch-cbs-statistics-scraper

Export official Netherlands statistics from Statistics Netherlands (CBS) Open Data. Browse table catalog or pull full datasets by table ID. Filter rows with OData expressions. Population, economy, labor, housing, education data.

Eurostat EU Statistics Scraper

crawlerbros/eurostat-eu-statistics-scraper

Fetch GDP, population, employment, inflation and 8000+ other EU statistical datasets from Eurostat's official API. Filter by country, time period, and indicator. No API key required.

Japan Government Statistics Analyzer

hassy/japan-statistics-analyzer-2

Extract and analyze comprehensive statistical data from Japan's official e-Stat government portal. This Actor provides automated access to population census, economic indicators, labor force surveys, and other official statistics with structured JSON output for easy analysis and research.

DANE Colombia Statistics Scraper

parseforge/dane-colombia-statistics-scraper

Pull Colombian national statistics from DANE landing pages, returning indicator, value, period, category, source, release_date, and url. Useful for inflation tracking, demographic studies, and macroeconomic dashboards covering Colombian GDP, employment, and household survey indicators.

ECB Statistics Scraper

crawlerbros/ecb-statistics-scraper

Fetch time-series statistical data from the European Central Bank (ECB) Statistical Data Warehouse - exchange rates, interest rates, money supply, economic indicators. No API key required.

DBnomics Economic Series Scraper

parseforge/dbnomics-economic-series-scraper

Pull economic time series from DBnomics across providers like ECB, IMF, Eurostat, World Bank, and OECD. Every record carries provider, dataset, series code, frequency, unit, period, date, and a numeric value. Search by keyword or fetch a known series for macro panels and forecasting.

INEGI Mexico Indicators Scraper

parseforge/inegi-mexico-indicators-scraper

Query the INEGI BIE catalog for any Mexican economic or demographic indicator and return indicator_id, name, value, period, geo_area, unit, source, and last_updated. Filter by geographic area code for national, state, or municipal coverage to power research and macro dashboards.