TikTok Shop Product Detail
tiktok.shop.product.get
Get a US TikTok Shop product from its link: title, price, every variant with its own price, and stock quantities.
At a glance
- Endpoint ID
tiktok.shop.product.get- Price
- 0.75 credits per call; failed calls are free
- Runs for up to
- 45 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "tiktok.shop.product.get", "input": { "url": "https://www.tiktok.com/shop/pdp/1729587769570529799" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "tiktok.shop.product.get", "input": { "url": "https://www.tiktok.com/shop/pdp/1729587769570529799" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "tiktok.shop.product.get", "input": { "url": "https://www.tiktok.com/shop/pdp/1729587769570529799" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
url |
string | yes | The product's TikTok Shop link. | https://www.tiktok.com/shop/pdp/172958776957052… |
region |
string | no | The Shop region. US is supported. | US |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "product_id": "1729587769570529799", "data": { "product_info": { "title": "3 Bottles of Goli Ashwagandha & Vitamin D Gummy - Mixed Berry, KSM-66, Vegan, Plant Based, Non-GMO, Gluten & Gelatin Free", "sold_count": "865804", "price": { "currency": "USD", "currency_symbol": "$", "discount": "-21%", "is_interval_price": false, "min_sku_original_price": "74.10", "min_sku_price": "58.47", "original_price": "$74.10", "real_price": "$58.47", "symbol_position": 1 }, "review": { "review_count": "71755", "product_rating": 4.7, "product_rating_str": "4.7", "review_count_str": "71,755" }, "skus": [ { "sku_id": "1729587788239049223", "stock": 241260, "price": { "currency_name": "USD", "currency_symbol": "$", "discount_decimal": "0.21", "discount_format": "21%", "origin_price_decimal": "74.1", "origin_price_format": "74.10", "price_type": 0, "sale_price_decimal": "58.47", "sale_price_format": "58.47", "show_currency_space": false, "symbol_position": 1 }, "sku_sale_props": [ { "prop_id": "6978684608401540870", "prop_name": "Specifications", "prop_value": "Default", "prop_value_id": "6932748025291032321" } ] } ], "specifications": [ { "name": "Brand", "value": "Goli" }, { "name": "Container type", "value": "Bottle" } ] }, "shop_info": { "followers_count": "601231", "global_sold_count": "5792570", "on_sell_product_count": 52, "region": "US", "shop_link": "https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079", "shop_name": "Goli Nutrition", "shop_rating": "4.6" }, "categories": [ { "category_name": "Health" }, { "category_name": "Nutrition & Wellness" } ] }}
Fields
| Field | Type | Example |
|---|---|---|
data |
object | 3 fields |
data.product_info.title |
string | 3 Bottles of Goli Ashwagandha & Vitamin D Gummy - Mixed Berry, … |
data.product_info.sold_count |
string | 865804 |
data.shop_info.shop_name |
string | Goli Nutrition |
data.categories |
array | 4 records |
data.categories[].category_name |
string | Health |
data.product_info |
object | 6 fields |
data.product_info.price |
object | 9 fields |
data.product_info.review |
object | 4 fields |
data.product_info.skus |
array | 1 records |
data.product_info.specifications |
array | 8 records |
data.shop_info |
object | 7 fields |
data.shop_info.followers_count |
string | 601231 |
data.shop_info.global_sold_count |
string | 5792570 |
data.shop_info.on_sell_product_count |
integer | 52 |
data.shop_info.region |
string | US |
data.shop_info.shop_link |
string | https://shop.tiktok.com/us/store/goli-nutrition/749579420305683… |
data.shop_info.shop_rating |
string | 4.6 |
product_id |
string | 1729587769570529799 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other TikTok endpoints
tiktok.collection.videosCollection videostiktok.comment.repliesComment repliestiktok.feed.trendingTrending feedtiktok.hashtag.postsHashtag videostiktok.live.getLive room detailtiktok.music.infoSong detailtiktok.music.postsSong videostiktok.post.getVideo detailtiktok.profile.getUser profile detailtiktok.search.suggestionsSuggestions searchtiktok.shop.productsShop store productstiktok.shop.reviewsShop product reviewstiktok.shop.searchShop product searchtiktok.user.followersUser followerstiktok.user.followingUser followingtiktok.user.liveUser live statustiktok.user.videosUser videostiktok.video.commentsVideo commentstiktok.video.transcriptVideo transcript
Something missing or unclear? Ask the team that builds the TikTok endpoints.