# Magazine Luiza Price Checker & Product Scraper (Magalu) (`muhammadafzal/magazineluiza-products-scraper`) Actor

Check Magazine Luiza (Magalu) prices on magazineluiza.com.br: price, list price, Pix price, installments, seller, rating, specifications and availability by product code, link, keyword or category. From USD 2 per 1,000 rows.

- **URL**: https://apify.com/muhammadafzal/magazineluiza-products-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 magazine luiza product rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Price Checker & Product Scraper (Magalu)

Magazine Luiza Price Checker & Product Scraper returns current Magazine Luiza (Magalu) prices, list prices, Pix prices, installment plans, sellers, ratings, brands, categories and availability from magazineluiza.com.br as JSON or CSV, by product code, product link, search keyword or category link. Search and category rows cost USD 2.00 per 1,000 on the FREE tier, product-page rows USD 3.50 per 1,000 (row plus product-page event), plus USD 0.005 per run, and you pay only for rows delivered.

It is built for Magalu price checks and price monitoring, competitor and marketplace seller research, catalog matching by model and specifications, and Brazilian retail price comparison. No API key, login or proxies are needed.

### What Magazine Luiza data does the scraper return?

One row per product with these fields:

| Field | What it holds |
|---|---|
| `productId` | Magazine Luiza product code, the code after `/p/` in the link (9 digits for Magalu's own items, 10 letters and digits for marketplace items) |
| `title`, `brand`, `model`, `variant` | Product name, brand, manufacturer model, and the selected options such as color and voltage |
| `price`, `listPrice`, `currency` | Price for card payment and the "de" list price before a discount, in BRL |
| `pixPrice`, `pixDiscountPercent` | Price when paying with Pix and the Pix discount in percent |
| `installmentCount`, `installmentAmount`, `installmentTotal`, `installmentInterestFree` | The best installment plan: number of installments, each amount, the total, and whether it is "sem juros" |
| `sellerId`, `sellerName`, `soldByMagalu` | Who sells the item, and whether it is Magalu itself or a marketplace seller |
| `available` | Whether the product can be bought now |
| `rating`, `reviewCount` | Average customer rating out of 5 and the number of reviews |
| `category`, `subcategory`, `imageUrl`, `url`, `sponsored` | Department, category, main image, product link, and whether a list showed it as sponsored |
| `description`, `specifications`, `images` | Description, the technical sheet (Ficha técnica) and all images: rows read from a product page |
| `source`, `input`, `searchQuery`, `listingUrl`, `page`, `position`, `scrapedAt` | Where the row came from, what you asked for, the list rank and when it was read |

Rows from product codes and product links are read from the product page and carry every field. Search and category rows come from the list and carry every price, seller and rating field; turn on `includeProductDetails` to add the description, specifications, model and all images from each product page.

Prices are what magazineluiza.com.br shows online, without a delivery ZIP code (CEP): shipping costs and delivery dates are not included.

### How do I check a Magazine Luiza price by product code or link?

Put product codes in `productIds`:

```json
{ "productIds": ["240733300", "dd08bcehbf"] }
```

Or paste product links in `productUrls`:

```json
{
  "productUrls": [
    "https://www.magazineluiza.com.br/geladeira-refrigerador-midea-frost-free-duplex-inox-394l-mdrt533evd462/p/240733300/ed/ref2/"
  ]
}
```

Codes in the wrong format are refused before any request, so a typo costs nothing. A code Magazine Luiza does not know comes back as not found, without a charge.

### How do I scrape Magazine Luiza search results and categories?

Put keywords in `searchQueries`, or category links in `categoryUrls`. Rows keep the site's order in `position`, about 40 to 60 products per page:

```json
{
  "searchQueries": ["geladeira frost free", "cafeteira elétrica"],
  "categoryUrls": ["https://www.magazineluiza.com.br/cafeteira-eletrica/eletroportateis/s/ep/cafe/"],
  "maxResults": 100,
  "maxPagesPerQuery": 3
}
```

- Keywords work in Portuguese or English, with or without accents. Words Magazine Luiza has no products for come back empty and are not charged.
- Category links can be a category (`…/s/<dept>/<category>/`) or a department (`…/l/<dept>/`); filters in the link are kept.
- Sponsored placements are part of the list the site shows; they are delivered in place and marked `sponsored: true`. A product shown both as a sponsored placement and in the regular results is delivered once, at its first position.
- A product listed on two pages or under two keywords is delivered once.
- Deeper pages repeat products from earlier pages, so one keyword gives at most about 600 to 700 different products over the site's 25 pages. For many pages of one product type, a category link reads the same list data as a keyword search.

### How much does it cost to scrape Magazine Luiza?

You pay per event, with no subscription. Platform usage is included.

| Event | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|
| Magazine Luiza product row (every row) | USD 0.002 | USD 0.00195 | USD 0.0019 | USD 0.0016 |
| Product page (added to rows read from a product page) | USD 0.0015 | USD 0.001463 | USD 0.001425 | USD 0.0012 |
| Actor start (per run, per started GB of memory) | USD 0.005 | USD 0.005 | USD 0.005 | USD 0.005 |

Examples on the FREE tier at the default 256 MB: one product code costs USD 0.0085 (start, row and product-page event); 100 search or category rows cost USD 0.205; 100 product codes, or 100 search rows with product details, cost USD 0.355. Rows that are not found, empty, refused or failed are never charged. Set a maximum charge on the run to cap spend; the Actor stops cleanly when it is reached.

### What does a result look like?

```json
{
  "productId": "240733300",
  "title": "Geladeira/Refrigerador Midea Frost Free Duplex Inox 394L MDRT533EVD462",
  "url": "https://www.magazineluiza.com.br/geladeira-refrigerador-midea-frost-free-duplex-inox-394l-mdrt533evd462/p/240733300/ed/ref2/",
  "brand": "Midea",
  "price": 2629,
  "listPrice": 2629,
  "pixPrice": 2444.97,
  "pixDiscountPercent": 7,
  "installmentCount": 10,
  "installmentAmount": 262.9,
  "installmentTotal": 2629,
  "installmentInterestFree": true,
  "currency": "BRL",
  "available": true,
  "sellerId": "magazineluiza",
  "sellerName": "Magalu",
  "soldByMagalu": true,
  "rating": 4.85,
  "reviewCount": 1674,
  "category": "Eletrodomésticos",
  "subcategory": "Geladeira Duplex",
  "variant": { "Cor": "Inox", "Voltagem": "220V" },
  "imageUrl": "https://a-static.mlcdn.com.br/800x560/geladeira-refrigerador-midea-frost-free-duplex-inox-394l-mdrt533evd462/magazineluiza/240733300/1ecb58bab509f7506e41ae13a09810d8.jpg",
  "sponsored": false,
  "model": "MDRT533EVD462",
  "description": "Tenha uma revolução na sua cozinha com a geladeira/refrigerador Frost Free Duplex Midea MDRT533EVD462 na cor inox…",
  "specifications": { "Marca": "Midea", "Modelo": "MDRT533EVD462", "Capacidade Líquida Total": "394L", "Voltagem": "220V" },
  "images": ["https://a-static.mlcdn.com.br/800x560/geladeira-refrigerador-midea-frost-free-duplex-inox-394l-mdrt533evd462/magazineluiza/240733300/1ecb58bab509f7506e41ae13a09810d8.jpg"],
  "source": "productPage",
  "input": "240733300",
  "searchQuery": null,
  "listingUrl": null,
  "page": null,
  "position": null,
  "scrapedAt": "2026-11-09T03:23:06.000Z"
}
```

The `OUTPUT` record in the key-value store sums up the run: status (`SUCCEEDED`, `PARTIAL`, `EMPTY`, `FAILED` or `REJECTED`), each input's result (`ok`, `empty`, `not-found`, `rejected`, `failed`, `skipped`), skipped entries, the stop reason and charged events.

### When should I use this Magazine Luiza scraper, and when not?

Use it to check Magalu prices and Pix discounts by product code, to watch a category or a keyword's results over time, to see which marketplace sellers list a product, or to collect specifications for catalog matching.

Do not use it for:

- Review text: rows carry the rating and the review count, not individual reviews.
- Shipping costs or delivery dates for a CEP: rows carry the online price only.
- Seller contact data, carts and checkout, or anything behind a Magazine Luiza account.
- Other retailers: see [MercadoLibre Product & Seller Data Scraper](https://apify.com/muhammadafzal/mercadolibre-product-seller-scraper) for Mercado Livre Brazil, or [Google Shopping Scraper — Prices & Products](https://apify.com/muhammadafzal/google-shopping-scraper) to compare prices across shops.

### Use it from an AI assistant

The Actor works from Claude, ChatGPT, Cursor or any MCP client through Apify's MCP server. Add `https://mcp.apify.com/?tools=muhammadafzal/magazineluiza-products-scraper` as an MCP server. Then ask, for example: "Check the Magazine Luiza price and Pix price of product 240733300." The assistant fills in the input, runs the Actor and reads the rows.

### FAQ

**How do I find a Magazine Luiza product code?** It is the code after `/p/` in the product link: in `…/p/240733300/ed/ref2/` the code is `240733300`. You can also search with `searchQueries`; every row carries its `productId`. Product links work as `productUrls`.

**What is the difference between `price` and `pixPrice`?** `price` is the price for card payment, often split into interest-free installments; `pixPrice` is the lower price Magazine Luiza shows for paying with Pix, and `pixDiscountPercent` is that discount.

**Why do some rows show another seller?** Magazine Luiza lists items from marketplace sellers. `sellerName` names the seller, and `soldByMagalu` is false for those rows. Their product codes have 10 letters and digits.

**What happens with an unknown code or a misspelled search?** Unknown codes come back as not found, and words Magazine Luiza has no products for come back empty. Neither is charged; both are listed in `OUTPUT`. When the site corrects a keyword, `OUTPUT` names the words it searched for.

**How long does a run take?** A search or category page of about 50 rows takes about 5 to 15 seconds; 25 pages of one keyword took about 3 minutes. Product pages are read four at a time: 24 product codes took about 45 seconds. The default 900-second timeout covers about 450 product codes or product-detail rows; raise the run timeout for more. If a run reaches its timeout, the rows already delivered are kept and `OUTPUT` says where it stopped.

**Can I export the data?** Yes: JSON, CSV, Excel, XML or HTML from the dataset, or through the Apify API, webhooks and integrations.

Last verified: 2026-11-09

# Actor input Schema

## `productIds` (type: `array`):

Use this when you have Magazine Luiza product codes: the code after /p/ in a product link, 9 digits for items Magalu sells itself (e.g. 240733300) or 10 letters and digits for marketplace items (e.g. dd08bcehbf). Each code is one product-page row.

## `productUrls` (type: `array`):

Use this when you have Magazine Luiza product links instead of codes, for example https://www.magazineluiza.com.br/geladeira-refrigerador-midea-frost-free-duplex-inox-394l-mdrt533evd462/p/240733300/ed/ref2/. Each link is one product-page row.

## `searchQueries` (type: `array`):

Use this to list Magazine Luiza search results in the site's order: keywords as a shopper types them, in Portuguese or English, for example geladeira frost free or iphone 15. Each search page has about 40 to 60 products (sponsored placements included and marked) with price, Pix price, installments, seller and rating.

## `categoryUrls` (type: `array`):

Use this to list a Magazine Luiza category in the site's order, for example https://www.magazineluiza.com.br/cafeteira-eletrica/eletroportateis/s/ep/cafe/ (a category, …/s/…/…/) or https://www.magazineluiza.com.br/eletrodomesticos/l/ed/ (a department, …/l/…/). Filters in the link are kept. About 40 to 60 products per page.

## `includeProductDetails` (type: `boolean`):

Use this when search and category rows must carry the description, specifications, model and all images: each result is then read from its product page, which adds the product-page event per row. Off, those rows carry the list data only (price, list price, Pix price, installments, seller, rating, brand, category, availability). Product codes and links always use the product page.

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

Use this to cap the run: it stops after this many dataset rows, counting product codes, links, search and category results together. Duplicates are removed before counting.

## `maxPagesPerQuery` (type: `integer`):

Use this to set how many result pages to read for each search keyword or category link, about 40 to 60 products per page (the site lists at most 25 pages). The run also stops at Maximum rows.

## Actor input object example

```json
{
  "productIds": [
    "240733300"
  ],
  "includeProductDetails": false,
  "maxResults": 20,
  "maxPagesPerQuery": 3
}
```

# Actor output Schema

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

Dataset rows: one per product page, search result or category result.

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

The OUTPUT record: status, per-input results, skipped entries, stop reason, warnings and request counters.

# 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 = {
    "productIds": [
        "240733300"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/magazineluiza-products-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 = { "productIds": ["240733300"] }

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/magazineluiza-products-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 '{
  "productIds": [
    "240733300"
  ]
}' |
apify call muhammadafzal/magazineluiza-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/magazineluiza-products-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/us5onAk7MCEg0aRUg/builds/LvjHUyhConfXV8QTV/openapi.json
