# Reclame Aqui Scraper - Complaints, Reputation & AI Analysis (`pomlabs/reclame-aqui-scraper`) Actor

Reclame Aqui complaints with full text and replies, company reputation in all 5 periods, seal history, search by name or CNPJ, rankings, betting companies, Consumidor.gov.br data, old complaints and AI theme analysis. $0.009 per complaint.

- **URL**: https://apify.com/pomlabs/reclame-aqui-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** E-commerce, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 complaint 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/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

## Reclame Aqui Scraper: Complaints, Company Reputation & AI Analysis

> **Consumer name and e-mail come masked.** Reclame Aqui hides the consumer's name, e-mail, phone and IP on the list and on the complaint page (`****`). This robot never delivers them. What you get about the consumer is the city, the state, an anonymous consumer id (to see who complained more than once) and what they wrote. The company's own contacts (e-mail and phone in its replies, phones and address on its record) come whole.

Everything public on Reclame Aqui (reclameaqui.com.br), Brazil's biggest complaint site, without login:

- **Complaints** of any company: the full text, the company's replies, the consumer's replies, the final evaluation (solved or not, score 0-10, would deal again, comment), category, problem, product, city and state, dates in Brasília time, risk level and legal-risk words (Procon, lawsuit, consumer code).
- **Company reputation record**: score and seal for the **5 periods** the site keeps (last 6 months, last 12 months, last calendar year, the year before, last 3 years), solved %, answered %, would-deal-again %, average answer time, complaint counts (total, 6 and 12 months, last 30 days), **seal history of the last 6 months**, **segment ranking position**, **page views**, CNPJ, phones, address with coordinates, social profiles, crisis notices, top problems / products / categories with the site's own counts, coupons, and the trend between periods.
- **Search** complaints on the whole site by word, **search companies** by name, domain or CNPJ (with state, city and minimum score filters), **segment rankings** (best and worst), the **segment tree**, the **most viewed companies** of the day.
- **New, nobody else has them:** AI analysis of the themes; the **same company on Consumidor.gov.br** (the government's complaint site); **old complaints** (2013 to 2021) by number, by the Wayback Machine and by web search; the **competitors Reclame Aqui lists** for a company, each with its record; the **betting companies' situation** after MP 1.394/2026; **products and offers named in complaints**; **coupons**.
- **Past the site's 500 limit**: the site lists at most 500 complaints per filter; the robot splits first by the yes/no fields every complaint has (solved, replied, read, evaluated) and the score, then by consumer state, and last by the site's own categories, problems and products (tested: 540 of Kiwify in one run, no duplicates). The summary row tells how many came out against the company's total and why.
- **Monitoring**: incremental mode (NEW / UPDATED / EXPIRED, unchanged ones not charged) with alerts to a webhook, Slack, Discord, Telegram or WhatsApp, and delivery to Notion and other connected apps.

### Modes

| mode | What you get | Charged as |
|---|---|---|
| `complaints` (default) | One row per complaint, page opened: text + reply thread + final evaluation | `complaint` |
| `summary` | The same list without opening each complaint: full text, status, dates, place, category, no reply thread | `complaint-summary` (half) |
| `company` | One reputation row per company (add competitors, Consumidor.gov.br, website contacts) | `company` |
| `search` | Complaints of every company that mention your words | `complaint` / `complaint-summary` |
| `ranking` | Best and worst companies of a segment, with score, solved %, solved and unsolved counts | `ranking-row` |
| `company-search` | Companies for a name, brand, domain or CNPJ, with score, solved %, CNPJ, city, state, segment | `company-search-row` |
| `insights` | Complaints + a digest without AI + the AI analysis of the themes | `complaint` + `review-insights` + `ai-insight` |
| `products` | Products, courses and selling platforms named in the complaints, ranked, per week | `list-row` |
| `bets` | Betting companies: suspended or not, illegal-bet flag, closure notice, complaints since 06/10/2026 | `company` |
| `coupons` | Coupons and offers published on Reclame Aqui (all, one company, or expiring soon) | `list-row` |
| `segments` | The segment tree (main and secondary), ready for the ranking input | `list-row` |
| `most-accessed` | The 30 most viewed companies of the day | `list-row` |
| `old-complaints` | Old complaints of a company (Wayback index + web search), each one opened whole | `complaint` |
| `history` | Score history of a company: one photo of the reputation record per day since we first read it, plus the past series from Wayback copies of the company page (score, solved %, would deal again % of each period on that date); call again while `pastSeriesComplete` is false. `scoreHistory: true` adds the same row to the other modes | `company` |

### Input examples

```json
{ "mode": "complaints", "companies": ["nubank", "Mercado Livre", "18236120000158"], "maxComplaintsPerCompany": 100 }
```

```json
{ "mode": "summary", "companies": ["kiwify"], "statusFilter": ["unsolved"], "dateFrom": "30 days", "userState": ["SP", "RJ"] }
```

```json
{ "mode": "history", "companies": ["nubank"], "pastSeries": true }
```

```json
{ "mode": "insights", "companies": ["nubank"], "maxComplaintsPerCompany": 50, "aiLanguage": "English" }
```

```json
{ "mode": "ranking", "rankingSegments": ["bancos-e-financeiras/bancos-tradicionais-e-digitais"], "rankingType": "both" }
```

```json
{ "mode": "complaints", "companies": ["nubank"], "maxComplaintsPerCompany": 50, "incrementalMode": true, "slackWebhookUrl": "https://hooks.slack.com/services/..." }
```

### Output example (complaint, shortened)

```json
{
  "type": "complaint", "id": "fjyFILu9jJ696WTy", "legacyId": 265309771,
  "title": "Negaram meu limite de crédito em conta PJ e PF, mesmo sendo cliente antigo",
  "text": "...", "url": "https://www.reclameaqui.com.br/nubank/...",
  "companyName": "Nubank", "companySlug": "nubank", "createdAt": "2026-11-26T09:19:23-03:00",
  "status": "REPLY", "statusLabel": "Em réplica", "solved": false, "evaluated": false, "hasReply": true,
  "city": "São Paulo", "state": "SP", "category": "Cartões de Crédito", "problem": "Limite", "product": "Cartão de crédito",
  "companyReply": "...", "companyReplyAt": "2026-11-26T10:02:11-03:00", "firstReplyHours": 0.7,
  "consumerReply": "...", "interactions": [{ "type": "ANSWER", "author": "company", "createdAt": "...", "text": "..." }],
  "consumerId": "1v8Sb8Esj5C8mHgn", "riskLevel": "MEDIUM", "legalRiskTerms": ["procon"],
  "contactEmails": ["meajuda@nubank.com.br"], "conversationFetched": true
}
```

### Good to know

- **Times** are ISO 8601 in Brasília time (`-03:00`). The site writes `Z` on the complaint page but the time is local; we correct it.
- **Solved or not** comes from the consumer's evaluation (`solved` + `evaluated`), not from the list's `ANSWERED`, which also covers solved complaints.
- **The score** comes from the company record, never from the page's structured data (which shows 10.0 where the page shows 8.4).
- **"Geral"** on the site is the last 3 years, not the whole history; our period is named that way. A company without a score has the field absent, not `"--"`.
- **Big companies**: Nubank has about 566,000 complaints. The split reaches far past the site's 500-per-list limit, but not every complaint of a company that size: measured on the Nubank (28/11/2026, counts only), the cuts reach at least 419,935 of 566,734 (74%), and more through the 500 newest of each group the facets do not cover. The summary row says how many matched and how many were delivered.
- **Company by name or CNPJ**: a free `company-match` row says how each name or CNPJ became a company (`matchedBy`: `cnpj-unico`, `cnpj-principal`, `nome-exato`, `nome-aproximado-principal`...) and lists the other candidates. When no candidate clearly stands out (a CNPJ shared by several pages, or a name like "Magazine Luiza", with an online store, physical stores and a credit card on the site), no company is collected: the row lists the candidates with their slug (charged as one search row, the search was read), and you send the slug of the one you want.
- **Coming from another Reclame Aqui robot**: `maxComplaints`, `maxItemsPerSource` and `maxPages` (× 10) are read as `maxComplaintsPerCompany`, `maxResults` as `maxItems`, `startPage` as where the list starts, and `statusFilter` also takes the site's words in Portuguese ("Respondida", "Não respondida", "Resolvida", "Não resolvida", "Em réplica").
- **Pace**: Reclame Aqui limits calls per IP; the robot keeps 1 call per second per exit and shares the exits fairly between runs. About 2 complaints with the reply thread per second, or 20 per second in `summary`. A page that fails becomes an error row and the run goes on; when an input needs more time than the run has, the first row says so.
- **AI analysis** reads at most 1,500 characters of each complaint and 3 replies of 500, and is charged only when the AI answers with themes.

# Actor input Schema

## `mode` (type: `string`):

complaints (default): one row per complaint with the full text, the company's replies, the consumer's reply and final evaluation. summary: the same list without opening each complaint (full text, no reply thread), half the price. company: the reputation record only. The other modes are described in the README.

## `companies` (type: `array`):

One per line: the Reclame Aqui slug (nubank), a company link (reclameaqui.com.br/empresa/nubank/), a complaint link, the company name as you would type it, or its CNPJ.

## `startUrls` (type: `array`):

Reclame Aqui links: company pages, complaint pages. Works like Companies.

## `companyNames` (type: `array`):

Names (Magazine Luiza); the best match on Reclame Aqui is used.

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

Brazilian company tax ids, with or without punctuation.

## `legacyIds` (type: `array`):

Old complaint numbers (2013-2018 complaints open by their number). Each one comes out whole, or as an error row when it was deactivated.

## `searchQueries` (type: `array`):

Words searched in every company's complaints (mode search, or complaints / summary / products / insights without companies). One per line, e.g. pix, voo cancelado.

## `query` (type: `string`):

Same as Search the whole site, one term or a JSON array.

## `searchTerm` (type: `string`):

Only complaints of the given companies that match this word (pix, estorno). Each word reads another window of up to 500 complaints.

## `keyword` (type: `string`):

Same as Word inside the company.

## `companySearch` (type: `array`):

Mode company-search: names, brands, domains or CNPJs; returns up to 50 companies each with score, solved %, CNPJ, city, state and segment.

## `companyState` (type: `string`):

Mode company-search: only companies from this state (SP, RJ...).

## `companyCity` (type: `string`):

Mode company-search: only companies from this city.

## `minScore` (type: `number`):

Mode company-search: only companies with this Reclame Aqui score or more (0-10).

## `maxCompaniesPerSearch` (type: `integer`):

Mode company-search.

## `maxComplaintsPerCompany` (type: `integer`):

Per company (and per search term). 0 = all the filters reach (big companies: hundreds of thousands, see the README). In incremental mode this is the window of newest complaints compared with the last run.

## `maxResultsPerCompany` (type: `integer`):

Same as Max complaints per company.

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

The run stops after this many rows (companies and complaints together). 0 = no limit.

## `splitLargeQueries` (type: `boolean`):

Reclame Aqui lists at most 500 complaints per filter. When you ask for more, the robot splits the list by the site's own categories, problems, products, consumer state, score and status, so each part stays under 500. The summary row says how many came out against the company's total and why.

## `statusFilter` (type: `array`):

One or more lists of the company's complaint page. Several are merged without duplicates.

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

Same as Complaint status, one value: all, unanswered, answered, evaluated, solved, unsolved, replica, compliment.

## `dateFrom` (type: `string`):

Only complaints created on or after this date: YYYY-MM-DD or a window (7 days, 3 months). The site has no date filter: the robot reads newest first and stops here.

## `dateTo` (type: `string`):

Only complaints created on or before this date (YYYY-MM-DD). Newer ones are skipped, not charged.

## `complaintsSinceDays` (type: `integer`):

Same as From date = N days ago.

## `solvedOnly` (type: `boolean`):

Keep a complaint only if the consumer said it was solved.

## `withReplyOnly` (type: `boolean`):

Keep a complaint only if the company replied.

## `complimentOnly` (type: `boolean`):

Only the consumers' compliments (site filter).

## `includeKeywords` (type: `array`):

A complaint is kept when its title, text or replies contain any of these words (reembolso, entrega).

## `excludeKeywords` (type: `array`):

A complaint that contains any of these words is skipped (not charged).

## `category` (type: `string`):

Category name as on the company's complaint page (Cartões de Crédito) or its id.

## `problem` (type: `string`):

Problem name (Cobrança indevida, Atraso na entrega) or its id.

## `product` (type: `string`):

Product or service name (Cartão de crédito, Conta) or its id.

## `userState` (type: `array`):

Only complaints from consumers in these states (SP, RJ, MG...). Each state is its own list of up to 500.

## `scoreFilter` (type: `integer`):

Only complaints the consumer scored with this grade (0-10).

## `additionalInfo` (type: `string`):

Site tag of the complaint, e.g. blackfriday.

## `scrapeComplaints` (type: `boolean`):

Off: only the company rows.

## `includeCompanyProfile` (type: `boolean`):

One row per company: score and seal for the 5 periods of the site (6 and 12 months, last year, the year before, last 3 years), solved %, answered %, would-deal-again %, average answer time, complaint counts, seal history of the last 6 months, ranking position, page views, CNPJ, phones, address with coordinates, social profiles, top problems, products and categories with the site's own counts, and the trend between periods.

## `includeCompanyPage` (type: `boolean`):

Adds page views, seal history, ranking position, crisis notices and 'people also visited' (one page per company).

## `includeInteractions` (type: `boolean`):

Opens each complaint: the company's replies, the consumer's replies, the final evaluation and comment, consumer id (anonymous), evaluation deadline, similar complaints. Off = mode summary.

## `includeCompanyReplies` (type: `boolean`):

Same as Full reply thread.

## `addCompanyReputation` (type: `boolean`):

Adds the company's score, seal, solved % and answered % to every complaint row.

## `extractContacts` (type: `boolean`):

E-mails and phone numbers written in the complaint and in the company's replies (the consumer's own contact comes masked by Reclame Aqui).

