Latvia CSB Statistics Scraper
Pricing
from $7.50 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share

🇱🇻 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 |
|---|---|
| 📊 Economists | Pull macro indicators for cross-country comparisons |
| 🏢 Market researchers | Demographic and consumer baselines |
| 🏛️ Public policy teams | Track official indicators over time |
| 🎓 Researchers | Build reproducible national datasets |
| 📰 Journalists | Verify population, price, and trade statistics |
| 👩💻 Developers | Mirror 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
| Field | Type | Required | Description |
|---|---|---|---|
tablePath | string | Yes | Latvia Central Statistical Bureau (CSB) table path. |
maxItems | integer | No | Free users 10. Paid users up to 1,000,000. Prefill 10. |
lang | enum | No | Response language. |
query or variableSelection | string | No | Optional. 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
maxItemsto bound the dataset.
📊 Output
Each record is a flat object. The error field is always last.
| Field | Type | Description |
|---|---|---|
🗂️ tablePath | string | Latvia Central Statistical Bureau (CSB) table path. |
📘 title | string | Human-readable title of the table. |
📅 period | string | Time period label. |
🏷️ category | string | Primary category label. |
📏 unit | string | Unit of measurement when reported by the source. |
🔢 value | number | Numeric value of the cell. |
🕒 scrapedAt | string | ISO timestamp when the row was fetched. |
❌ error | string | Set 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
| Approach | Setup time | Variable resolution | Flat rows | Error handling |
|---|---|---|---|---|
| Roll your own fetch | 30 min plus | Manual | Manual | None |
| Python client library | 1 hour install | Partial | Manual | Partial |
| This Actor | 5 seconds, no install | Automatic | Automatic | Built in |
🚀 How to use
- Click Try for free.
- Pick a table path. Defaults are provided.
- (Optional) Pass a variable selection to narrow the slice.
- 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
| Actor | What it does |
|---|---|
| ParseForge Denmark Statbank Scraper | Denmark official statistics. |
| ParseForge Norway SSB Scraper | Norway official statistics. |
| ParseForge OurAirports Scraper | Global airport database. |
| ParseForge Alpha Vantage Scraper | Market 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.