eBay Product API (Async)
The eBay Product Page API endpoint will retrieve product data from an eBay product page (/itm/) and transform it into usable JSON.
Single Product Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"productId": "PRODUCTID",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/ebay/product"import requests
url = "https://async.scraperapi.com/structured/ebay/product"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"productId": "PRODUCTID",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)Multiple Products Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"productIds": ["PRODUCTID1", "PRODUCTID2"],
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/ebay/product"import requests
url = "https://async.scraperapi.com/structured/ebay/product"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"productIds": ["PRODUCTID1", "PRODUCTID2"],
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)Supported Parameters
API_KEY (required)
Your API Key.
PRODUCT_ID (required)
ebay product ID. 12 digits. Example: 166619046796
TLD
Top-level Ebay domain to scrape. This is an optional argument and defaults to “com” (ebay.com). Valid values include:
com (ebay.com)
co.uk (ebay.co.uk)
com.au (ebay.com.au)
de (ebay.de)
ca (ebay.ca)
fr (ebay.fr)
it (ebay.it)
es (ebay.es)
at (ebay.at)
ch (ebay.ch)
com.sg (ebay.com.sg)
com.my (ebay.com.my)
ph (ebay.ph)
ie (ebay.ie)
pl (ebay.pl)
nl (ebay.nl)
COUNTRY_CODE
country_code influences the language and the currency of the page. The TLD should be set to ‘com’ if you are using languages that are not used by the TLDs listed above.
OUTPUT_FORMAT
For structured data methods we offer CSV and JSON output. JSON is default if parameter is not added. Options:
csv
json (default)
Sample Response
Single Product Request
Multiple Products Request
After the job(s) finish, you will find the result under the response key in the response JSON object. The structure is the same as in the corresponding SYNC data endpoint.
Last updated

