Skip to main content
Core and Advanced plans are no longer available for purchase. Please consider migrating to the all-in-one Web Scraper API; check out the guide here.
The tiktok_shop_search template is built to obtain search result pages from TikTok Shop.
  • This target is available with Web API Advanced plans.
  • Real-time and Asynchronous integration methods are available for this template.
  • Batch requests are also supported.

Input Parameters

Request parameters available for the TikTok Shop Search template:
ParameterTypeRequiredDescription
targetstringTarget type must be set to tiktok_shop_search.
querystringSearch query.
countrystringSet this parameter to gb when you want to retrieve results specific to the United Kingdom.
headlessstringhtml value enables JavaScript rendering. Read more.
png value enables screenshot response. Read more.
device_typestringSpecify device type and browser. Read more.
xhrbooleanSet to true to retrieve a list of XHR and fetch requests. Read more.
Default value is false.
markdownbooleanSet to true to receive a Markdown response. Read more.
Default value is false.

Request Examples

# update 'TOKEN VALUE' with your authorization token
curl --request 'POST' \
        --url 'https://scraper-api.decodo.com/v2/scrape' \
        --header 'Accept: application/json' \
        --header 'Authorization: Basic TOKEN VALUE' \
        --header 'Content-Type: application/json' \
        --data '
    {
      "target": "tiktok_shop_search", 
    	"query": "hoodie",
    	"headless": "html"
    }
'

Output

Response Example

import requests
  
url = "https://scraper-api.decodo.com/v2/scrape"
  
payload = {
      "target": "tiktok_shop_search",
      "query": "hoodie",
      "headless": "html"
}
  
headers = {
    "accept": "application/json",
    "content-type": "application/json",
    "authorization": "Basic TOKEN VALUE" # update with your authorization token
}
  
response = requests.post(url, json=payload, headers=headers)
  
print(response.text)

Support

Need help or just want to say hello? Our support is available 24/7.
You can also reach us anytime via email at support@decodo.com.

Feedback

Can’t find what you’re looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.