# Brazil Health Plan Operators - ANS Registry, Complaints & IDSS (`formative_cobia/brazil-health-plan-operators`) Actor

Official ANS registry of Brazilian health plan operators (active and cancelled) with beneficiaries, complaints index (IGR) and IDSS quality score in one clean row per operator. Filter by state, city, modality, CNPJ or name; monitoring mode returns only new operators and cancellations.

- **URL**: https://apify.com/formative_cobia/brazil-health-plan-operators.md
- **Developed by:** [BR Open Data Tools](https://apify.com/formative_cobia) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 operators

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Brazil Health Plan Operators – ANS Registry, Complaints & IDSS

Get the official registry of **Brazilian health plan operators** (operadoras de planos de saúde) from the ANS – Agência Nacional de Saúde Suplementar – in one clean row per operator, already combined with:

- **Beneficiaries** and **operator size** (latest month).
- **Complaints index (IGR)**: complaints per 100,000 beneficiaries, for medical and dental coverage.
- **IDSS quality score** (0 to 1) and its four dimensions.
- **Cancelled operators** with cancellation date and reason.

Filter by state, city, modality, ANS registry number, CNPJ or name. Turn on monitoring mode to receive only **new operators and new cancellations** on each scheduled run.

### Who uses it

- Brokers, benefits administrators and HR teams comparing health plan operators.
- Hospitals, clinics, labs and health-tech companies building B2B prospect lists.
- Compliance and KYC teams checking whether an operator is active or was cancelled, and why.
- Analysts, journalists and researchers studying the private health market in Brazil.

### Why use it

The ANS publishes this information in separate CSV files with different conventions: registry numbers with and without leading zeros, decimal commas, "ND" for missing values, a 17 MB monthly complaints file and a wide IDSS table with one column per year. This Actor downloads, cleans and joins them for you:

- One row per operator, with numbers as numbers and dates as **YYYY-MM-DD**.
- Only the **latest month** of complaints and beneficiaries, and the **most recent IDSS** available.
- Accent-insensitive filters ("sao paulo" matches "São Paulo").
- If an enrichment file is temporarily unavailable, the operators are still delivered and the problem is reported in the run summary.
- The legal representative's name is **never** returned.

### Input

| Field | Description | Default |
|---|---|---|
| **Operator status** | `active`, `cancelled` or `all`. | active |
| **States (UF)** | Head office state codes, e.g. `SP`, `RJ`. Empty = all. | – |
| **Cities** | Head office cities, accents ignored. | – |
| **Modalities** | Medical cooperative, group medicine, benefits administrator, self-managed, group dentistry, dental cooperative, philanthropic, health insurer (and legacy modalities of cancelled operators). | all |
| **ANS registry numbers** | Up to 500, e.g. `326305`. | – |
| **CNPJs** | Up to 500, with or without punctuation. | – |
| **Name contains** | Searched in legal and trade names. | – |
| **Registered on or after / Cancelled on or after** | Date filters (YYYY-MM-DD). | – |
| **Add beneficiaries and complaints index (IGR)** | Latest month per coverage. | on |
| **Add IDSS quality score** | Most recent IDSS and its dimensions. | on |
| **Add institutional contact** | Registered phone, fax and e-mail of the operator. | off |
| **Only new operators and cancellations** | Monitoring mode. | off |
| **Max results / Max requests / Max run time** | Hard limits that control cost. | 2000 / 20 / 300 s |

#### Example input

```json
{
  "status": "all",
  "states": ["SP", "RJ"],
  "modalities": ["medical_cooperative", "group_medicine"],
  "cancelledFrom": "2026-01-01",
  "includeComplaints": true,
  "includeQualityScore": true
}
```

### Output

One row per operator and status. Example (values shortened):

```json
{
  "registryNumber": "000582",
  "cnpj": "01234567000189",
  "cnpjFormatted": "01.234.567/0001-89",
  "legalName": "EXAMPLE SAÚDE S/A",
  "tradeName": "EXAMPLE",
  "modality": "Seguradora Especializada em Saúde",
  "modalityCode": "health_insurer",
  "status": "active",
  "registeredAt": "2001-02-15",
  "cancelledAt": null,
  "cancellationReason": null,
  "city": "São Paulo",
  "state": "SP",
  "postalCode": "01001000",
  "commercializationRegion": 1,
  "beneficiaries": 2179821,
  "operatorSize": "large",
  "totalComplaints": 775,
  "complaintsPeriod": "2026-10",
  "beneficiariesPeriod": "2026-09",
  "complaintsByCoverage": [
    {"coverage": "medical", "coverageName": "Assistência médica", "igr": 85.68, "complaints": 768, "beneficiaries": 896332},
    {"coverage": "dental", "coverageName": "Exclusivamente odontológica", "igr": 0.55, "complaints": 7, "beneficiaries": 1283489}
  ],
  "idss": 0.8123,
  "idssProgramYear": 2025,
  "idssBaseYear": 2024,
  "idqs": 0.7, "idga": 0.6, "idsm": 0.95, "idgr": 1.0,
  "observationKey": "000582:active",
  "registrySourceUpdatedAt": "2026-11-14T10:00:07+00:00",
  "fetchedAt": "2026-11-14T22:00:00+00:00",
  "attribution": "Fonte: ANS - Agência Nacional de Saúde Suplementar (dados abertos)"
}
```

Also returned: `street`, `number`, `complement`, `district`; and, with **Add institutional contact**, `phone`, `fax` and `email`. Fields from an enrichment that is turned off are not included; fields without data are `null` (for example, benefits administrators have no beneficiaries of their own, and new operators may not have an IDSS yet).

A run summary is saved as **SUMMARY** in the run's key-value store: operators matched per status, when the ANS last updated the registry, enrichment counts, errors, requests used, duration and the stop reason.

### Cost control

- **Max results** caps the number of billable rows.
- **Max requests** and **Max run time** cap the work done.
- The maximum charge you set for a run is respected: the Actor stops before exceeding it.
- No matching operators means no result charges.

### Pricing

Pay per event: a small fee when a run starts and a fee per operator delivered. See the pricing tab for current values.

### Tips

- For a daily watch of new operators and cancellations, schedule the Actor with **Only new operators and cancellations** on and **Operator status** = `all`. An operator that moves from active to cancelled is delivered again, now as cancelled.
- The memory of delivered operators is kept in a named key-value store in your account (`brazil-health-plan-operators-state`), separately for each combination of filters.
- The registry is updated by the ANS about once a day; the complaints index and beneficiaries monthly; the IDSS once a year.

### Limitations

- Data and publication delays are those of the ANS. The complaints index uses the ANS methodology (IGR, 2023 version); a beneficiaries count belongs to the month shown in `beneficiariesPeriod`.
- Beneficiaries are summed over medical and dental coverage, so a person with both coverages at the same operator is counted twice.
- City, state and address are those of the operator's head office, not where its plans are sold.
- If the ANS portal is temporarily unavailable, the Actor retries 3 times with increasing waits and then reports a clear error.

### Data source and license

- Source: open data portal of the ANS – Agência Nacional de Saúde Suplementar (registry of active and cancelled operators, complaints index IGR, IDSS history). No login or API key is required.
- These datasets are published under the Brazilian federal open data policy, which allows free reuse, including commercial use, provided the source is credited. Keep the attribution "Fonte: ANS - Agência Nacional de Saúde Suplementar" when you share data from this Actor.
- The legal representative's name and role, present in the source files, are deliberately not returned.
- This Actor is an independent tool and is not affiliated with or endorsed by the ANS.

# Changelog

This Actor's version history is a separate document: https://apify.com/formative_cobia/brazil-health-plan-operators/changelog.md

# Actor input Schema

## `status` (type: `string`):

Active operators, cancelled operators (with cancellation date and reason) or both.

## `states` (type: `array`):

Two-letter state codes of the operator's head office, e.g. SP, RJ, MG. Empty = all states.

## `cities` (type: `array`):

Head office city names. Accents and capitals are ignored ("sao paulo" matches "São Paulo").

## `modalities` (type: `array`):

ANS operator modalities. Empty = all.

## `registryNumbers` (type: `array`):

Only these operators (ANS registry number, up to 6 digits, e.g. 326305).

## `cnpjs` (type: `array`):

Only these companies (14 digits, with or without punctuation).

## `nameContains` (type: `string`):

Text searched in the legal and trade names. Accents and capitals are ignored.

## `registeredFrom` (type: `string`):

Only operators registered at the ANS on or after this date (YYYY-MM-DD).

## `cancelledFrom` (type: `string`):

Cancelled operators only: cancellation date on or after this date (YYYY-MM-DD).

## `includeComplaints` (type: `boolean`):

Adds the latest monthly beneficiaries count, operator size and complaints index (complaints per 100,000 beneficiaries) per coverage.

## `includeQualityScore` (type: `boolean`):

Adds the most recent IDSS (ANS quality index, 0 to 1) and its four dimensions.

## `includeContactInfo` (type: `boolean`):

Adds the operator's registered phone, fax and e-mail. The legal representative's name is never returned.

## `onlyNew` (type: `boolean`):

Remember what was already delivered for the same filters and return only new operators or newly cancelled ones. Ideal with a daily schedule.

## `maxItems` (type: `integer`):

Hard limit of operators per run (controls the cost).

## `maxRequests` (type: `integer`):

Hard limit of file downloads per run, retries included.

## `maxRunSeconds` (type: `integer`):

The run stops gracefully after this time.

## Actor input object example

```json
{
  "status": "active",
  "states": [
    "AC"
  ],
  "includeComplaints": true,
  "includeQualityScore": true,
  "includeContactInfo": false,
  "onlyNew": false,
  "maxItems": 20,
  "maxRequests": 20,
  "maxRunSeconds": 120
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "states": [
        "AC"
    ],
    "maxItems": 20,
    "maxRunSeconds": 120
};

// Run the Actor and wait for it to finish
const run = await client.actor("formative_cobia/brazil-health-plan-operators").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "states": ["AC"],
    "maxItems": 20,
    "maxRunSeconds": 120,
}

# Run the Actor and wait for it to finish
run = client.actor("formative_cobia/brazil-health-plan-operators").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "states": [
    "AC"
  ],
  "maxItems": 20,
  "maxRunSeconds": 120
}' |
apify call formative_cobia/brazil-health-plan-operators --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,formative_cobia/brazil-health-plan-operators"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/VRPnbLq5ShgawLjr5/builds/jDFolE5I31xovA1Qq/openapi.json
