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

Tap the CNES registry of Brazilian health facilities and return cnes_id, name, type, manager, address, city, state, services, and beds. Useful for healthcare market mapping, public health research, hospital coverage studies, and bed capacity planning across every Brazilian municipality.

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

3 days ago

Last modified

Share

ParseForge Banner

🏥 CNES Brazil Health Establishments Scraper

🚀 Export Brazil's CNES national registry of health establishments in seconds. Hospitals, clinics, managers, services, and bed counts.

🕒 Last updated: 2026-05-29 · 📊 11 fields per record · All 27 Brazilian states · 350,000+ establishments

The CNES Brazil Health Establishments Scraper turns the cnes.datasus.gov.br public registry into a structured dataset. It calls DataSUS's establishment lookup endpoint and returns one row per facility, including CNES code, official name, type, manager, address, services, and bed counts.

Coverage spans the entire Cadastro Nacional de Estabelecimentos de Saúde maintained by Brazil's Ministry of Health, with filters by state and municipality.

🎯 Target Audience💡 Primary Use Cases
🏥 Health system analystsMap facility distribution by region
📊 Public health researchersQuantify hospital bed capacity per municipality
🏛️ Policy makersAudit primary care coverage
📰 JournalistsVerify establishment ownership and management
🤖 Data engineersMirror CNES into your own warehouse
🎓 AcademicsBuild study cohorts of Brazilian health facilities

📋 What the CNES Brazil Health Establishments Scraper does

  • Queries the public CNES services endpoint with optional state, city, and name filters.
  • Flattens each establishment record into a clean row with normalized field names.
  • Combines street, number, and neighborhood into a single address string.
  • Casts bed counts to numbers for clean BI ingestion.
  • Surfaces upstream errors as a single diagnostic row instead of crashing.

💡 Why it matters: CNES is the authoritative source on Brazil's 350,000+ health establishments, but its public viewer is a Java applet style page that's painful to scrape. This actor exposes the raw JSON directly.

🎬 Full Demo

🚧 Coming soon.

⚙️ Input

FieldTypeRequiredDescription
stateenumNoTwo-letter state code or empty for all states.
citystringNo6-digit IBGE municipal code.
searchstringNoFilter by establishment name.
maxItemsintegerNoFree 10, paid up to 1,000,000.

Example 1 - All São Paulo state hospitals:

{ "state": "SP", "maxItems": 100 }

Example 2 - Search by name in Rio de Janeiro municipality:

{ "state": "RJ", "city": "330455", "search": "HOSPITAL", "maxItems": 50 }

⚠️ Good to Know: CNES updates daily. Bed counts may differ from facility websites if the facility has not updated its CNES registration recently.

📊 Output

FieldTypeDescription
🆔 cnes_idstringCNES national identifier.
🏥 namestringEstablishment name.
🩺 typestringFacility type.
👤 managerstringManagement entity.
📍 addressstringCombined street, number, and neighborhood.
🏙️ citystringMunicipality name.
🗺️ statestringState UF code.
💼 servicesstringReported services.
🛏️ bedsnumberTotal bed count.
🕒 scrapedAtstringWhen this row was fetched.
errorstringSet if the upstream response was an error.

Sample record:

{
"cnes_id": "2077485",
"name": "HOSPITAL DAS CLINICAS DA FMUSP",
"type": "HOSPITAL GERAL",
"manager": "MUNICIPAL",
"address": "AV DR ENEAS DE CARVALHO AGUIAR, 255, CERQUEIRA CESAR",
"city": "SAO PAULO",
"state": "SP",
"services": null,
"beds": 2200,
"scrapedAt": "2026-05-29T13:00:00.000Z",
"error": null
}

✨ Why choose this Actor

| 🆓 | Works with no API key. | | 🇧🇷 | All 27 states, every municipality. | | 🔢 | Bed counts cast to real numbers. | | 🧹 | Normalized field names ready for BI. | | 💾 | Push to dataset and export CSV, Excel, JSON, or XML. |

📈 How it compares to alternatives

ApproachSetup timeClean rowsCoverageMaintained
Manual CNES web UI10 min per filterpartialmanual
DataSUS bulk dumpshours to parsepartialfullquarterly
This Actor5 sec, no installfulllive

🚀 How to use

  1. Click Try for free.
  2. Pick a state and optionally a city code or name search.
  3. Click Start. Your dataset is ready within seconds.

💼 Business use cases

🏥 Capacity planning. Map bed counts per state to spot care deserts.

📊 M&A research. Identify hospital networks within a target region.

📰 Newsroom verification. Confirm a facility's official registration and management.

🤖 Geocoding pipelines. Feed the address field into a geocoder to build a map layer.

🔌 Automating CNES Brazil Health Establishments Scraper

  • Make / Zapier: trigger and push to Airtable or Google Sheets.
  • Cron schedule: native Apify scheduler for nightly refreshes.
  • Webhooks: POST to your endpoint after each run.
  • Pipe to BigQuery / Snowflake / Postgres: native integrations.

🌟 Beyond business use cases

🎓 Education. Teach health informatics with real Brazilian SUS data.

🧪 Personal research. Map healthcare access in your home state.

🤝 Non-profit. Power patient navigation and referral apps.

🧰 Prototyping. Spin up a dashboard in minutes with real data.

🤖 Ask an AI assistant about this scraper

Paste this README into ChatGPT or Claude and ask it to map your workflow to the actor's inputs.

❓ Frequently Asked Questions

❓ Do I need an API key? No.

❓ Which establishments are covered? Every facility registered with Brazil's CNES.

❓ How fresh is the data? CNES updates daily; this actor reads it live.

❓ Are bed counts cast to numbers? Yes.

❓ Can I filter by city? Yes, pass the 6-digit IBGE code.

❓ Can I schedule runs? Yes via the Apify scheduler.

❓ Is this scraping or API? Public DataSUS JSON services.

❓ What format can I download? CSV, Excel, JSON, JSONL, XML, RSS, or HTML.

❓ What if the search returns no results? A diagnostic record with error is pushed.

❓ Will the schema change? Stable.

🔌 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.

ActorWhat it does
ParseForge ONPE Peru Elections ScraperPeru election results.
ParseForge collection900+ production scrapers.

💡 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.