## `enrichEmails` (type: `boolean`):

Reads the website on the company's record: e-mails, phones, social profiles, careers page, payment processors. Charged as site-data, plus contact-email when e-mails are found.

## `includeCoupons` (type: `boolean`):

Coupons and offers Reclame Aqui publishes for the company, inside the company row (no extra charge).

## `includeCompetitors` (type: `boolean`):

The companies Reclame Aqui lists as the company's competitors, each with its reputation row (charged as a company).

## `maxCompetitors` (type: `integer`):

How many competitors (companies the site lists as similar) to add per company.

## `includeConsumidorGov` (type: `boolean`):

The government's complaint site, last month's open data: complaints, answered %, solved %, average score and response days, top problems. Matched by name (the file has no CNPJ); the row says how it matched.

## `consumidorGovAliases` (type: `object`):

Optional: {"slug or name on Reclame Aqui": "name on Consumidor.gov.br"} when the names differ.

## `includeOldComplaints` (type: `boolean`):

Also old complaints of the company found in the Wayback Machine index and in a web search, each one opened whole. A sample, not the whole history.

## `maxOldComplaints` (type: `integer`):

How many old complaints (from the archive) to return per company.

## `oldComplaintsYears` (type: `array`):

Only these years (2015, 2016...).

## `oldComplaintsQuery` (type: `string`):

