CNES Brazil Health Establishments Scraper avatar

CNES Brazil Health Establishments Scraper

Pricing

from $7.50 / 1,000 results

Go to Apify Store
CNES Brazil Health Establishments Scraper

CNES Brazil Health Establishments Scraper

Scrapes health establishment records from CNES, Brazil's national registry. Filter by state, city, or name and export to CSV, JSON, Excel, or XML.

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

11 days ago

Last modified

Share

ParseForge

CNES Brazil Health Establishments Scraper

Scrape Brazilian health establishments from CNES, the national registry, by state, city, or name, up to a million per run. Each record includes the establishment's CNES code, type, address, and contact details. No login or API key. Export to CSV, JSON, Excel, or XML.

CNES, the Cadastro Nacional de Estabelecimentos de Saúde, is Brazil's official registry of every public and private health facility, from hospitals to clinics. The official DATASUS portal is built for manual lookups, not bulk data collection. This Actor reads the public CNES search directly, filters by state, city, or establishment name, and returns each match in one fixed schema.

Who uses itWhat they scrape CNES Brazil for
Market researchersMapping the distribution of clinics and hospitals across Brazilian states
Healthcare analystsBuilding a current list of facilities for service planning
Pharma sales teamsIdentifying target establishments by specialty and location
Public health researchersStudying healthcare access and facility density

What it does

This Actor collects health establishment records from CNES by state, city, or name, and returns each one as a flat row.

  • 📍 Geographic filters: narrow by state (UF) or a specific city using its IBGE code.
  • 🔍 Name search: filter establishments by name or search term.
  • ⚙️ Flexible limits: set a maximum number of establishments per run, from 1 to 1,000,000.
  • 📦 Structured output: each record is returned as a flat row with consistent fields.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with CNES Brazil data

📊 Market analysis.

A market researcher runs the Actor for all states to map the density of private clinics and identify underserved regions.

🏥 Healthcare planning.

A public health analyst collects all hospitals in a state to assess bed capacity and service gaps.

💊 Pharma targeting.

A sales team filters by city and establishment type to build a list of potential prescribers.

🔬 Academic research.

A researcher gathers a nationwide dataset of health facilities to study access disparities.

Why choose this scraper

What you get
Official dataDirectly from CNES, the national health establishment registry
No API keyUses the public search interface, no registration required
ScalableCollect up to a million records per run
Flexible filtersTarget by state, city, or name

How it compares

No other Store actor targets CNES Brazil the same way, so the honest comparison is with the alternatives teams actually weigh.

CNES Brazil Health Establishments ScraperBuild it in-houseBy hand
SetupRun it now, zero configDays of engineeringNone, but hours per pull
When CNES Brazil changesMaintained for youYou fix itYou re-learn the page
Proxies, retries, anti-botBuilt inYour problemBrowser only
OutputFixed JSON schema, CSV/Excel exportWhatever you buildCopy-paste
CostPay per resultEngineering timeAnalyst hours

Configure the run

Drive the Actor from state, city, and establishment name, alone or together, and filters run as each record is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
"maxItems": 10
}

A larger pull:

{
"maxItems": 200
}

Pricing

Pay-per-result: $0.0085 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$0.85
1,000 results$8.50
10,000 results$85.00

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

  1. Create a free Apify account with $5 in credit.
  2. Open the CNES Brazil Health Establishments Scraper.
  3. Set your inputs and any filters, then click Start.
  4. 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 CNES Brazil 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/cnes-brazil-health-establishments-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 filters. If you set a state or city, ensure the codes are correct. Also verify the search term if used. Try broadening your filters.

The run is taking too long.

Reduce the maximum establishments or narrow your filters to a specific state or city.

Some records are missing fields.

CNES may not have complete data for every establishment. Missing fields will be empty in the output.

I get an error about the city code.

The city input expects a 6-digit IBGE municipal code. You can find the code on the IBGE website or by searching for the city name plus 'IBGE code'.

FAQ

QuestionAnswer
What is CNES?CNES is the Cadastro Nacional de Estabelecimentos de Saúde, Brazil's official registry of all health establishments, maintained by the Ministry of Health through DATASUS.
Do I need an API key or login?No. This Actor uses the public CNES search interface, so no registration or credentials are required.
Can I filter by state?Yes. Use the state input with the two-letter UF code, such as SP for São Paulo or RJ for Rio de Janeiro.
Can I filter by city?Yes. Provide the 6-digit IBGE municipal code for the city, for example 355030 for São Paulo.
Can I search by establishment name?Yes. Use the search input to filter establishments by name or a partial term.
How many records can I collect?You can set the maximum establishments per run from 1 to 1,000,000.
What data fields are returned?Each record includes the CNES code, establishment name, type, address, contact details, and other registry fields. The exact fields are shown in the sample output.
What export formats are supported?You can export the results to CSV, JSON, Excel, or XML.
Is the data up to date?The Actor reads directly from the live CNES database, so the data reflects the current registry at the time of the run.
Can I run this for the whole country?Yes. Leave the state and city inputs empty to collect establishments nationwide, subject to the maximum items limit.

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 Ministério da Saúde, DATASUS. 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.