curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/taobao-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/taobao-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/taobao-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape Taobao / Tmall keyword or category listings
Returns the products Taobao lists for a keyword q (or a category) as JSON: products (position, itemId, title, url, image, price in yuan with currency CNY, priceLabel (Taobao’s price tag, e.g. 优惠价), localPrices (the same price in the storefront’s currency, HKD and TWD), shopId, shopName, descriptionMatchScore, freeShipping, categoryId, rootCategoryId, sellingPoints, reviewHighlights), totalResults (how many listings Taobao reports), and filterOptions (brand and property facets; pass an option’s filter value back as filter). Sort by relevance, sales or price and filter by a yuan price range (products whose listed price falls outside it are left out and counted in droppedOutsidePriceRange). Taobao shows signed-out visitors only the first 20 products of a list, so one call returns up to 20 (narrow with price ranges and filters to reach more). When Taobao has no list for the keyword, the call answers with the list of the closest keyword Taobao itself suggests and says so: keywordSubstituted true and matchedKeyword. Text comes in Chinese as sellers write it. Companion to /marketplace/taobao-product. One unit per call.
curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/taobao-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/taobao-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/taobao-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
Keyword, in Chinese or English, e.g. '手机壳', '连衣裙', 'phone case' (Chinese keywords match far more listings). A Taobao search or list link works too. Give q or category.
A Taobao category id, e.g. '50005050', or a category list link (https://www.taobao.com/list/category/50005050.htm). Returns the category's best sellers; sort and filters apply to keyword searches only.
Order: relevance, sales, price_asc, price_desc (price in yuan).
Only products at or above this many yuan (CNY).
Only products at or below this many yuan (CNY).
One brand or property filter, as the filter value of an option in filterOptions of an earlier answer, e.g. '20000-88634403'.
Response
JSON with a products array (up to 20).