Word for the web search of old complaints.

## `aiInsights` (type: `boolean`):

Themes with count and complaint ids, likely cause, severity, unsolved problems, the company's answer quality, legal risk (Procon, lawsuit) and 3 actions. Charged per company analysed (up to 50 complaints, then per complaint). Charged only when the AI answers; otherwise the row says why. In mode products: also extracts the products and offers named.

## `reviewInsights` (type: `boolean`):

Status split, solved %, average score, top problems by the site's counts, states and cities, legal-risk words, trend. On by default in mode insights.

## `aiLanguage` (type: `string`):

Language of the AI theme analysis.

## `aiSpeed` (type: `string`):

fast uses a lighter model (about half the time).

## `productNames` (type: `array`):

Mode products: extra names to count in the complaints (besides the selling platforms the robot knows).

## `maxProducts` (type: `integer`):

How many products cited in complaints to return per company.

## `rankingSegments` (type: `array`):

Mode ranking: main/secondary segment (bancos-e-financeiras/bancos-tradicionais-e-digitais) or a reclameaqui.com.br/segmentos/ link. Left empty, the rankings of the segments of the companies given in companies. Mode segments lists them all.

## `rankingType` (type: `string`):

best, worst or both lists of the segment ranking.

## `maxCompaniesPerRanking` (type: `integer`):

