Aliexpress

Aliexpress can be targeted either using direct URL or by using the query parameter and providing product ID to the Aliexpress search bar.

Target: aliexpress(not parseable)
Required parameters: url
Optional parameters: device_type

Target by supplying direct URL link.

curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"aliexpress\", \"url\": \"https://www.aliexpress.com/wholesale?&SearchText=louis+v\", \"parse\": \"False\"}"
import requests

task_params = {
    'target': 'aliexpress',
    'url': 'https://www.aliexpress.com/wholesale?&SearchText=louis+v',
    'parse': False,
}

username = 'SPusername'
password = 'SPpassword'

response = requests.post(
    'https://scrape.smartproxy.com/v1/tasks',
    json = task_params,
    auth = (username, password)
)

print(response.text)
<?php

$params = array(
    'target' => 'aliexpress',
    'url' => 'https://www.aliexpress.com/wholesale?&SearchText=louis+v',
    'parse' => False
);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://scrape.smartproxy.com/v1/tasks');
curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);

$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);
?>

Target: aliexpress_product(not parseable)
Required parameters: query
Optional parameters: device_type

Target by supplying Aliexpress product ID using the query parameter.

curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"aliexpress_product\", \"query\": \"1005002803336439\", \"parse\": \"False\"}"
import requests

task_params = {
    'target': 'aliexpress_product',
    'query': '1005002803336439',
    'parse': False,
}

username = 'SPusername'
password = 'SPpassword'

response = requests.post(
    'https://scrape.smartproxy.com/v1/tasks',
    json = task_params,
    auth = (username, password)
)

print(response.text)
<?php

$params = array(
    'target' => 'aliexpress_product',
    'query' => '1005002803336439',
    'parse' => False
);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://scrape.smartproxy.com/v1/tasks');
curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);

$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);
?>