# CMED Brazil Drug Prices - ANVISA PF/PMC (`scrapewise/anvisa-precos-cmed`) Actor

Lê a planilha mensal da CMED/ANVISA e devolve PF e PMC por apresentação, laboratório e alíquota de ICMS.

- **URL**: https://apify.com/scrapewise/anvisa-precos-cmed.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.85 / 1,000 drug price delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## CMED - Preços Máximos de Medicamentos (PF/PMC)

Lê a planilha mensal da CMED/ANVISA e devolve PF e PMC por apresentação, laboratório e alíquota de ICMS.

### Use cases

- A pharmacy chain updates its price list against the official ceiling price every month.
- A health plan audits reimbursement requests against CMED's maximum authorized prices.
- A price-comparison site shows PMC across pharmacies against the regulated ceiling.

### Input example

```
- Wait: termoOuEan: "dipirona", uf: "SP"
```

### Output example

```json
{"ean": "7891234567890", "produto": "DIPIRONA SODICA", "laboratorio": "LAB X", "apresentacao": "500MG COM CT BL AL/AL X 10", "pf": "8.50", "pmc": "12.30", "mes": "2026-09", "coletado_em": "2026-09-04T20:00:00+00:00", "url_origem": "https://www.gov.br/anvisa/..."}
{"ean": "7891234567906", "produto": "DIPIRONA SODICA GOTAS", "laboratorio": "LAB X", "apresentacao": "500MG/ML SOL GOT CT FR PLAS OPC GOT X 10ML", "pf": "6.10", "pmc": "9.20", "mes": "2026-09", "coletado_em": "2026-09-04T20:00:00+00:00", "url_origem": "https://www.gov.br/anvisa/..."}
{"ean": "7891234567913", "produto": "DIPIRONA MONOIDRATADA", "laboratorio": "LAB Y", "apresentacao": "1G COM CT BL AL/AL X 20", "pf": "10.40", "pmc": "15.10", "mes": "2026-09", "coletado_em": "2026-09-04T20:00:00+00:00", "url_origem": "https://www.gov.br/anvisa/..."}
{"ean": "7891234567920", "produto": "DIPIRONA INFANTIL", "laboratorio": "LAB Z", "apresentacao": "50MG/ML SOL OR CT FR PLAS OPC GOT X 15ML", "pf": "5.90", "pmc": "8.70", "mes": "2026-09", "coletado_em": "2026-09-04T20:00:00+00:00", "url_origem": "https://www.gov.br/anvisa/..."}
{"ean": "7891234567937", "produto": "DIPIRONA INJETAVEL", "laboratorio": "LAB W", "apresentacao": "500MG/ML SOL INJ CT 5 AMP VD INC X 2ML", "pf": "18.20", "pmc": "26.50", "mes": "2026-09", "coletado_em": "2026-09-04T20:00:00+00:00", "url_origem": "https://www.gov.br/anvisa/..."}
```

### Price

US$ 1.00 per 1,000 results delivered, no subscription.

### How to use

- **Via API**: call this Actor with the Apify API (`POST /v2/acts/<actor-id>/runs`) passing the input above.
- **Scheduled**: create an Apify Schedule to run it daily/weekly and get fresh data automatically.
- **Integrations**: connect via the Apify integration for n8n, Make, or Zapier to pipe results into a sheet, CRM, or database.

### Limitations

- Depends on the source staying online and keeping its current format; if it changes, the run fails loudly instead of returning an empty dataset.
- Rate limits from the source may slow large requests.
- If something breaks, please open an issue on this Actor's page with the input you used.

This Actor collects only publicly available data and respects the source's terms of use.

### Em português

Lê a planilha mensal da CMED/ANVISA e devolve PF e PMC por apresentação, laboratório e alíquota de ICMS.

**Casos de uso**: atualizar tabela de preços da farmácia contra o teto oficial; auditar reembolso contra o preço máximo da CMED; comparar PMC entre farmácias.

**Preço**: US$ 1.00 por 1.000 resultados entregues, sem mensalidade.

# Actor input Schema

## `termoOuEan` (type: `string`):

Termo (produto/laboratório) ou EAN.

## `uf` (type: `string`):

Brazilian state code (e.g. SP, RJ).

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

Maximum number of results to return.

## `proxyConfiguration` (type: `object`):

Proxy settings (Apify proxy by default).

## Actor input object example

```json
{
  "termoOuEan": "dipirona",
  "uf": "SP",
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (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 = {
    "termoOuEan": "dipirona"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/anvisa-precos-cmed").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 = { "termoOuEan": "dipirona" }

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/anvisa-precos-cmed").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 '{
  "termoOuEan": "dipirona"
}' |
apify call scrapewise/anvisa-precos-cmed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/anvisa-precos-cmed"
        }
    }
}
```

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/TJBsRYe6TdKSwrCGB/builds/hgHENFvnWxBJmR4xc/openapi.json