How many companies per ranking list.

## `maxCompanies` (type: `integer`):

Mode bets.

## `expiringSoon` (type: `boolean`):

Mode coupons: only the ones that expire soon.

## `incrementalMode` (type: `boolean`):

Remembers what earlier runs saw: each complaint is NEW or UPDATED; unchanged ones are skipped and not charged. For scheduled runs.

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

Same as Incremental mode.

## `detectUpdates` (type: `boolean`):

In incremental mode, complaints whose status, replies or score changed come again, marked UPDATED.

## `emitUnchanged` (type: `boolean`):

In incremental mode, also emit unchanged complaints (marked UNCHANGED, charged).

## `emitExpired` (type: `boolean`):

In incremental mode, complaints of earlier runs that are gone now, marked EXPIRED (free).

## `stateKey` (type: `string`):

Name of the memory; by default it comes from the companies and filters.

## `notifyOnlyNew` (type: `boolean`):

Alert only complaints that were not seen in a previous run.

## `notifyOnlyChanges` (type: `boolean`):

Alert about the company only when its reputation changed since the previous run.

## `notificationLimit` (type: `integer`):

How many complaints go in each alert message.

## `includeRunSummary` (type: `boolean`):

A last row with what came out against what each company has and why, the exits used and the time; also sent with the webhook.

