# Comparador de Preços Brasil — KaBuM!, Americanas e mais (`boliveira/brazil-price-search`) Actor

Busque um produto e receba preço, preço no Pix, parcelamento, desconto, vendedor e disponibilidade em várias lojas brasileiras de uma vez. Search Brazilian stores for prices in one run.

- **URL**: https://apify.com/boliveira/brazil-price-search.md
- **Developed by:** [Bruno Scherer Oliveira](https://apify.com/boliveira) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.20 / 1,000 produto entregues

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

## Comparador de Preços Brasil — KaBuM!, Americanas, Brastemp e Consul

Digite o nome de um produto e receba, em uma única execução, os preços de várias lojas brasileiras:
**preço no Pix, preço no cartão, preço "de", desconto, parcelamento sem juros, vendedor, disponibilidade,
EAN/GTIN e link** — prontos para planilha, API ou automação.

*English below.*

### Para que serve

- **Monitorar preços** de produtos ou concorrentes todos os dias (agende a execução no Apify).
- **Encontrar o menor preço** de um item entre lojas, incluindo o desconto no Pix.
- **Pesquisa de mercado**: faixa de preço, marcas e vendedores de uma categoria.
- **Alimentar planilhas, dashboards ou agentes de IA** com dados de preço atualizados.

### Lojas

| Loja | O que vem | Observações |
|---|---|---|
| KaBuM! | Pix, cartão, preço "de", parcelamento, avaliação | Busca livre: até 60 produtos por termo (1ª página). Para mais, use URLs de categoria. |
| Americanas | Preço, preço "de", vendedor (marketplace), EAN | Busca com paginação. |
| Brastemp | Pix, cartão, parcelamento, EAN | Loja oficial Whirlpool. |
| Consul | Pix, cartão, parcelamento, EAN | Loja oficial Whirlpool. |

### Entrada

```json
{
  "queries": ["geladeira frost free", "rtx 4060"],
  "stores": ["kabum", "americanas", "brastemp", "consul"],
  "maxItemsPerStore": 20,
  "onlyAvailable": true,
  "strictMatch": true
}
```

- `strictMatch` (padrão: ligado) descarta os resultados "aproximados" que as lojas devolvem quando não
  têm o produto — por exemplo, geladeiras ao buscar "rtx 4060".
- `kabumCategoryUrls` (opcional) percorre categorias inteiras da KaBuM!, com paginação.

### Saída (exemplo)

```json
{
  "store": "brastemp",
  "query": "geladeira frost free",
  "productId": "20127851",
  "name": "Geladeira Brastemp Frost Free 385 Litros Duplex cor Inox - BRM46MK",
  "brand": "Brastemp",
  "gtin": "7891129598782",
  "price": 2907.34,
  "pricePix": 2907.34,
  "priceCard": 2997.26,
  "listPrice": 3398,
  "discountPercent": 12,
  "installments": "12x de R$ 249,77",
  "available": true,
  "seller": "Whirlpool",
  "url": "https://www.brastemp.com.br/geladeira-brastemp-frost-free-inox-385l/p",
  "currency": "BRL",
  "scrapedAt": "2026-10-29T13:00:00.000Z"
}
```

`price` é sempre o melhor preço disponível (Pix quando a loja informa). Campos que a loja não publica vêm
como `null`.

### Preço

Você paga apenas pelos produtos retornados (pay-per-event). Itens filtrados (indisponíveis ou fora do
termo) não são cobrados. Defina um custo máximo por execução nas opções de execução do Apify.

### Boas práticas e limites

- O Actor acessa somente páginas e endpoints públicos permitidos pelo `robots.txt` de cada loja, com um
  identificador de robô honesto e no máximo ~1 requisição por segundo por loja.
- Não coleta dados pessoais: apenas informações de produto e oferta.
- Os preços podem variar por região (CEP) e mudar a qualquer momento; confira na loja antes de comprar.
- Não é afiliado nem endossado pelas lojas citadas.

***

### English

Search Brazilian online stores (KaBuM!, Americanas, Brastemp, Consul) by product name and get the Pix price,
card price, list price, discount, interest-free installments, seller, availability, EAN/GTIN and URL in one
dataset. Use it for daily price monitoring, cross-store lowest-price lookups, market research, or as a
price-data tool for AI agents. Input and output are shown above. Pay per product returned; filtered items
are never charged. Only public, robots.txt-permitted pages are used, at about one request per second per store,
and no personal data is collected.

# Actor input Schema

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

Termos de busca, um por linha (ex.: "geladeira frost free", "rtx 4060"). Search terms, one per line.

## `stores` (type: `array`):

Lojas a consultar. Vazio = todas. Stores to search; empty = all.

## `maxItemsPerStore` (type: `integer`):

Limite por loja para cada termo. A KaBuM! retorna no máximo 60 por termo (primeira página). Max products per store per query.

## `onlyAvailable` (type: `boolean`):

Ignora itens sem estoque ou sem preço. Skip out-of-stock items.

## `strictMatch` (type: `boolean`):

Descarta resultados aproximados das lojas (ex.: buscar "rtx 4060" e receber geladeiras). Keep only products whose name contains every search term.

## `kabumCategoryUrls` (type: `array`):

Ex.: https://www.kabum.com.br/hardware/placa-de-video-vga — percorre todas as páginas até o limite.

## Actor input object example

```json
{
  "queries": [
    "geladeira frost free",
    "air fryer"
  ],
  "stores": [
    "kabum",
    "americanas",
    "brastemp",
    "consul"
  ],
  "maxItemsPerStore": 20,
  "onlyAvailable": true,
  "strictMatch": true
}
```

# Actor output Schema

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

Dataset with one product offer per item (store, price, Pix price, installments, availability).

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

RUN_SUMMARY record: item count, failures and run settings.

# 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": [
        "geladeira frost free",
        "air fryer"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("boliveira/brazil-price-search").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": [
        "geladeira frost free",
        "air fryer",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("boliveira/brazil-price-search").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": [
    "geladeira frost free",
    "air fryer"
  ]
}' |
apify call boliveira/brazil-price-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,boliveira/brazil-price-search"
        }
    }
}
```

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/A9LJw85wByFjUdEZw/builds/WYva9cHaurFdXsAVr/openapi.json
