# KaBuM Product Scraper (`macgyver_dev/kabum-product-scraper`) Actor

Scrape public KaBuM (Brazil) product listings: title, price, installments, seller, rating, reviews, availability and URL. Search by keyword or paste product URLs.

- **URL**: https://apify.com/macgyver_dev/kabum-product-scraper.md
- **Developed by:** [Macgyver Cseh](https://apify.com/macgyver_dev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.15 / 1,000 product scrapeds

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

## KaBuM Product Scraper

Collect public KaBuM product listings with one result per product. The Actor uses ordinary Node.js `fetch` requests and the public JSON embedded in KaBuM listing pages; it does not use a browser, login, CAPTCHA bypass, paid proxy, or private API.

This is an independent community project. It is not affiliated with, endorsed by, or sponsored by KaBuM!.

### What you get

Each dataset item includes the product title, price in BRL, Pix price when published, installment text, seller, rating, review count, availability, primary image, category, product URL and product code.

### Input

- **Search term:** a term such as `notebook` (the prefill).
- **KaBuM URLs:** optional public search or product URLs. Use this when you already have URLs; the default search term can be cleared.
- **Maximum items:** maximum number of saved products (default 20).
- **Sort order:** relevance, lowest price, highest price, or rating when supported by the site.
- **Minimum/maximum price:** optional BRL filters.
- **Request timeout:** seconds per page request.

### Step by step

1. Click **Start**.
2. Enter a Portuguese product term, or paste public KaBuM URLs.
3. Set `Maximum items` and optional price filters.
4. Start the run and open the **Products** dataset view.
5. Export JSON, CSV, Excel, or connect the dataset to another tool.

The prefill searches `notebook` and saves 20 items. In normal conditions it completes in under one minute.

### Output example

```json
{
  "title": "Notebook Lenovo IdeaPad Slim 3 AMD Ryzen 5",
  "price": 4703.04,
  "pixPrice": null,
  "installment": "10x de R$ 441,05",
  "seller": "KaBuM!",
  "rating": 5,
  "reviewCount": 27,
  "available": true,
  "image": "https://images.kabum.com.br/...jpg",
  "url": "https://www.kabum.com.br/produto/1037468/...",
  "category": "Computadores/Notebooks/Notebook Lenovo",
  "productCode": 1037468
}
```

### Pricing

**$0.15 per 1,000 products** ($0.00015 each) plus a tiny start fee per run: the lowest price for KaBuM data on Apify. Example: 10,000 products cost about **$1.50**.

### Responsible use

Only public listing and product information is collected. Keep the default low volume, respect KaBuM's terms and robots guidance, and do not use this project to access accounts, bypass CAPTCHAs, or collect private information.

### FAQ

**Is this the official KaBuM scraper?** No. It is an independent project and is not affiliated with KaBuM!.

**Does it need a browser?** No. It uses Node.js fetch and public JSON already present in the HTML response.

**Why can a product have a null Pix price?** The listing only exposes a Pix price when KaBuM publishes one in that response.

**Does it scrape reviews?** It records the public aggregate rating and review count; it does not crawl individual review text.

**Can I provide product URLs?** Yes. Paste public KaBuM search or product URLs in `KaBuM URLs`.

**What happens when KaBuM changes its page format?** The extractor may return fewer items. Check the run log and report a reproducible public URL with the Actor issue.

**Can I filter by price?** Yes. Set minimum and/or maximum price in Brazilian reais.

**How many products should I request?** Start with 20-100 and keep a moderate cadence; larger runs should respect the site's capacity and terms.

**Does it use a paid proxy?** No. It uses direct requests only.

**Does it bypass CAPTCHA or login?** No. It stops when a public page is blocked and never attempts to bypass access controls.

**How is each result billed?** Each saved dataset item uses Apify's default dataset-item event. No custom charge call is made.

# Actor input Schema

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

Product term to search on KaBuM, for example notebook. Leave empty when using product or search URLs.

## `urls` (type: `array`):

Optional public KaBuM product or search URLs. One item is emitted per product found.

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

Maximum number of products to save.

## `sort` (type: `string`):

KaBuM sort option passed to the public listing when supported.

## `minPrice` (type: `number`):

Optional minimum product price in Brazilian reais.

## `maxPrice` (type: `number`):

Optional maximum product price in Brazilian reais.

## `timeoutSecs` (type: `integer`):

Maximum time to wait for each public page request.

## Actor input object example

```json
{
  "searchTerm": "notebook",
  "urls": [],
  "maxItems": 20,
  "sort": "relevance",
  "timeoutSecs": 30
}
```

# 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 = {
    "searchTerm": "notebook"
};

// Run the Actor and wait for it to finish
const run = await client.actor("macgyver_dev/kabum-product-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 = { "searchTerm": "notebook" }

# Run the Actor and wait for it to finish
run = client.actor("macgyver_dev/kabum-product-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 '{
  "searchTerm": "notebook"
}' |
apify call macgyver_dev/kabum-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,macgyver_dev/kabum-product-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/x2fOx8yJ0L2rHXvOD/builds/MtTaNYkc2oKG3dA9A/openapi.json