## `webhookUrl` (type: `string`):

Gets a JSON POST with the run summary and the complaints (n8n, Make, Zapier).

## `webhookHeaders` (type: `object`):

Extra HTTP headers for the webhook call (JSON object).

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL for alerts.

## `discordWebhookUrl` (type: `string`):

Discord webhook URL for alerts.

## `telegramChatId` (type: `string`):

Telegram chat id that receives the alerts.

## `telegramToken` (type: `string`):

Token of your Telegram bot that sends the alerts.

## `telegramBotToken` (type: `string`):

Same as Telegram bot token.

## `whatsappTo` (type: `string`):

WhatsApp number that receives the alerts (WhatsApp Cloud API).

## `whatsappPhoneNumberId` (type: `string`):

Phone number id of your WhatsApp Cloud API sender.

## `whatsappAccessToken` (type: `string`):

Access token of your WhatsApp Cloud API app.

## `outputConnector` (type: `string`):

Pick an MCP connector you authorized in Console > Settings > API & Integrations > MCP connectors. The results are written through your own connector: the Actor never sees your credentials, and only non-destructive write tools are allowed. Notion: one page per review (or one table page in summary mode) under the page in Destination target.

## `appConnector` (type: `string`):

Same as Send results to Notion, Todoist, Slack: the name other Reclame Aqui scrapers use (appConnector). Fill only one.

## `deliverTarget` (type: `string`):

