GET /v1/tiktok_shop/product/videos
TikTok Shop product videos API: videos that sell a product by ID
Returns the TikTok videos that sell one product, either linked on the video or listed on the product page, each with its creator, plays, likes, post time and the paid or affiliate label TikTok shows. Send product_id and sort by plays or recent. It reads our stored TikTok Shop data and never crawls.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl
curl 'https://api.virev.ai/v1/tiktok_shop/product/videos?product_id=1730895301663428994&page_size=2' \
-H "Authorization: Bearer $VIREV_API_KEY"python
import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/tiktok_shop/product/videos",
params={
"product_id": "1730895301663428994",
"page_size": "2",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
product_id required | query | string | TikTok Shop product id, as a string. |
sort | query | plays | recent | plays (default) or recent by post time. |
cursor | query | string | next_cursor of the previous page. A cursor only continues the query that issued it. |
page_size | query | integer | Rows per page. |
Example response
The example response of the API reference.
json
{
"data": {
"items": [
{
"video_id": "7531751611383811383",
"url": null,
"creator": {
"uid": "7434430695249151019",
"unique_id": null,
"sec_uid": null,
"nickname": "queensecret227",
"followers": null,
"avatar_url": null,
"profile_url": null
},
"product_ids": [
"1730895301663428994"
],
"caption": null,
"cover_url": null,
"posted_at": "2025-07-27T13:24:32Z",
"plays": 3321789,
"likes": 25601,
"comments": null,
"shares": null,
"duration": null,
"ad_label": "Creator earns commission",
"via_anchor": false,
"via_product_page": true,
"first_seen_at": "2026-10-09T17:55:00.207266Z",
"last_seen_at": "2026-10-09T17:55:00.207266Z"
},
{
"video_id": "7536778127427505421",
"url": null,
"creator": {
"uid": "7290771509621261355",
"unique_id": null,
"sec_uid": null,
"nickname": "bbhgyey8qw",
"followers": null,
"avatar_url": null,
"profile_url": null
},
"product_ids": [
"1730895301663428994"
],
"caption": null,
"cover_url": null,
"posted_at": "2025-08-10T02:28:49Z",
"plays": 1146742,
"likes": 16097,
"comments": null,
"shares": null,
"duration": null,
"ad_label": "Creator earns commission",
"via_anchor": false,
"via_product_page": true,
"first_seen_at": "2026-10-09T17:55:00.207266Z",
"last_seen_at": "2026-10-09T17:55:00.207266Z"
}
],
"next_cursor": "WyJmNWRiNjMwZDk5ZDFhZTIzIixbMTE0Njc0Mi4wLCI3NTM2Nzc4MTI3NDI3NTA1NDIxIl1d"
},
"meta": {
"cost": "$0.0005",
"balance": "$9.9985",
"request_id": "req_e7e79d3533e4236c45c93e1dbf04a8d8"
}
}How it works
Videos that sell the product: anchored on the video or listed on the product page. Each row names its creator and the paid or affiliate label TikTok shows.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | No stored TikTok Shop product has this id. You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |