# Magazine Luiza Scraper - $2.50 / 1000 Products (`scrapeunblocker/magazine-luiza-scraper`) Actor

Scrape Magazine Luiza (Magalu, Brazil): search results or product pages with price, Pix price, list price and discount, installments, rating and reviews, seller card, technical sheet, variations and images. $2.50 per 1000 products.

- **URL**: https://apify.com/scrapeunblocker/magazine-luiza-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

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

## Magazine Luiza Scraper

Scrape **Magazine Luiza (Magalu, magazineluiza.com.br)**, Brazil's big retail marketplace, as clean JSON. Get **search results** or **product pages**: every product comes with the price, the **best price (usually the Pix price)**, the list price and **discount**, **installments**, **rating and review count**, the seller (Magalu or a marketplace seller), availability, sponsored flag, category, badges and image. Product pages add the description and key selling points, the **rating breakdown** and aspect ratings, the **first page of reviews**, the **seller card** (score, total sales, city, seller since, delivery rating), coupon, breadcrumbs, the **technical sheet**, colour / size / capacity **variations**, images, videos and package dimensions.

### Features

- **Search mode** - products for each search term, 40 per results page, up to 200 per term, sorted by relevance, best selling, price, rating, newest or delivery time.
- **Product mode** - one product per input (`products`: Magalu product id or product link) with the technical sheet, reviews and seller card.
- **Pix and installment prices** - `price`, `bestPrice` with `bestPriceMethod`, `originalPrice` and `installments` (count, amount, interest-free).
- **Marketplace sellers** - who sells each product, and on product pages the seller's score, sales count and delivery rating.

### Use cases

- **Price monitoring in Brazil** - list, sale, Pix and installment prices for your products and competitors.
- **Marketplace seller research** - which sellers carry a category, their scores and sales.
- **Review and rating tracking** - rating breakdown, aspect ratings and the latest reviews.
- **Catalogue enrichment** - technical sheets, variations and images for a product list.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `search` | `search` or `product`. |
| `queries` | array | `geladeira` | Search terms or Magalu search links (search mode). Portuguese works best. |
| `products` | array | - | Magalu product ids (`240354400`, `jc60hbaa6d`) or product links (product mode). |
| `sort` | string | `relevance` | `relevance`, `best_selling`, `price_low`, `price_high`, `rating`, `newest`, `fastest_delivery`, `price_with_shipping_low`. |
| `maxResults` | integer | `40` | Products per search term (1-200). |
| `concurrency` | integer | `2` | Inputs processed at the same time (1-3). |

#### Example input

```json
{
  "mode": "search",
  "queries": ["air fryer", "smart tv 55"],
  "sort": "best_selling",
  "maxResults": 80
}
```

### Output

One dataset item per product, with the input it came from. A search item:

```json
{
  "mode": "search",
  "input": "notebook",
  "position": 1,
  "productId": "240354400",
  "offerId": "240354400",
  "title": "Notebook Acer Aspire Go Intel Core i5 13420H 8GB RAM 512GB SSD 15,6\" Full HD Windows 11 AG15-71P-53GM",
  "brand": "Acer",
  "url": "https://www.magazineluiza.com.br/notebook-acer-aspire-go-intel-core-i5-13420h-8gb-ram-512gb-ssd-156-full-hd-windows-11-ag15-71p-53gm/p/240354400/in/nota/",
  "price": 4179,
  "bestPrice": 4179,
  "bestPriceMethod": "no Pix",
  "originalPrice": 6000,
  "discountPercent": 30,
  "currency": "BRL",
  "installments": { "count": 10, "amount": 417.9, "total": 4179, "interestFree": true },
  "rating": 4.85,
  "reviewCount": 2850,
  "sellerId": "magazineluiza",
  "sellerName": "Magalu",
  "available": true,
  "sponsored": true,
  "magaluIndica": true,
  "category": "Informática",
  "subcategory": "Notebook Acer",
  "badges": ["LIQUIDA_OFERTA_DA_TV"],
  "image": "https://a-static.mlcdn.com.br/800x560/notebook-acer-aspire-go-intel-core-i5-13420h-8gb-ram-512gb-ssd-156-full-hd-windows-11-ag15-71p-53gm/magazineluiza/240354400/417e5f805eb3b3b9651670c5192c8c37.jpg",
  "variations": [{ "name": "Cor", "current": "Cinza Aço", "options": 1 }]
}
```

A product-mode item adds `reference`, `description`, `keySellingPoints`, `commentCount`, `ratingHistogram`, `ratingAspects`, `reviews` (rating, text, author, date, photos), `seller` (id, name, legal name, city, state, seller since, score, total sales, answer and delivery rate), `coupon`, `breadcrumbs`, `specifications` (group / name / value), `variations` (each option with its product id), `images`, `videos` and `dimensions`.

Per search term, the `LISTINGS` record in the key-value store keeps `totalResults`, pages fetched and products collected.

### Pricing

**$2.50 per 1000 products** (pay per result). A search term or product that returns nothing (no match, an unknown product) is listed in the `ERRORS` record of the key-value store and is not charged.

### Notes

- Magalu pages are rendered in a real browser, so a search term or product takes about 5-15 seconds.
- Prices are in BRL.

Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

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

Search: products for each search term, 40 per results page, up to Max products. Product: one product each, with description, technical sheet, rating breakdown, first reviews, seller card, variations and images.

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

Used when What to scrape = Search. What to search, e.g. geladeira, smart tv 55, air fryer (Portuguese works best). A Magalu search link also works. One per line.

## `products` (type: `array`):

Used when What to scrape = Product. Magalu product ids (240354400 or jc60hbaa6d, the part after /p/ in a link) or product links (https://www.magazineluiza.com.br/notebook-acer-aspire-go/p/240354400/in/nota/). One per line.

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

Search mode: the order of the results.

## `maxResults` (type: `integer`):

Upper limit of products for each search term (1-200; Magalu shows 40 per page).

## `concurrency` (type: `integer`):

How many search terms or products to process at the same time (1-3).

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "geladeira"
  ],
  "sort": "relevance",
  "maxResults": 10,
  "concurrency": 2
}
```

# Actor output Schema

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

One item per product with the input it came from and, in search mode, its position

## `listings` (type: `string`):

Per search term: total results, pages fetched and products collected

## `errors` (type: `string`):

Inputs that returned no products (no match, unknown product, blocked), with the reason (not billed)

# 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"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/magazine-luiza-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 = {
    "queries": ["geladeira"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/magazine-luiza-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 '{
  "queries": [
    "geladeira"
  ],
  "maxResults": 10
}' |
apify call scrapeunblocker/magazine-luiza-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/magazine-luiza-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/fyrYTjEAabyw6Yigw/builds/bDET6QNeVaQeUSsgO/openapi.json