Where the connector writes: a URL or ID (Notion page URL, Todoist project id, Slack channel). Share the Notion page with the connector first (... > Connections). Leave empty for services that need none.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or id) the summary issue goes under.

## `issueTeam` (type: `string`):

Same as Issue tracker team.

## `deliverMode` (type: `string`):

perPost writes one record per complaint (or company); summary writes a single roll-up table.

## `deliverMaxItems` (type: `integer`):

Cap on how many reviews perPost writes to the connector (the dataset still gets all of them). Ignored in summary mode.

## `descriptionFormat` (type: `string`):

all: plain text, HTML and Markdown; or only one.

## `descriptionMaxLength` (type: `integer`):

Cut the complaint text to this many characters (0 = whole).

## `compact` (type: `boolean`):

About 25 essential columns.

## `flatten` (type: `boolean`):

Nested values become columns joined with underscores.

## `excludeEmptyFields` (type: `boolean`):

Remove fields with no value from each row.

## `minDelayMs` (type: `integer`):

The robot already keeps the safe pace (1 call per second per exit); a higher value goes slower.

## `detailConcurrency` (type: `integer`):

How many complaint pages are read at the same time.

## `maxConcurrency` (type: `integer`):

Same as Complaint pages in parallel.

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

Leave empty: the robot uses its own connection. Your own proxy URLs are used as one more exit.

## `proxyFallback` (type: `boolean`):

When every free exit is refused, the rest goes through a Brazilian residential exit, with a cap per run.

## `maxRuntimeSecs` (type: `integer`):

Used to warn in the first row when the input needs more time than this.

## `failOnNoResults` (type: `boolean`):

Mark the run as failed when no row comes back.

## `brightDataApiToken` (type: `string`):

Accepted and not used: this robot reads Reclame Aqui without a Web Unlocker.

## Actor input object example

```json
{
  "mode": "complaints",
  "companies": [
    "nubank"
  ],
  "maxCompaniesPerSearch": 50,
  "maxComplaintsPerCompany": 100,
  "maxItems": 0,
  "splitLargeQueries": true,
  "statusFilter": [
    "all"
  ],
  "solvedOnly": false,
  "withReplyOnly": false,
  "complimentOnly": false,
  "scrapeComplaints": true,
  "includeCompanyProfile": true,
  "includeCompanyPage": true,
  "includeInteractions": true,
  "addCompanyReputation": false,
  "extractContacts": true,
  "enrichEmails": false,
  "includeCoupons": true,
  "includeCompetitors": false,
  "maxCompetitors": 5,
  "includeConsumidorGov": false,
  "includeOldComplaints": false,
  "maxOldComplaints": 20,
  "aiInsights": false,
  "reviewInsights": false,
  "aiLanguage": "Portuguese",
  "aiSpeed": "best",
  "maxProducts": 50,
  "rankingType": "best",
  "maxCompaniesPerRanking": 50,
  "maxCompanies": 30,
  "expiringSoon": false,
  "incrementalMode": false,
  "detectUpdates": true,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyNew": true,
  "notifyOnlyChanges": true,
  "notificationLimit": 10,
  "includeRunSummary": true,
  "deliverMode": "perPost",
  "descriptionFormat": "all",
  "descriptionMaxLength": 0,
  "compact": false,
  "flatten": false,
  "excludeEmptyFields": false,
  "minDelayMs": 250,
  "detailConcurrency": 3,
  "proxyFallback": true,
  "failOnNoResults": false
}
```

# Actor output Schema

## `results` (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 = {
    "companies": [
        "nubank"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/reclame-aqui-scraper").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 = { "companies": ["nubank"] }

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/reclame-aqui-scraper").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 '{
  "companies": [
    "nubank"
  ]
}' |
apify call pomlabs/reclame-aqui-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pomlabs/reclame-aqui-scraper"
        }
    }
}
```

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/OdJLDOho7zvEujA3E/builds/K9jdivCzaD6DRYcbs/openapi.json
