AliExpress
There are two approaches to retrieving data from AliExpress using our Scraper API. You can give us a full URL or pass parameters via the specifically built data source - Product Page, and we will form the URL on our end.

Overview

Below is a quick overview of all the available data source values we support with AliExpress.
Source
Description
Structured data
aliexpress
Submit any AliExpress URL you like.
No.
aliexpress_product
AliExpress product pages.
No.
You can jump to your preferred AliExpress page type by selecting its name on the right hand side menu. Each of the page contains the parameter table as well as code examples to help you get started with your query.

URL

The aliexpress source is designed to retrieve content from various AliExpress URLs. It means that instead of sending multiple parameters, you can provide us with the direct URL to required AliExpress page. We do not strip any parameters or alter your URLs in any way.

Query parameters

Parameter
Description
Default Value
source
Data source. More info.
aliexpress
url
Direct URL (link) to AliExpress page
-
user_agent_type
Device type and browser. The full list can be found here.
desktop
callback_url
URL to your callback endpoint. More info.
-
- required parameter

Code examples

In this example, we make a request to retrieve a result for a URL.
JSON
cURL
Python
PHP
HTTP
{
"source": "aliexpress",
"url": "https://www.aliexpress.com/item/32980572701.html"
}
curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
-d '{"source": "aliexpress", "url": "https://www.aliexpress.com/item/32980572701.html"}'
import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'aliexpress',
'url': 'https://www.aliexpress.com/item/32980572701.html'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('user', 'pass1'),
json=payload,
)
# Instead of response with job status and results url, this will return the
# JSON response with results.
pprint(response.json())
<?php
$params = array(
'source' => 'aliexpress',
'url' => 'https://www.aliexpress.com/item/32980572701.html'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://data.oxylabs.io/v1/queries");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, "user" . ":" . "pass1");
$headers = array();
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
echo $result;
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
?>p
# You may need to encode the URL if it contains `&` and `=` characters. It this example it's not necessary.
https://realtime.oxylabs.io/v1/queries?source=aliexpress&url=https://www.aliexpress.com/item/32980572701.html&access_token=12345abcde
The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.

Product page

The aliexpress_product data source is designed to retrieve the AliExpress product page of the product ID of your choice.

Query parameters

Parameter
Description
Default Value
source
Data source. More info.
aliexpress_product
query
AliExpress product code
-
user_agent_type
Device type and browser. The full list can be found here.
desktop
callback_url
URL to your callback endpoint. More info.
-
- required parameter

Code examples

In the code example below, we make a request to aliexpress.com to retrieve the product page of product ID 32909482768.
JSON
cURL
Python
PHP
HTTP
{
"source": "aliexpress_product",
"query": "1234567"
}
curl --user user:pass1 'https://realtime.oxylabs.io/v1/queries' -H "Content-Type: application/json"
-d '{"source": "aliexpress_product", "query": "1234567", "callback_url": "https://your.callback.url"}'
import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'aliexpress_product',
'query': '1234567'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('user', 'pass1'),
json=payload,
)
# Print prettified response to stdout.
pprint(response.json())
<?php
$params = array(
'source' => 'aliexpress_product',
'query' => '1234567'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://realtime.oxylabs.io/v1/queries");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, "user" . ":" . "pass1");
$headers = array();
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
echo $result;
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
?>
https://realtime.oxylabs.io/v1/queries?source=aliexpress_product&query=1234567&access_token=12345abcde
The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.
Copy link
On this page
Overview
URL
Product page