Amazon
Amazon can be targeted using direct URL, by using the Amazon product ID, or Amazon search bar. You can also retrieve Amazon reviews, as well as questions and answers about a product
Target: amazon(mostly parseable)
Required parameters: url
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\": \"amazon\", \"url\": \"https://www.amazon.com/dp/B09H74FXNW\", \"parse\": \"True\"}"
import requests
task_params = {
'target': 'amazon',
'url': 'https://www.amazon.com/dp/B09H74FXNW',
'parse': True,
}
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' => 'amazon',
'url' => 'https://www.amazon.com/dp/B09H74FXNW',
'parse' => True
);
$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: amazon_product(parseable)
Required parameters: query
Target by supplying Amazon product ID (ASIN) using the query parameter.
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"amazon_product\", \"query\": \"B09H74FXNW\", \"parse\": \"True\"}"
import requests
task_params = {
'target': 'amazon_product',
'query': 'B09H74FXNW',
'parse': True,
}
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' => 'amazon_product',
'query' => 'B09H74FXNW',
'parse' => True
);
$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: amazon_pricing(parseable)
Required parameters: query
Retrieve Amazon pricing results by supplying Amazon product ID (ASIN).
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"amazon_pricing\", \"query\": \"B09H74FXNW\", \"parse\": \"True\"}"
import requests
task_params = {
'target': 'amazon_pricing',
'query': 'B09H74FXNW',
'parse': True,
}
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' => 'amazon_pricing',
'query' => 'B09H74FXNW',
'parse' => True
);
$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: amazon_reviews(parseable)
Required parameters: query
Retrieve Amazon reviews by supplying Amazon product ID (ASIN).
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"amazon_reviews\", \"query\": \"B09H74FXNW\", \"parse\": \"True\"}"
import requests
task_params = {
'target': 'amazon_reviews',
'query': 'B09H74FXNW',
'parse': True,
}
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' => 'amazon_reviews',
'query' => 'B09H74FXNW',
'parse' => True
);
$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: amazon_questions(parseable)
Required parameters: query
Retrieve Amazon questions and answers by supplying Amazon product ID (ASIN).
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"amazon_questions\", \"query\": \"B09H74FXNW\", \"parse\": \"True\"}"
import requests
task_params = {
'target': 'amazon_questions',
'query': 'B09H74FXNW',
'parse': True,
}
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' => 'amazon_questions',
'query' => 'B09H74FXNW',
'parse' => True
);
$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: amazon_search(parseable)
Required parameters: query
Retrieve Amazon listings by supplying your query to the Amazon search bar.
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"amazon_search\", \"query\": \"B09H74FXNW\", \"parse\": \"True\"}"
import requests
task_params = {
'target': 'amazon_search',
'query': 'B09H74FXNW',
'parse': True,
}
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' => 'amazon_search',
'query' => 'B09H74FXNW',
'parse' => True
);
$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);
?>
Updated 2 months ago