# Jumbo Scraper (`knowten/jumbo-scraper`) Actor

Scraper ultrarrápido y robusto para jumbocolombia.com (Colombia). Extrae catálogo completo, precios, EANs, descuentos, marcas y especificaciones técnicas.

- **URL**: https://apify.com/knowten/jumbo-scraper.md
- **Developed by:** [Knowten](https://apify.com/knowten) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 resultados

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/platform/actors/running/actors-in-store#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

## Jumbo Colombia Supermarket & Retail Scraper 🛒🇨🇴

Desbloquea el catálogo completo de **jumbocolombia.com** (Cencosud Colombia). Obtén acceso inmediato y en tiempo real a miles de productos, precios actualizados, descuentos, marcas, código de barras (EAN-13 / GTIN) y especificaciones técnicas detalladas. Extrae datos estructurados con máxima velocidad y estabilidad.

***

### 🌟 Casos de Uso Principales

- **📉 Monitoreo de Precios y Competencia**: Rastrea cambios de precios diarios, ofertas y descuentos.
- **🏷️ Cruce de Datos por EAN**: Extracción de códigos de barras (GTIN/EAN-13) para cruce de catálogo con INVIMA y otros supermercados.
- **📊 Inteligencia de Mercado**: Análisis de marcas, departamentos, categorías y disponibilidad.

***

### 🔍 Modo Descubrimiento (`discovery_mode`)

> \[!IMPORTANT]
> **¿CÓMO FUNCIONAN LOS FILTROS EN JUMBO?**
> Cada categoría en Jumbo tiene filtros específicos (Marca, Departamento, Categoría, Rango de Precio, etc.).
>
> Si deseas conocer exactamente qué filtros existen para una búsqueda específica (ej. `query=leche`), activa el **Modo Descubrimiento (`discovery_mode: true`)**.

> \[!WARNING]
> **ATENCIÓN SOBRE EL MODO DESCUBRIMIENTO:**
> Este modo se utiliza **SOLAMENTE** para detectar e identificar la lista de filtros válidos y sus opciones disponibles para una búsqueda.
> **EL MODO DESCUBRIMIENTO NO EXTRAE PRODUCTOS.**
>
> Una vez que identifiques la clave y el valor del filtro que te interesa (ej. `brand=COLANTA` o `priceMin=30000`), **desactiva** el Modo Descubrimiento (`discovery_mode: false`) y coloca esos valores en los campos de entrada o en **Filtros Dinámicos Adicionales (`custom_filters`)**.

***

### ⚙️ Parámetros de Entrada (Input)

| Parámetro | Tipo | Descripción | Ejemplo |
| :--- | :--- | :--- | :--- |
| `search_term` | String | Palabra clave o término de búsqueda en Jumbo. | `"leche"` |
| `brand` | String | Selección o slug de Marca. | `"COLANTA"` |
| `price` | String | Rango de precio en pesos colombianos `Min:Max`. | `"30000:50000"` |
| `max_items` | Integer | Cantidad máxima de productos a extraer. Usa `0` para sin límite. | `100` |
| `discovery_mode` | Boolean | **SOLO para detectar filtros**. Si se activa, devuelve los filtros disponibles y se detiene (NO extrae productos). | `false` |
| `custom_filters` | String | Filtros dinámicos adicionales en formato `Clave=Valor` separados por coma. | `"brand=COLANTA,priceMin=30000,priceMax=50000"` |

***

### 📊 Ejemplo de Resultados (Output)

```json
{
  "ID": "206584",
  "Nombre": "Leche Entera Colanta Bolsa x6 Und x1000ml",
  "Marca": "COLANTA",
  "Precio_Original": 32600,
  "Precio_Final": 32600,
  "URL_Producto": "https://www.jumbocolombia.com/leche-entera-colanta-bolsa-x6-und-x1000ml-3509862/p",
  "Informacion_Adicional": {
    "EAN": "7702129004961",
    "Referencia": "3509862",
    "Categoria": "Leche",
    "Tipo de Producto": "Leche Entera",
    "Origen": "Nacional",
    "País de Origen": "Colombia",
    "Descripcion": "Buena fuente de proteina y calcio con un sabor inigualable. Combinala con cereales, tortas, galletas y más."
  }
}
```

***

### 🛠️ Ejecución Local

```bash
pip install -r requirements.txt
python3 -m src
```

# Actor input Schema

## `search_term` (type: `string`):

Palabra clave a buscar en Jumbo Colombia (ej. 'leche', 'cafe', 'cerveza', 'whisky').

## `max_items` (type: `integer`):

Cantidad máxima de productos a extraer. Usa 0 para extraer todo el catálogo devuelto.

## `discovery_mode` (type: `boolean`):

SOLO para detectar filtros. Si se activa (true), devuelve la lista de filtros disponibles y sus opciones para esa búsqueda (NO extrae productos).

## `category_1` (type: `string`):

Ej: supermercado, electrodomesticos, tecnologia

## `category_2` (type: `string`):

Ej: lacteos-huevos-y-refrigerados, vinos-y-licores, despensa

## `category_3` (type: `string`):

Ej: leche, queso, vino, cervezas

## `brand` (type: `string`):

Nombre o slug de la marca (ej: COLANTA, ALPINA, ALQUERIA, BUCHANANS).

## `price` (type: `string`):

Rango en pesos colombianos. Formato Mínimo:Máximo (Ej: 30000:50000).

## `custom_filters` (type: `string`):

Filtros específicos descubiertos en formato Clave=Valor separados por coma (Ej: brand=COLANTA, priceMin=30000, priceMax=50000).

## Actor input object example

```json
{
  "search_term": "leche",
  "max_items": 100,
  "discovery_mode": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

Resultados de la extracción formateados en JSON, CSV o Excel

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("knowten/jumbo-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("knowten/jumbo-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call knowten/jumbo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=knowten/jumbo-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MZOLHCe05qs9g9dn1/builds/K9CDCaK3fRz9yFMUW/openapi.json
