Aliexpress
Learn how to start scraping Aliexpress.
With Web Scraper API, you can scrape various types of AliExpress 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.
aliexpress_search
Search page for a search term of your choice.
aliexpress_product
Product page of a product ID of your choice.
Any other AliExpress 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": "aliexpress_search",
"query": "case"
}' import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'aliexpress_search',
'query': 'case'
}
# 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.
aliexpress_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.
aliexpress_product
product_id
16-digit AliExpress product ID, the number in the product URL (…/item/<product_id>.html).
-
render
Enables JavaScript rendering when set to html. Without rendering, AliExpress returns only the page skeleton and metadata instead of the product details.
-
- mandatory parameter
Localization and Filtering
domain
aliexpress_search, aliexpress_product
Selects the AliExpress site. Available values: com (aliexpress.com), us (aliexpress.us).
com
On search pages AliExpress also adapts language and currency to the proxy location set with geo_location, for example Germany returns a German-language page with prices in €. For accepted values, see Proxy location.
Last updated
Was this helpful?