Lazada
Learn how to start scraping Lazada.
With Web Scraper API, you can scrape various types of Lazada pages; below is an overview of all supported scrapers and their respective source values. The response returns the page HTML in content, in the standard response structure described in Realtime and Push-Pull.
For some targets our system forces JavaScript rendering even if you do not set render; those requests count as rendered traffic. The list of force-rendered targets and how to switch rendering off are in Forcing rendering on specific pages.
lazada_search
Search page for a search term of your choice.
lazada_product
Product page of a product ID of your choice.
Any other Lazada page can be scraped by passing its url alone, no source needed.
Search
Request samples
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "lazada_search",
"query": "dress"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'lazada_search',
'query': 'dress'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())Request parameter values
source
Sets the scraper.
lazada_search
query
The keyword or phrase to search for products.
-
start_page
Starting page number.
1
- mandatory parameter
Product
Request samples
Request parameter values
source
Sets the scraper.
lazada_product
product_id
The numeric product ID from the product page URL, the digits after -i, e.g. lazada.com.ph/products/lenovo-ideapad-slim-3-i15527175231.html.
-
- mandatory parameter
Localization and Filtering
domain
lazada_search, lazada_product
Lazada regional site. Available values: com.ph, sg, com.my, co.th, vn, co.id. Product IDs belong to one site, so use the domain of the site the ID comes from.
com.ph
Last updated
Was this helpful?

