# Kabum Scraper (`trudax/kabum`) Actor

- **URL**: https://apify.com/trudax/kabum.md
- **Developed by:** [Trudax](https://apify.com/trudax) (community)
- **Categories:** E-commerce
- **Security:** Full permissions
- **Stats:** 20 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

### What does Kabum Scraper do?

The Kabum Scraper enables you to extract data from any [Kabum](https://www.kabum.com.br) website.

### Why scrape Kabum?

Kabum is one of the largest e-commerce platforms in Brazil, with a vast array of products and sellers. It hosts a valuable dataset of products, prices, and seller information that can be used for various purposes.

Here are some potential use cases for scraping Kabum:

- **Market Research**: Analyze trends, pricing, and product availability to make informed business decisions.
- **Competitor Analysis**: Monitor competitor prices and product offerings.
- **Inventory Management**: Keep track of product availability and pricing changes.
- **Price Comparison**: Provide users with up-to-date price comparisons across different sellers.
- **Product Recommendations**: Use scraped data to offer personalized product recommendations.

### How much will it cost to scrape Kabum?

The Kabum Scraper is designed to be efficient and cost-effective. The cost will depend on the number of requests and data volume. On average, it costs approximately $0.15 per 100 requests on top of the monthly rental fee.

### How to scrape Kabum

You can initiate the scraper by specifying search criteria or by providing specific URLs from Kabum. Here are some common URLs to start the scraper:

- `https://www.kabum.com.br/`: The homepage for general product searches.
- `https://www.kabum.com.br/busca/XXX`: The search page result.

### Example results

The scraped data from Kabum is typically stored in structured formats. Here are sample results:

Product Listing:

```json
{
 "type": "product",
 "id": "99428",
 "url": "https://www.kabum.com.br/produto/99428/memoria-ram-rise-mode-4gb-1600mhz-ddr3-cl11-rm-d3-4g1600v",
 "title": "Memória RAM Rise Mode, 4GB, 1600MHz, DDR3, CL11 - RM-D3-4G1600V",
 "price": "R$ 34,99",
 "old_price": "R$ 47,05",
 "price_text": "À vista no PIX\nou até\n1x de R$ 37,04"
}
```

# Actor input Schema

## `searches` (type: `array`):

Search terms to start with.

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

URLs to start with.

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

Maximum number of products to be scraped. Leave it empty for unlimited search.

## `debugMode` (type: `boolean`):

Whether to enable debug mode. If enabled, the actor will log more information.

## Actor input object example

```json
{
  "searches": [
    "memoria DDR3"
  ],
  "maxItems": 20,
  "debugMode": false
}
```

# 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 = {
    "searches": [
        "memoria DDR3"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("trudax/kabum").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 = {
    "searches": ["memoria DDR3"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("trudax/kabum").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 '{
  "searches": [
    "memoria DDR3"
  ],
  "maxItems": 20
}' |
apify call trudax/kabum --silent --output-dataset

```

## MCP server setup

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

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/zJVv6Idle3juOj06w/builds/fgDf0PZUL8Nj4zEMI/openapi.json
