TikTok trending hashtags API
TikTok’s own trending-hashtag board for a market: rank, posts, views and a popularity curve per hashtag.
GET /v1/tiktok/trending/hashtags1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/trending/hashtags?country=US&period=7",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "items": [ { "hashtagID": "1606902407252998", "hashtagName": "husshusshuss", "rankIndex": "1", "publishCnt": "28522", "vv": "71408936", "popularityCurve": [ { "timestamp": "1794873600", "value": 0 }, { "timestamp": "1794960000", "value": 74.92247056602291 }, "… 5 more" ], "industryIDs": [ "23000000000" ], "topCreators": [ { "aioCreatorID": "", "avatarURL": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/3a98af08bfe9e568fcfca045442a3fb8~tplv-tiktokx-cropcenter:300:3…", "countryCode": "US", "creatorRank": "1", "followedCnt": "20351", "handleName": "idontknowyoubye13", "nickname": " ", "ttUID": "7667456392550745102" }, { "aioCreatorID": "", "avatarURL": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/135c118b73641b8776bad31660af05d0~tplv-tiktokx-cropcenter:300:3…", "countryCode": "US", "creatorRank": "2", "followedCnt": "91028", "handleName": "antjustcantt", "nickname": "Ant Just Cant", "ttUID": "7591953259041358861" }, "… 1 more" ] }, { "hashtagID": "1567266", "hashtagName": "huss", "rankIndex": "2", "publishCnt": "27755", "vv": "84097377", "popularityCurve": [ { "timestamp": "1794873600", "value": 0 }, { "timestamp": "1794960000", "value": 71.83922535974533 }, "… 5 more" ], "industryIDs": [ "25000000000", "23000000000" ], "topCreators": [ { "aioCreatorID": "7456916188050292778", "avatarURL": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/bdfcc21b8eaba8d3128fa9626400414f~tplv-tiktokx-cropcenter:300:3…", "countryCode": "US", "creatorRank": "1", "followedCnt": "19237076", "handleName": "dudeperfect", "nickname": "Dude Perfect", "ttUID": "6716495811822224389" }, { "aioCreatorID": "", "avatarURL": "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/2d63e9b381aacc3024fbba284f4b6678~tplv-tiktokx-cropcenter:300:3…", "countryCode": "US", "creatorRank": "2", "followedCnt": "15229", "handleName": "gillavr12", "nickname": "gillavr12", "ttUID": "7709369785034294286" }, "… 1 more" ] } ], "pagination": { "page": 1, "hasMore": false, "totalCount": 3 }}Parameters
| Name | Type | Description |
|---|---|---|
countryquery | string | Market, 2-letter code (default US). |
periodquery | "7" | "30" | "120" | Days: 7 (default), 30 or 120. One of 7, 30, 120. |
industryquery | string | Creative Center industry id. |
pagequery | integer | Page, from 1. |
Response fields
200 with a TikTokPopularHashtagsResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
items | object[] | |
pagination | object |
Status codes
| Status | Meaning |
|---|---|
200 | The hashtag board. |
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
Questions
Which markets?
Every market TikTok’s Creative Center lists, by 2-letter code.
TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.