# ANVISA Brazil Medicines: Registry & CMED Prices (`dados-abertos-br/anvisa-medicamentos`) Actor

Search Brazil's ANVISA drug registry and CMED price ceilings by name, active ingredient, registration number or EAN. Get registration status, expiry, company CNPJ, prescription restrictions and factory (PF) and consumer (PMC) prices per presentation. Official open data, no login.

- **URL**: https://apify.com/dados-abertos-br/anvisa-medicamentos.md
- **Developed by:** [Dados Abertos BR](https://apify.com/dados-abertos-br) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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

**ANVISA Brazil Medicines** searches Brazil's official drug registry and the CMED price list in one run. Type a drug name, an active ingredient, an ANVISA registration number or an EAN barcode and get one clean row per presentation, with registration status, expiry, company and CNPJ, prescription restriction, and the CMED factory price (PF) and maximum consumer price (PMC). Official open data, no login, no personal data. It runs from the Apify Console, the API, schedules, Make, n8n and AI agents (MCP).

### What can this ANVISA Actor do?

- **Check a registration.** Is the product registered with ANVISA, is the registration active, and when does it expire?
- **Find the price ceiling.** Get the CMED factory price (PF) and maximum consumer price (PMC) for each presentation, at the ICMS rate of your state.
- **Look up by barcode.** Send an EAN and get the exact presentation, its registration and its price ceiling.
- **Compare an active ingredient.** List every registered product and presentation of a substance, with company and price.
- **Enrich a catalog.** Add registration, company CNPJ, therapeutic class and restrictions to your own product list.

| Who uses it | What for |
| --- | --- |
| Online pharmacies and marketplaces | Check that an item is registered and priced under the CMED ceiling |
| ERP and health-tech systems | Enrich product catalogs by EAN or registration number |
| Market researchers | Map generics, biologicals and therapeutic classes |
| AI agents | Answer questions about Brazilian medicines with official data |

### What data does it return?

One row per presentation when prices are on, or one row per registration when prices are off.

| Field | Meaning | Example |
| --- | --- | --- |
| `query` | The search that produced the row | `ozempic` |
| `productName` | Product name in the ANVISA registry | `OZEMPIC` |
| `activeIngredient` | Active ingredient | `semaglutida` |
| `registrationNumber` | ANVISA registration, 9 digits | `117660036` |
| `registrationStatus` | `Ativo` or `Inativo` | `Ativo` |
| `registrationExpires` | Expiry of the registration (year and month) | `2028-08` |
| `registrationDate` | Date the registration process was concluded | `2018-08-06` |
| `regulatoryCategory` | ANVISA category: generic, similar, new, biological... | `Biológico` |
| `therapeuticClass` | Therapeutic class | `ANTIDIABETICOS` |
| `processNumber` | ANVISA process number | `25351658916201751` |
| `companyCnpj`, `companyName` | Registration holder | `82277955000155`, `NOVO NORDISK...` |
| `prescriptionRestriction` | Prescription restriction, when listed | `Venda sob prescrição` |
| `hospitalUseOnly` | `true` when restricted to hospital use | `false` |
| `useRestriction` | Adult or pediatric use | `Adulto` |
| `presentation` | Presentation in the CMED list | `1,34 MG/ML SOL INJ CT X 1 CAR...` |
| `ean`, `eanList` | Barcode(s) of the presentation | `7897705202548` |
| `ggremCode` | CMED GGREM code | `526619010010201` |
| `priceRegime` | CMED price regime | `Regulado` |
| `productType` | CMED product type | `Biológico` |
| `factoryPriceBRL` | Factory price (PF) in BRL at the chosen ICMS rate | `979.8` |
| `maxConsumerPriceBRL` | Maximum consumer price (PMC) in BRL at the chosen ICMS rate | `1314.37` |
| `icmsRate` | ICMS rate used for the two prices | `18` |
| `priceListFound` | `false` when the product has no entry in the CMED list | `true` |
| `sourceUpdatedAt` | When ANVISA last updated each source file | see output example |
| `source` | Where the data comes from | `ANVISA dados abertos` |

The registry file repeats the same registration many times, one line per regulatory process. This Actor keeps one row per registration, the active and most recent one, so you do not get duplicates.

### How to search ANVISA medicines

1. Open the Actor and go to **Input**.
2. Type one or more searches: drug names, active ingredients, registration numbers or EAN barcodes. Accents and upper or lower case do not matter.
3. Leave **Search in** on Auto, or pick one field.
4. Choose the **ICMS rate** of your state. 18% is the most common.
5. Click **Start**. A run takes about one minute.
6. Open the **Output** tab and export the table as Excel, CSV or JSON.

### How much does it cost?

Pay per result: **US$ 3.00 per 1,000 result rows**, plus a US$ 0.00005 start fee per run. Platform usage is not billed on top.

- 100 rows cost about US$ 0.30.
- One search can return several rows, one per presentation. A broad search such as `dipirona` returns hundreds.
- Use `maxResultsPerQuery` to cap the rows of each search, and so the cost.

### Input

| Field | What it does | Default |
| --- | --- | --- |
| `queries` | Drug names, active ingredients, registration numbers (9 or 13 digits, dots and dashes allowed) or EAN barcodes | required |
| `searchField` | `auto`, `nome` (product name), `principio_ativo` (active ingredient), `registro` or `ean`. Auto detects numbers | `auto` |
| `onlyActive` | Skip inactive registrations | `true` |
| `includePrices` | Add CMED prices, one row per presentation | `true` |
| `icmsRate` | ICMS rate for prices: 0, 12, 17, 17,5, 18, 19, 19,5, 20, 20,5, 21, 22, 22,5 or 23 | `18` |
| `maxResultsPerQuery` | Row cap for each search | `200` |

#### Input examples

Search by name:

```json
{
  "queries": ["ozempic", "losartana potássica"],
  "icmsRate": "18"
}
```

Price ceiling by EAN barcode:

```json
{
  "queries": ["7897705202548"],
  "searchField": "ean",
  "icmsRate": "18"
}
```

All presentations of an active ingredient, at 12% ICMS:

```json
{
  "queries": ["semaglutida"],
  "searchField": "principio_ativo",
  "icmsRate": "12",
  "maxResultsPerQuery": 100
}
```

Registration status only, without prices:

```json
{
  "queries": ["117660036"],
  "searchField": "registro",
  "onlyActive": false,
  "includePrices": false
}
```

### Output example

```json
{
  "query": "ozempic",
  "productName": "OZEMPIC",
  "activeIngredient": "semaglutida",
  "registrationNumber": "117660036",
  "registrationStatus": "Ativo",
  "registrationExpires": "2028-08",
  "registrationDate": "2018-08-06",
  "regulatoryCategory": "Biológico",
  "therapeuticClass": "ANTIDIABETICOS",
  "processNumber": "25351658916201751",
  "companyCnpj": "82277955000155",
  "companyName": "NOVO NORDISK FARMACÊUTICA DO BRASIL LTDA",
  "prescriptionRestriction": null,
  "hospitalUseOnly": false,
  "useRestriction": "Adulto",
  "presentation": "1,34 MG/ML SOL INJ CT X 1 CAR VD TRANS X 1,5 ML + 1 SIST APLIC PLAS (DOSES 0,25MG E 0,5 MG) + 6 AGULHAS NOVOFINE",
  "ean": "7897705202548",
  "eanList": ["7897705202548"],
  "ggremCode": "526619010010201",
  "priceRegime": "Regulado",
  "productType": "Biológico",
  "factoryPriceBRL": 979.8,
  "maxConsumerPriceBRL": 1314.37,
  "icmsRate": "18",
  "priceListFound": true,
  "sourceUpdatedAt": {
    "cadastro": "Fri, 20 Nov 2026 09:33:36 GMT",
    "precos_cmed": "Fri, 09 Oct 2026 15:43:03 GMT",
    "restricoes": "Fri, 20 Nov 2026 09:33:27 GMT"
  },
  "source": "ANVISA dados abertos (https://dados.anvisa.gov.br/dados/)"
}
```

### Use it with the API, Python, JavaScript and MCP

Run it and get the rows in one HTTP call:

```bash
curl -X POST "https://api.apify.com/v2/acts/dados-abertos-br~anvisa-medicamentos/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["ozempic"], "icmsRate": "18"}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("dados-abertos-br/anvisa-medicamentos").call(
    run_input={"queries": ["ozempic"], "icmsRate": "18"}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["presentation"], row["maxConsumerPriceBRL"])
```

JavaScript:

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('dados-abertos-br/anvisa-medicamentos').call({
    queries: ['ozempic'],
    icmsRate: '18',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

AI agents can call this Actor as a tool through the Apify MCP server. The input and output are described by schemas, so an agent knows what to send and what comes back.

### Where the data comes from

All data comes from ANVISA's open data portal, [dados.anvisa.gov.br](https://dados.anvisa.gov.br/dados/): the medicines registry, the CMED price list and the restrictions list. The Actor downloads the official files fresh on every run, so results match ANVISA's latest publication. It does not scrape private websites and it needs no login or proxy.

This Actor is independent. It is not affiliated with, endorsed by or operated by ANVISA or CMED.

### Limitations

- **Prices are ceilings, not shelf prices.** CMED sets the maximum a pharmacy may charge. Real prices are often lower.
- **The price list is monthly.** ANVISA updates the CMED file about once a month. The registry and restrictions files change more often. Check `sourceUpdatedAt` on each row.
- **Some products have no price.** A registered product without an entry in the CMED list comes with `priceListFound: false` and empty prices.
- **Low-risk notified products** appear with an empty `registrationNumber`.
- **Search is by text match.** A search finds products whose name or active ingredient contains all the words you typed. It is not a fuzzy or phonetic search.
- **Not medical advice.** This Actor republishes public regulatory data as is.

### FAQ

**Is the data official?**
Yes. It comes from the open data files that ANVISA publishes. The Actor does not change the values. It only joins the files and removes duplicate registrations.

**How fresh is the data?**
Each run downloads the files again. The field `sourceUpdatedAt` shows when ANVISA last updated each one.

**What is the difference between PF and PMC?**
PF (preço fábrica) is the maximum price a manufacturer or distributor may charge. PMC (preço máximo ao consumidor) is the maximum price a pharmacy may charge the consumer.

**Which ICMS rate should I use?**
The one of the state where the sale happens. CMED publishes a price for each rate. 18% is the most common. Use 0 for the price without ICMS.

**Can I search by barcode?**
Yes. Send the EAN in `queries`. The Actor returns only the presentation with that barcode.

**Why do I get several rows for one drug?**
Each presentation (dose, pack size, form) has its own price and barcode, so it gets its own row. Turn `includePrices` off to get one row per registration.

**Why is a product missing?**
By default, inactive registrations are skipped. Set `onlyActive` to `false` to include them.

**Can I schedule it?**
Yes. Use Apify schedules to run it daily or monthly, and integrations to send the result to a spreadsheet, a webhook, Make or n8n.

**Does it need a proxy or a login?**
No. The source is open data.

**I found a wrong value. What do I do?**
Open an issue on the **Issues** tab with the search you ran and the row. If the value is wrong in ANVISA's own file, the fix has to come from ANVISA.

### Resumo e perguntas em português

Consulta ANVISA e CMED num só lugar. Busque por nome do medicamento, princípio ativo, número de registro ou código de barras (EAN) e receba a situação e o vencimento do registro, a empresa e o CNPJ, as restrições de prescrição e o preço de fábrica (PF) e o preço máximo ao consumidor (PMC) de cada apresentação, na alíquota de ICMS escolhida.

- **De onde vêm os dados?** Dos dados abertos oficiais da ANVISA, baixados de novo a cada execução.
- **O preço é o da farmácia?** Não. É o teto da CMED. O preço real costuma ser menor.
- **Tem dado pessoal?** Não. As empresas aparecem pelo CNPJ.
- **Quanto custa?** US$ 3 por mil linhas de resultado.

### Related Actors

- [Brazil NF-e XML to Excel, CSV & JSON Converter](https://apify.com/dados-abertos-br/nfe-planilha): turns NF-e and NFC-e XML files into spreadsheet rows.

### Your feedback

Found a problem or a missing field? Open an issue on the **Issues** tab of this Actor.

# Actor input Schema

## `queries` (type: `array`):

Drug names, active ingredients, ANVISA registration numbers (9 or 13 digits) or EAN barcodes. Accents and case are ignored. One result set per search.

## `searchField` (type: `string`):

Auto detects registration numbers and EAN barcodes; text searches both product name and active ingredient.

## `onlyActive` (type: `boolean`):

Skip registrations that ANVISA marks as inactive.

## `includePrices` (type: `boolean`):

Adds one row per presentation with EAN, factory price (PF) and maximum consumer price (PMC) from the official CMED list.

## `icmsRate` (type: `string`):

CMED publishes prices for each state ICMS rate. 18% is the most common; 0% is tax-free.

## `maxResultsPerQuery` (type: `integer`):

Caps the rows returned for each search.

## Actor input object example

```json
{
  "queries": [
    "dipirona",
    "ozempic"
  ],
  "searchField": "auto",
  "onlyActive": true,
  "includePrices": true,
  "icmsRate": "18",
  "maxResultsPerQuery": 200
}
```

# Actor output Schema

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

Dataset with the medicines found for each search.

# 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 = {
    "queries": [
        "dipirona",
        "ozempic"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dados-abertos-br/anvisa-medicamentos").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 = { "queries": [
        "dipirona",
        "ozempic",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dados-abertos-br/anvisa-medicamentos").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 '{
  "queries": [
    "dipirona",
    "ozempic"
  ]
}' |
apify call dados-abertos-br/anvisa-medicamentos --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dados-abertos-br/anvisa-medicamentos"
        }
    }
}
```

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/yBkGA1EcuqVRtil7p/builds/JwGC0xeDbAJDehnSL/openapi.json
