Chile Open Data Scraper
parseforge/chile-datos-gob-cl-scraper
BusinessOtherEducation
Scrapes dataset metadata and full rows from Chile's official open data portal, datos.gob.cl. Returns each record as a flat row for export to CSV, JSON, Excel, or XML.
- Total users
- 2
- Monthly active
- 1
- Total runs
- 104
- Bookmarked
- 0
- Rating
- Not rated yet
- Last modified
- 12 days ago
Overview
Chile Open Data Scraper
Scrape Chile Open Data from datos.gob.cl, the official government open data portal. Get dataset metadata or pull full rows from any datastore resource, up to a million records per run. No API key required. Export to CSV, JSON, Excel, or XML.
Chile's official open data portal, datos.gob.cl, hosts thousands of public datasets from government agencies, but browsing and downloading them manually is slow. This Actor reads the portal's public CKAN API directly, so you can list the catalog with metadata or pull complete rows from any dataset resource. No registration, no API key, no rate limits to manage.
| Who uses it | What they scrape Chile Open Data for |
|---|---|
| Data journalists | Find and download government datasets for investigative stories |
| Researchers | Build a local copy of Chilean public data for analysis |
| Government agencies | Monitor datasets published by other Chilean institutions |
| NGOs and civil society | Track public spending, demographics, or environmental data |
| Developers | Integrate Chilean open data into applications or dashboards |
What it does
This Actor collects dataset metadata from the Chile Open Data catalog or full rows from a specific dataset resource, and returns each record as a flat row.
- ๐ Catalog mode: list all datasets with title, description, tags, publisher, and update date, optionally filtered by a search term.
- ๐ Dataset mode: pull every row from a specific datastore resource by dataset ID, with optional resource ID to target a particular table.
- ๐ Search filter: narrow the catalog by keyword across titles, descriptions, and tags before any data is collected.
- โ๏ธ Flexible limits: set a maximum number of datasets or rows per run, from 1 to 1,000,000.
- ๐ค Multiple export formats: save results as CSV, JSON, Excel, or XML directly from the Apify platform.
Results export to CSV, JSON, Excel, or XML, or straight from the API.
What you can do with Chile Open Data data
๐ฐ Build a dataset inventory for journalism.
A data journalist runs catalog mode with a search term like 'salud' to list all health-related datasets, then exports the metadata to plan an investigation.
๐ Track government spending over time.
A researcher pulls rows from a budget execution dataset by its ID, collecting every transaction for a fiscal year to analyze spending patterns.
๐ Monitor environmental indicators.
An NGO sets up a scheduled run to pull the latest air quality measurements from a specific resource, feeding a public dashboard.
๐๏ธ Compare regional statistics.
A policy analyst collects demographic datasets for multiple Chilean regions, then joins them in a spreadsheet to compare outcomes.
๐ป Build a data-driven app.
A developer uses dataset mode to fetch the full contents of a public services directory, then loads it into a mobile app for offline access.
Why choose this scraper
| What you get | |
|---|---|
| No API key | Uses the public CKAN API, no registration or authentication needed |
| Complete data | Pull all rows from a datastore resource, not a preview |
| Up to date | Reflects the live portal, so you always get current metadata and records |
| Structured output | Every record is a flat row with consistent fields, ready for analysis |
How it compares
No other Store actor targets Chile Open Data the same way, so the honest comparison is with the alternatives teams actually weigh.
| Chile Open Data Scraper | Build it in-house | By hand | |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When Chile Open Data changes | Maintained for you | You fix it | You re-learn the page |
| Proxies, retries, anti-bot | Built in | Your problem | Browser only |
| Output | Fixed JSON schema, CSV/Excel export | Whatever you build | Copy-paste |
| Cost | Pay per result | Engineering time | Analyst hours |
Configure the run
Drive the Actor with a mode, an optional dataset ID and resource ID, and a search term for catalog filtering. Limits are applied as records are read, so only the requested number reaches your dataset. The Input tab lists every parameter.
A first run with the defaults:
{
"maxItems": 10,
"mode": "catalog"
}
A larger pull:
{
"maxItems": 200,
"mode": "catalog"
}
Pricing
Pay-per-result: $0.01733 per result collected. You pay only for the results written to your dataset.
| Results collected | Approximate cost |
|---|---|
| 100 results | $1.73 |
| 1,000 results | $17.33 |
| 10,000 results | $173.30 |
New Apify accounts start with $5 in free credit.
Free users
Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.
Run it
- Create a free Apify account with $5 in credit.
- Open the Chile Open Data Scraper.
- Set your inputs and any filters, then click Start.
- Export the results as CSV, Excel, JSON, or XML from the Dataset tab.
Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.
Use with AI agents (MCP)
Give an AI agent live access to Chile Open Data through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/chile-datos-gob-cl-scraper"
Then prompt it in plain language to run the scraper and read back the results.
Troubleshooting
Why am I getting no results?
Check your searchQuery in catalog mode. If it is too specific, it may not match any dataset. In dataset mode, verify that the datasetId is correct and that the dataset has a datastore-enabled resource.
I get an error about a missing dataset ID.
In dataset mode, the datasetId field is required. Run catalog mode first to find the correct ID, then enter it in the input.
The Actor returns fewer records than expected.
Check the maxItems setting. If it is lower than the total number of records, the Actor will stop early. Increase maxItems to collect more.
The resource ID I provided does not work.
Make sure the resource ID is a valid UUID from the dataset. You can find it by viewing the dataset on datos.gob.cl and looking at the resource URL, or by using the CKAN API to list resources.
The Actor times out on large datasets.
Try increasing the Actor's timeout in the Apify run settings, or reduce maxItems to pull a smaller subset first. For very large datasets, consider running multiple times with different filters.
FAQ
| Question | Answer |
|---|---|
| Do I need an API key or registration to use this Actor? | No. The Actor reads the public CKAN API of datos.gob.cl, which does not require authentication. You only need an Apify account to run the Actor. |
| What is the difference between catalog mode and dataset mode? | Catalog mode lists all available datasets with their metadata, such as title, description, tags, and publisher. Dataset mode pulls the actual rows from a specific datastore resource inside a dataset. |
| How do I find the dataset ID or resource ID? | Run the Actor in catalog mode first to see the list of datasets. Each dataset's ID is shown in the output. For resource IDs, you can inspect the dataset on datos.gob.cl or use the CKAN API directly. |
| Can I filter the catalog by keyword? | Yes. Use the searchQuery input to filter datasets by title, description, or tags. The search is performed by the portal's own search engine. |
| What happens if I don't provide a resource ID in dataset mode? | The Actor will use the first datastore-enabled resource within the dataset. If the dataset has multiple resources, you may want to specify the resource ID to target a specific table. |
| Is there a limit to how many records I can pull? | You can set maxItems from 1 to 1,000,000. The Actor will stop after collecting that many records. The portal itself may also impose pagination limits, but the Actor handles pagination automatically. |
| What formats can I export the data to? | On the Apify platform, you can export your results to CSV, JSON, Excel, or XML. You can also download the dataset via API. |
| Does this Actor work with any CKAN portal? | It is designed for datos.gob.cl, the official Chile Open Data portal. It may work with other CKAN-based portals if they expose a similar API, but it is not guaranteed. |
| How often is the data updated? | The Actor reads live data from the portal every time it runs. The freshness depends on how often the portal itself updates its datasets. |
| Can I schedule this Actor to run automatically? | Yes. You can set up a schedule in Apify to run the Actor at regular intervals, such as daily or weekly, to keep your local copy up to date. |
Related actors
Browse the full ParseForge collection for more scrapers.
๐ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.
โ ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Gobierno de Chile. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.
Input
| Field | Type | What it does | Default |
|---|---|---|---|
| maxItems | integer | How many datasets to collect per run. | 10 |
| mode required | string (2 options) | 'catalog' lists all available datasets with metadata; 'dataset' pulls rows from a specific datastore resource. | catalog |
| datasetId | string | Dataset identifier from the catalog. | not set |
| resourceId | string | Resource identifier (UUID) inside the dataset. If omitted, the first datastore-enabled resource is used. | not set |
| searchQuery | string | Filter the catalog by keyword (title, description, tags). | not set |
Pricing
from $13.00 per 1,000 results
| Charged for | What it is | Price each |
|---|---|---|
| Result Item | Charged once per result collected. | $0.013 to $0.01733 |
Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.
API
One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.
curl -X POST "https://api.apify.com/v2/acts/parseforge~chile-datos-gob-cl-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"helloWorld": 123
}' Examples
Input that runs as-is.
{
"helloWorld": 123
} Reviews
No reviews yet. Be the first.
Issues
We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.
Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.
