E-commerce
Magazine Luiza Scraper
magazineluiza.com.br
Magazine Luiza, Brazil's big retail marketplace (Magalu), is served through two dedicated plugin endpoints rather than the generic page fetch. Give the search endpoint a keyword - like 'air fryer' - and it returns the products already parsed: product and offer ids, title, brand, link and image, the price in BRL, the best price with its payment method (usually the Pix price), the list price and the discount, the installment plan, the star rating and review count, the seller (Magalu or a marketplace seller), availability, sponsored flag, category, badges and the variation axes. Sort by relevance, best selling, price, rating, newest or delivery time, start at any page and collect up to 200 products in one call (40 per Magalu page). The product endpoint takes a product id or link and returns the description and key selling points, prices and installments, the rating with its histogram, aspect ratings and the first page of reviews, the seller's card (legal name, city, seller since, score, total sales, answer and delivery rating), the coupon on offer, breadcrumbs, the technical sheet, the colour, size or capacity variations with the product id of each option, images, videos and package dimensions. Magalu's pages only open in a real browser, so a call takes a few seconds longer than a plain page. No Magalu account, login or API key is involved.
What you can extract
- Product id, offer id, title, brand, link, image and position in the results
- Price in BRL, best price and its payment method (usually Pix), the list price and the discount percentage
- Installment plan: number, amount, total and whether it is interest-free
- Star rating, review count, seller id and name, availability, sponsored flag, category and badges
- Search by keyword or a Magalu search link, sorted by relevance, best selling, price, rating, newest or delivery time; up to 200 products per call
- Product: description, key selling points, rating histogram, aspect ratings, first page of reviews and the seller's card (score, total sales, city, seller since)
- Product: technical sheet, variations with the product id of each option, coupon, breadcrumbs, images, videos and package dimensions
Dedicated endpoints
/marketplace/magazineluiza-search A product search on Magazine Luiza
Magazine Luiza search results for a keyword (query): a products array with position, productId, offerId, title, brand, url, price, bestPrice, bestPriceMethod, originalPrice, discountPercent, currency, installments (count, amount, total, interestFree), rating, reviewCount, sellerId, sellerName, available, sponsored, magaluIndica, category, subcategory, badges, image and variations, plus totalResults, lastPage, pagesFetched, hasMore and nextPage. sort is relevance, best_selling, price_low, price_high, rating, newest, fastest_delivery or price_with_shipping_low, page picks the first results page (1-25), max_results 1-200 (40 per page, each page fetched is one request), and url takes a Magalu search link instead. A search with no products answers 404.
/marketplace/magazineluiza-product One Magazine Luiza product
One product by product_id (numeric for Magalu stock, letters and digits for marketplace sellers) or url (a Magalu product link): product with productId, offerId, url, title, brand, reference, description, keySellingPoints, price, bestPrice, bestPriceMethod, originalPrice, discountPercent, currency, installments, available, rating, reviewCount, commentCount, ratingHistogram, ratingAspects, reviews (rating, text, author, date, images), seller (id, name, legalName, deliveredBy, city, state, sellerSince, score, totalSales, answerRate, deliveryRate), coupon, badges, breadcrumbs, specifications (group, name, value), variations, images, videos and dimensions. An unknown product answers 404.
How to scrape it
curl -X POST \
-H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
"https://api.scrapeunblocker.com/marketplace/magazineluiza-search?query=air%20fryer&sort=best_selling&max_results=40"import requests
resp = requests.post(
"https://api.scrapeunblocker.com/marketplace/magazineluiza-search",
headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
params={"query": "air fryer", "sort": "best_selling", "max_results": "40"},
)
print(resp.text)import { ScrapeUnblockerClient } from 'scrapeunblocker';
const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });
const results = await su.magazineluizaSearch('air fryer', {
sort: 'best_selling',
maxResults: 40,
});
const product = await su.magazineluizaProduct({ productId: '240354400' });
console.log(results);
console.log(product); Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.
Example response
{
"query": "air fryer",
"sort": "relevance",
"page": 1,
"url": "https://www.magazineluiza.com.br/busca/air+fryer/",
"currency": "BRL",
"totalResults": 10000,
"lastPage": 25,
"resultsCollected": 2,
"pagesFetched": 1,
"lastPageFetched": 1,
"hasMore": true,
"nextPage": 2,
"products": [
{
"productId": "240895000",
"offerId": "240894900",
"title": "Air Fryer Wap Barbecue Flame 10L Digital Preta e Cinza FW012055",
"brand": "Wap",
"url": "https://www.magazineluiza.com.br/air-fryer-wap-barbecue-flame-10l-digital-preta-e-cinza-fw012055/p/240895000/ep/efso/",
"price": 842,
"bestPrice": 799.9,
"bestPriceMethod": "no Pix",
"originalPrice": null,
"discountPercent": null,
"currency": "BRL",
"installments": {
"count": 10,
"amount": 84.2,
"total": 842,
"interestFree": true
},
"rating": 4.86,
"reviewCount": 141,
"sellerId": "magazineluiza",
"sellerName": "Magalu",
"available": true,
"sponsored": true,
"magaluIndica": true,
"category": "Eletroportáteis",
"subcategory": "Fritadeira sem Óleo / Air Fryer",
"badges": [],
"image": "https://a-static.mlcdn.com.br/800x560/air-fryer-wap-barbecue-flame-10l-digital-preta-e-cinza-fw012055/magazineluiza/240895000/62280e685bc5d5aa64718f171fad7148.jpg",
"variations": [
{
"name": "Cor",
"current": "Preto e Cinza",
"options": 16
},
{
"name": "Voltagem",
"current": "220V",
"options": 16
}
],
"position": 1
},
{
"productId": "240268300",
"offerId": "gc65jkh15d",
"title": "Air Fryer Electrolux Efficient 5,6L por Rita Lobo EAF40 com Timer",
"brand": "Electrolux",
"url": "https://www.magazineluiza.com.br/air-fryer-electrolux-efficient-56l-por-rita-lobo-eaf40-com-timer/p/240268300/ep/efso/",
"price": 325.26,
"bestPrice": 309,
"bestPriceMethod": "no Pix",
"originalPrice": null,
"discountPercent": null,
"currency": "BRL",
"installments": {
"count": 10,
"amount": 32.53,
"total": 325.26,
"interestFree": true
},
"rating": 4.88,
"reviewCount": 1015,
"sellerId": "magazineluiza",
"sellerName": "Magalu",
"available": true,
"sponsored": true,
"magaluIndica": true,
"category": "Eletroportáteis",
"subcategory": "Fritadeira sem Óleo / Air Fryer",
"badges": [],
"image": "https://a-static.mlcdn.com.br/800x560/air-fryer-electrolux-efficient-56l-por-rita-lobo-eaf40-com-timer/magazineluiza/240268300/6895a203a1230d900657c71adff8be6d.jpg",
"variations": [
{
"name": "Cor",
"current": "Grafite",
"options": 31
},
{
"name": "Voltagem",
"current": "110V",
"options": 31
}
],
"position": 2
}
]
} Frequently asked questions
Is it legal to scrape Magazine Luiza?
Collecting publicly available Magazine Luiza data such as product names, prices, ratings and seller names is lawful in many jurisdictions, but the rules depend on your country, the data you collect and how you use it. Reviews carry the reviewer's first name, which can be personal data; follow the privacy rules that apply to you. ScrapeUnblocker returns the public listings that any visitor sees; what you collect and how you use it is your responsibility.
How do I scrape Magazine Luiza without getting blocked?
Magalu sits behind Akamai, which refuses plain HTTP clients on its product and search pages and answers refused requests with its own error or challenge page. The plugins open the pages in a real browser, read the data Magalu renders into them, recognise Akamai's refusal as a miss rather than a result and repeat it on a fresh exit. Because every call is a real browser render, a call takes about 5-15 seconds.
What Magazine Luiza data can I get?
Each search result has the product and offer ids, title, brand, link and image, the price, the best price and its payment method, the list price and the discount, the installment plan, the star rating and review count, the seller, availability, sponsored flag, category, badges and the variation axes. The product endpoint adds the description and key selling points, the rating histogram and aspect ratings, the first page of reviews, the seller's card with score, total sales, city and seller-since date, the coupon, breadcrumbs, the technical sheet, the variations with each option's product id, images, videos and package dimensions. Shipping cost and delivery dates depend on a Brazilian postcode and are not included.
Which prices does Magazine Luiza return?
price is the regular price, bestPrice the lowest price Magalu shows with bestPriceMethod saying how to pay it (usually 'no Pix'), originalPrice the crossed-out list price, and installments the best installment plan (count, amount per installment, total and whether it is interest-free). All prices are in BRL.
How many Magazine Luiza products can I get per search?
Up to 200 in one call: Magalu shows 40 products per results page and the plugin pages through them up to max_results, each page being one request. Magalu stops at page 25 of any search; for more products from the same keyword, run it with other sort orders.
How much does it cost to scrape Magazine Luiza?
Each results page of up to 40 products is one request, and one product is one request. 1 request = 1 credit, EUR 1.00 per 1,000 on pay as you go, down to about EUR 0.55 per 1,000 on the Ultimate plan. Blocks and timeouts are not billed, and the free trial includes 500 requests with no card.
Related scrapers
Magazine Luiza and other names and marks of magazineluiza.com.br belong to their owner and are used here only to identify the website this API works with. ScrapeUnblocker is an independent service, not affiliated with, endorsed by or sponsored by the owner of magazineluiza.com.br.
Start scraping this site today
Free tier included. No credit card required to test it.