Sources › Social media › TikTok › Get Hashtag Posts
TikTok Hashtag Posts API
Video yang diposting di bawah sebuah hashtag TikTok.
Request
https://api.zapi.ink/v1/social-media:tiktok-scraper/hashtag-posts/:nameSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 15 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| name | string | path | Yes | Hashtag name (with or without #) or a full TikTok tag URL Example: belajarditiktok |
| page | number | query | No | Page number. Default 1 Example: 1 |
| count | number | query | No | Videos per page. Default 20, max 20 Example: 20 |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:tiktok-scraper/hashtag-posts/belajarditiktok?page=1&count=20" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:tiktok-scraper/hashtag-posts/belajarditiktok?page=1&count=20", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/social-media:tiktok-scraper/hashtag-posts/belajarditiktok", params={"page":"1","count":"20"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:tiktok-scraper", "data": { "page": 1, "count": 18, "videos": [ { "url": "https://www.tiktok.com/@janeelisabet8/video/7670379271004654866", "isAd": false, "play": "https://v45.tiktokcdn-us.com/08582cdbdb93b94fd0cdf55e75f02dc5/6a74c2ad/video/tos/alisg/tos-alisg-pve-0037c001/o8TyCNwEi9BAOuOiVvAc91qR1BGAICQ1IFWkfG/?a=1233&bti=NXYpNDs8QGo6OjZAOm0…", "size": 1932747, "cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/oYEjeDcDqBUqIANFEwEqFAQMEBalfcVg4RQrD7~tplv-tiktokx-dmt-logom:tos-alisg-i-0068/oEePBOfDcIsUR0qE7UPgDcrqlCqAMElAFAAXQg.imag…", "isTop": false, "title": "Kalimat singkat bahasa inggris #otodidakbahasainggris #belajarditiktok #bukubahasainggrispemula #bukubahasainggrispemula #lancarbahasainggris ", "author": { "id": "6865098292344685569", "avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/7d69222d003afbafbdd7cabad68a7afd~tplv-tiktokx-cropcenter:300:300.jpeg?dr=9638&refresh_token=239318e3&x-expires=178610040…", "nickname": "Jane Elisabet", "username": "janeelisabet8" }, "hdSize": 0, "images": [], "region": "ID", "wmSize": 4283242, "wmplay": "https://v45.tiktokcdn-us.com/86ca29563a597c3b0669b235ab65f6d2/6a74c2ad/video/tos/alisg/tos-alisg-pve-0037c001/ocAFACa1ui9QEIRERCyfAiqOZBnXGVI1kUGNcw/?a=1233&bti=NXYpNDs8QGo6OjZAOm0…", "musicId": "7670379319407823617", "videoId": "7670379271004654866", "duration": 35, "diggCount": 1297, "playCount": 13327, "createTime": 1785899352, "musicTitle": "original sound - janeelisabet8", "shareCount": 60, "isSlideshow": false, "musicAuthor": "Jane Elisabet", "originCover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/oUrwckq9AGRCV1u1ItCAAGNuViIpIBiyRlOOfB~tplv-tiktokx-shrink-aq:360:360:q75.webp?dr=11731&refresh_token=1ad088f6&x-expires=1…", "collectCount": 433, "commentCount": 14, "musicPlayUrl": "https://sf16.tiktokcdn-us.com/obj/tiktok-obj/7670379324515584788.mp3", "createTimeIso": "2026-08-05T03:09:12.000Z", "downloadCount": 70, "musicDuration": 35, "musicOriginal": true }, { "url": "https://www.tiktok.com/@toko.hopeng/video/7670525975750364436", "isAd": false, "play": "https://v45.tiktokcdn-us.com/fa3bbfdf2d25a9404c476fc9aeffbafb/6a74c2e3/video/tos/alisg/tos-alisg-pve-0037c001/o0EABADPtAQizQQEaQMAnBlzLXiI9uGYgh3Yt/?a=1233&bti=NXYpNDs8QGo6OjZAOm00…", "size": 6562440, "cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/oAEA1IYzQYBtMVlXjlE4BIaALwz9wAQisginP~tplv-tiktokx-origin.image?dr=8593&refresh_token=e9aa944f&x-expires=1786100400&x-sign…", "isTop": false, "title": "Hari pertama belajar Mandarin bareng hopeng.. Gimana pengyoumen? Bisa dimengerti nda nihh kalo @Sianne AW jadi laoshi? #tokohopeng #learnchinese #belajarmandarin #belajarbareng #…", "author": { "id": "7597683177062810644", "avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/a5d80159de42e47f448cba6bb22d1bdd~tplv-tiktokx-cropcenter:300:300.jpeg?dr=9638&refresh_token=5ef22d51&x-expires=178610040…", "nickname": "Toko Hopeng", "username": "toko.hopeng" }, "hdSize": 0, "images": [], "region": "ID", "wmSize": 13666432, "wmplay": "https://v45.tiktokcdn-us.com/7703f25c711a8216bb7ec218f37cd735/6a74c2e3/video/tos/alisg/tos-alisg-pve-0037c001/og2AgEnzPJQNAQiLi9qIlzYMYEBaBXtuxQmAC/?a=1233&bti=NXYpNDs8QGo6OjZAOm00…", "musicId": "7670526060831869703", "videoId": "7670525975750364436", "duration": 89, "diggCount": 211, "playCount": 12594, "createTime": 1785933509, "musicTitle": "original sound - toko.hopeng", "shareCount": 23, "isSlideshow": false, "musicAuthor": "Toko Hopeng", "originCover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/ooP0gitIBAAziiQlAgEsxaYLYzBnI54X9BQM5~tplv-tiktokx-shrink-aq:360:360:q75.webp?dr=11731&refresh_token=fc096fe4&x-expires=17…", "collectCount": 30, "commentCount": 17, "musicPlayUrl": "https://sf16.tiktokcdn-us.com/obj/tiktok-obj/7670526066620500753.mp3", "createTimeIso": "2026-08-05T12:38:29.000Z", "downloadCount": 3, "musicDuration": 89, "musicOriginal": true }, { "url": "https://www.tiktok.com/@kamutaugak11/video/7670436653189680400", "isAd": false, "play": "https://v45.tiktokcdn-us.com/0eed793e428d326a845cd51d85367b76/6a74c2af/video/tos/alisg/tos-alisg-pve-0037/owAAQZzysr1EfAJB91BWuIHFuO3Ki7iwaBuBwT/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQ…", "size": 1488627, "cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/oseyXKgcfAEcqvBqADVqN9CD2EBUFCA19tAIp4~tplv-tiktokx-origin.image?dr=8593&refresh_token=09ae582a&x-expires=1786100400&x-sig…", "isTop": false, "title": "Kamu tau nggak kalau satu buah nanas ternyata terbentuk dari banyak buah nanas? Setiap pola seperti “mata” di permukaannya berasal dari satu bunga yang berbeda. Yuk, tonton sampai …", "author": { "id": "7658238549774468117", "avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/18143bf7a2e010d06eb6a5bcd9c230e8~tplv-tiktokx-cropcenter:300:300.jpeg?dr=9638&refresh_token=a9d58b46&x-expires=178610040…", "nickname": "KamuTauGak?", "username": "kamutaugak11" }, "hdSize": 0, "images": [], "region": "ID", "wmSize": 2814906, "wmplay": "https://v45.tiktokcdn-us.com/312776d84e145ff54a65e0ca2f03f7ff/6a74c2af/video/tos/alisg/tos-alisg-pve-0037/oQBryZf7QuzW1iCBMO9AAHuwiOEA3ITwKuxrsX/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQ…", "musicId": "7559095724965922832", "videoId": "7670436653189680400", "duration": 37, "diggCount": 23, "playCount": 728, "createTime": 1785929700, "musicTitle": "KAWAII.", "shareCount": 2, "isSlideshow": false, "musicAuthor": "Mofeny", "originCover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/o8h7IuiB5rfAu9LA31WyBzwIZViaTKAOuHAy1w~tplv-tiktokx-shrink-aq:360:360:q75.webp?dr=11731&refresh_token=09b99507&x-expires=1…", "collectCount": 5, "commentCount": 2, "musicPlayUrl": "https://sf16.tiktokcdn-us.com/obj/tos-alisg-ve-2774/oAFzmeMmnvT8dLlCOQlcATfQAIeXg1jMGxAKeR", "createTimeIso": "2026-08-05T11:35:00.000Z", "downloadCount": 0, "musicDuration": 193, "musicOriginal": false } ], "hasMore": true, "hashtag": "belajarditiktok", "nextPage": 2, "hashtagId": "1591477531538433" }, "timestamp": "2026-06-13T03:11:01Z" }
Frequently asked questions
How do I call the TikTok Hashtag Posts API?
Send a GET request to https://api.zapi.ink/v1/social-media:tiktok-scraper/hashtag-posts/belajarditiktok with your Zapi key in the x-api-key header. Parameters — required: name; optional: page, count. The response is JSON in the { project, data, timestamp } envelope.
What does the TikTok Hashtag Posts API return?
Video yang diposting di bawah sebuah hashtag TikTok. The example response has the fields page, count, videos, hasMore, hashtag, nextPage, hashtagId. Each item in videos has fields such as url, isAd, play, size, cover, isTop, title, author.
Is the TikTok Hashtag Posts API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the TikTok Hashtag Posts API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "tiktok-scraper" and endpoint "hashtag-posts".
What other TikTok API endpoints are there?
It has 21 endpoints. Besides Get Hashtag Posts: Get User Profile, Get User Posts, Get Detail Post, Get Post Comments, Get Hashtag Info, Search Videos, and 14 more.