TikTok place videos API
Videos tagged at a TikTok place (a venue, city or landmark), with the place’s name, address and counts.
GET /v1/tiktok/places/{id}/videos1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/places/22535796704527895/videos",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "poiInfo": { "poi": { "address": "800 W Olympic Blvd, Los Angeles, CA 90015, United States", "allLevelGeoPoiInfo": {}, "category": "Outdoors and Attractions", "city": "East Los Angeles", "cityCode": "116023605", "country": "", "countryCode": "6252001", "fatherPoiId": "22535796484723736", "fatherPoiName": "East Los Angeles", "id": "22535796704527895", "…": "16 more fields" }, "stats": { "videoCount": 14552 } }, "itemList": [ { "id": "7556753466509626679", "desc": "@KATSEYE performing Gabriela at the Grammy Museum #katseye ", "createTime": 1759443808, "author": { "id": "6829084869990532102", "uniqueId": "h0metownhero", "nickname": "hero", "secUid": "MS4wLjABAAAAnVbT0lJuLHrFiw76gu3LstYauhFn8R6V_3FUle0aaQP5lA9WW8wfc1nEn3PgBWTJ", "signature": "Concert videographer/ Music Enthusiast", "verified": false, "privateAccount": false, "avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/c48b48e38011a4a…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/c48b48e38011a4a…", "avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/c48b48e38011a4a…", "…": "11 more fields" }, "authorStats": { "followerCount": 42700, "followingCount": 2814, "heartCount": 16000000, "heart": 16000000, "videoCount": 571, "diggCount": 159400, "friendCount": 0 }, "stats": { "playCount": 14700000, "diggCount": 2300000, "commentCount": 3627, "shareCount": 48900, "collectCount": 169000 }, "statsV2": { "collectCount": "169013", "commentCount": "3627", "diggCount": "2300000", "playCount": "14700000", "repostCount": "0", "shareCount": "48900" }, "video": { "duration": 85, "cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/owI9QADAR913AJDoN…", "playAddr": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/tos-useast5-ve-0068c004…", "PlayAddrStruct": { "…": "8 fields" }, "VQScore": "66.1", "bitrate": 1375924, "bitrateInfo": [ "…" ], "claInfo": { "…": "3 fields" }, "codecType": "h264", "definition": "540p", "…": "14 more fields" }, "music": { "id": "7515269970908252177", "title": "Gabriela", "authorName": "KATSEYE", "original": false, "duration": 60, "playUrl": "https://sf19.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oIVprwgVfCQ2rN6zdDZoctBM5EBQ…", "coverLarge": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmH…", "album": "Gabriela", "coverMedium": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmH…", "coverThumb": "https://p16-common.tiktokcdn-us.com/tos-alisg-v-2774/okAIAI4ANefICVeepAQpCe8PAmH…", "…": "6 more fields" }, "challenges": [ { "…": "9 fields" } ], "…": "30 more fields" }, "… 1 more" ], "cursor": "276527", "hasMore": true}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | Place id, or its tiktok.com/place/… URL. Example: 22535796704527895. |
cursorquery | string | The previous page’s cursor, for the next page. Omit for the first. |
Response fields
200 with a TikTokPlaceVideosResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
poiInfo | object | |
itemList | TikTokItem[] | |
cursor | string | |
hasMore | boolean |
Status codes
| Status | Meaning |
|---|---|
200 | A page of the place’s videos. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.