Scrape Lazada with a JSON API. This repo has working Python examples for DataGuru's Lazada scraper APIs: Lazada Product Details and Lazada Product Search.
DataGuru runs the scraping, proxies, retries and parsing, and returns clean JSON. You pay only for successful requests, from $0.0032 per request, out of a prepaid balance: no subscription. New accounts get $1.00 of free credit.
| API | What it returns | Price | Page |
|---|---|---|---|
| Lazada Product Details | Get product details from a Lazada product URL, including price, discount, ratings, purchase options, specifications, images, seller and delivery information. | $0.0032 | https://dataguru.cc/apis/lazada-product-details/ |
| Lazada Product Search | Search Lazada in Singapore, Malaysia, the Philippines, Thailand, Vietnam or Indonesia by keyword and get matching products with titles, prices, discounts, ratings, units sold, images and sellers. | $0.0032 | https://dataguru.cc/apis/lazada-product-search/ |
- Create a free account and an API key at dashboard.dataguru.cc.
- Install and run:
git clone https://github.com/dataguru-cc/lazada-scraper-api.git
cd lazada-scraper-api
pip install -r requirements.txt
export DATAGURU_API_KEY="your key"
python examples/sdk_example.py lazada-product-detailsEvery example covers all 2 Lazada APIs. Pass an API name to run just one; with no name each script runs them all, and each call is billed at the price above.
| File | Style | Run |
|---|---|---|
examples/sdk_example.py |
DataGuru Python SDK (pip install dataguru-sdk), one function per API, saves JSON to output/ |
python examples/sdk_example.py |
examples/requests_example.py |
Plain requests, synchronous |
python examples/requests_example.py |
examples/async_example.py |
asyncio + httpx, concurrent with a limit |
python examples/async_example.py |
examples/scrapy_spider.py |
Scrapy spider, items to JSON/CSV | scrapy runspider examples/scrapy_spider.py -O lazada.json |
All requests use the header Authorization: Api-Key YOUR_API_KEY. Errors return {"success": false, "error": {"code", "message", "request_id"}}, with HTTP 402 when the balance runs out and 429 (with Retry-After) when rate limited. Failed requests are not charged.
Get product details from a Lazada product URL, including price, discount, ratings, purchase options, specifications, images, seller and delivery information.
- Endpoint:
POST https://api.dataguru.cc/api/v1/lazada/products/details - Price: $0.0032 per successful request ($3.20 per 1,000)
- Rate limit: 60 requests/minute
- Page and live playground: https://dataguru.cc/apis/lazada-product-details/
- Documentation: https://dataguru.cc/documentation/lazada-product-details/
| Parameter | Type | Required | Description |
|---|---|---|---|
product_url |
string | yes | Full Lazada product URL from any Lazada country site (e.g. https://www.lazada.sg/products/pdp-i3325102351.html). |
Response fields: product_id, sku_id, title, url, brand, price, in_stock, rating, sold, images, options, variants, highlights, description, specifications, box_contents, categories, seller, ships_from, delivery, plus _metadata
curl -X POST "https://api.dataguru.cc/api/v1/lazada/products/details" \
-H "Authorization: Api-Key $DATAGURU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product_url": "https://www.lazada.sg/products/pdp-i3302822313.html"}'Response schema
Values are type placeholders from the API's published schema, not real data.
{
"product_id": "1234567890",
"sku_id": "1234567890",
"title": "string",
"url": "https://example.com/...",
"brand": "string",
"price": {
"current_price": 0.0,
"original_price": 0.0,
"formatted_price": "string",
"formatted_original_price": "string",
"discount": "string",
"currency": "USD"
},
"in_stock": false,
"rating": {
"average_rating": 0.0,
"review_count": 0,
"star_counts": [
0
]
},
"sold": "string",
"images": [
"string"
],
"options": {},
"variants": [
{
"sku_id": "1234567890",
"options": {},
"price": {
"current_price": 0.0,
"original_price": 0.0,
"formatted_price": "string",
"formatted_original_price": "string",
"discount": "string",
"currency": "USD"
},
"image": "string",
"in_stock": false,
"url": "https://example.com/..."
}
],
"highlights": [
"string"
],
"description": "string",
"specifications": {},
"box_contents": "string",
"categories": [
"string"
],
"seller": {
"name": "string",
"id": "1234567890",
"url": "https://example.com/...",
"positive_rating": "string",
"highlights": [
"string"
]
},
"ships_from": "string",
"delivery": {
"option": "string",
"estimate": "string"
},
"_metadata": {
"request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
"execution_time_ms": 842,
"endpoint": "Lazada Product Details",
"mode": "live",
"format": "json",
"timestamp": "2026-01-01T12:00:00+00:00"
}
}Search Lazada in Singapore, Malaysia, the Philippines, Thailand, Vietnam or Indonesia by keyword and get matching products with titles, prices, discounts, ratings, units sold, images and sellers.
- Endpoint:
POST https://api.dataguru.cc/api/v1/lazada/products/search - Price: $0.0032 per successful request ($3.20 per 1,000)
- Rate limit: 60 requests/minute
- Page and live playground: https://dataguru.cc/apis/lazada-product-search/
- Documentation: https://dataguru.cc/documentation/lazada-product-search/
| Parameter | Type | Required | Description |
|---|---|---|---|
limit |
integer | no | Maximum number of search results to return (up to 40). Default: 24. |
location |
string | no | Two-letter code of the Lazada country site to search (SG, MY, PH, TH, VN or ID; default SG). Prices are in that country's currency. Allowed: SG, MY, PH, TH, VN, ID. |
query |
string | yes | Search keywords, e.g. "xiaomi band" |
Response fields: query, location, total_results, returned_results, results, plus _metadata
curl -X POST "https://api.dataguru.cc/api/v1/lazada/products/search" \
-H "Authorization: Api-Key $DATAGURU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "xiaomi band"}'Response schema
Values are type placeholders from the API's published schema, not real data.
{
"query": "string",
"location": "string",
"total_results": 0,
"returned_results": 0,
"results": [
{
"product_id": "1234567890",
"sku_id": "1234567890",
"title": "string",
"url": "https://example.com/...",
"brand": "string",
"price": {
"current_price": 0.0,
"original_price": 0.0,
"formatted_price": "string",
"formatted_original_price": "string",
"discount": "string",
"currency": "USD"
},
"rating": 0.0,
"review_count": 0,
"sold": "string",
"image": "string",
"seller": {
"name": "string",
"id": "1234567890"
},
"ships_from": "string",
"in_stock": false,
"sponsored": false
}
],
"_metadata": {
"request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
"execution_time_ms": 842,
"endpoint": "Lazada Product Search",
"mode": "live",
"format": "json",
"timestamp": "2026-01-01T12:00:00+00:00"
}
}- Python SDK and examples for all DataGuru APIs: github.com/dataguru-cc/dataguru-python (docs)
- Every API, with a live playground: https://dataguru.cc/apis/
- Use DataGuru from Claude, ChatGPT or Cursor through the MCP server: https://dataguru.cc/mcp/
- Run thousands of inputs from a CSV at half price with batch jobs: https://dataguru.cc/documentation/
- Other scraper APIs: 1688, Airbnb, Alibaba, AliExpress, Amazon, arXiv, ASOS, Best Buy, Booking.com, Brave Search, CA State Bar, Capterra, CoinGecko, CoinMarketCap, Companies House, Costco, CourtListener, Crunchbase, Discord, DoorDash, eBay, Etsy, Expedia, Fiverr, Flipkart, Glassdoor, Google Flights, Google Patents, Google Scholar, Google Search, Grubhub, Home Depot, Instagram, Investing.com, Justia, Kayak, Kick, MarketWatch, Mercado Libre, Monster, OpenCorporates, OpenTable, PACER, PitchBook, PubMed, Reddit, Redfin, Resy, Rightmove, SEC EDGAR, Seeking Alpha, Shopee, Skyscanner, Target, TikTok, TradingView, TripAdvisor, Trulia, TrustRadius, Twitch, Uber Eats, Upwork, Vrbo, Walmart, Wayfair, X (Twitter), Yahoo Finance, YouTube, Zillow, ZoomInfo, Zoopla
The example code is MIT licensed. Use of the DataGuru API is subject to the terms of service.