Sources › Social media › TikTok › Get User Posts
TikTok User Posts API
Videos posted by a TikTok account, paginated. Each video has its URL, caption, cover, play links, music, author, and play, like, comment, share and save counts.
Request
https://api.zapi.ink/v1/social-media:tiktok-scraper/posts/:usernameSend 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 30 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| username | string | path | Yes | Username (with/without @) atau full TikTok URL Example: tiktok |
| page | number | query | No | Nomor halaman. Default 1 Example: 1 |
| count | number | query | No | Jumlah post per page. Default 30, max 35 Example: 30 |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:tiktok-scraper/posts/tiktok?page=1&count=30" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:tiktok-scraper/posts/tiktok?page=1&count=30", { 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/posts/tiktok", params={"page":"1","count":"30"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:tiktok-scraper", "data": { "page": 1, "count": 30, "videos": [ { "url": "https://www.tiktok.com/@paulmccartney/video/7642802052485106974", "isAd": false, "play": "https://v19.tiktokcdn-eu.com/bf00efeba74f2a9f98b05624f3524bc5/6a1314d3/video/tos/maliva/tos-maliva-ve-0068c799-us/osjBQAPZKVKFEEEqkEFfEBAPDs1Q9PIfRQDqEg/?a=1233&bti=M0BzMzU8OGYpNzo…", "size": 672009, "cover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/okRDwthQCFAABIudAiPBasACEiAAAiAE6lCC1~tplv-tiktokx-cropcenter:300:400.jpeg?dr=10399&refresh_token=1d604679&x-expires…", "isTop": false, "title": "Hi there! I’m going LIVE on TikTok to answer your questions 🐦⬛ See you there! 🗓️ May 27th 3:30PM BST / 10:30am EST / 7:30am PST ", "author": { "id": "6726967538045535237", "avatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/c4168685b31130f0fc5606937e9b3abf~tplv-tiktokx-cropcenter:300:300.jpeg?dr=10397&refresh_token=1a730207&x-expires=1779634…", "nickname": "Paul McCartney", "username": "paulmccartney" }, "hdSize": 0, "images": [], "region": "GB", "wmSize": 0, "wmplay": "https://v19.tiktokcdn-eu.com/bf00efeba74f2a9f98b05624f3524bc5/6a1314d3/video/tos/maliva/tos-maliva-ve-0068c799-us/osjBQAPZKVKFEEEqkEFfEBAPDs1Q9PIfRQDqEg/?a=1233&bti=M0BzMzU8OGYpNzo…", "musicId": "7642802074735889182", "videoId": "7642802052485106974", "duration": 12, "diggCount": 72281, "playCount": 698882, "createTime": 1779478538, "musicTitle": "original sound - paulmccartney", "shareCount": 9891, "isSlideshow": false, "musicAuthor": "Paul McCartney", "originCover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/oggfhU8IhCVEeAjMrQgAoWQI7YMAMICie88BBq~tplv-tiktokx-360p.webp?dr=10375&refresh_token=46f5ad13&x-expires=1779634800&x…", "collectCount": 11289, "commentCount": 1713, "musicPlayUrl": "https://sf19.tiktokcdn-us.com/obj/ies-music-tx2/7642802131405802270.mp3", "createTimeIso": "2026-05-22T19:35:38.000Z", "downloadCount": 21, "musicDuration": 12, "musicOriginal": true }, { "url": "https://www.tiktok.com/@tiktok/video/7642770753292635422", "isAd": false, "play": "https://v19.tiktokcdn-eu.com/78cf3146f3e2803d457481c61bd7a36d/6a1314fd/video/tos/maliva/tos-maliva-ve-0068c799-us/okLYsaeUIAegIVNAInZSxjTCqyCeRCgxIS0AgG/?a=1233&bti=M0BzMzU8OGYpNzo…", "size": 7020321, "cover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/oIaQPAAO5EAhnBlpRgiuTiAAIEk1BlJRCayrA~tplv-tiktokx-cropcenter:300:400.jpeg?dr=10399&refresh_token=05ae6a48&x-expires…", "isTop": false, "title": "Shout out all the iconic @Zara Larsson stans who helped inspire Midnight Sun: Girls Trip 🪩", "author": { "id": "107955", "avatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:300:300.jpeg?dr=10397&refresh_token=c39391a8&x-expires=1779634…", "nickname": "TikTok", "username": "tiktok" }, "hdSize": 0, "images": [], "region": "US", "wmSize": 6436195, "wmplay": "https://v19.tiktokcdn-eu.com/ea734b935b4e5b8f24315861e9e2d5c7/6a1314fd/video/tos/maliva/tos-maliva-ve-0068c799-us/oY5vmIBR0EA9IQV05VGTdAEiBhYCaBk6iFIEQ/?a=1233&bti=M0BzMzU8OGYpNzo5…", "musicId": "7642770792052280095", "videoId": "7642770753292635422", "duration": 54, "diggCount": 1615, "playCount": 53086, "createTime": 1779471253, "musicTitle": "original sound - tiktok", "shareCount": 92, "isSlideshow": false, "musicAuthor": "TikTok", "originCover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/okICYYQVIRBkMi5BqAlEmAFiaAahd0ITc5vBB~tplv-tiktokx-360p.webp?dr=10375&refresh_token=3e888873&x-expires=1779634800&x-…", "collectCount": 154, "commentCount": 261, "musicPlayUrl": "https://sf16.tiktokcdn-us.com/obj/ies-music-tx2/7642770849728121631.mp3", "createTimeIso": "2026-05-22T17:34:13.000Z", "downloadCount": 2, "musicDuration": 54, "musicOriginal": true }, { "url": "https://www.tiktok.com/@tiktok/video/7642540102207524126", "isAd": false, "play": "https://v19.tiktokcdn-eu.com/d0e489e51a452414378fec8436360eed/6a13151b/video/tos/maliva/tos-maliva-ve-0068c799-us/oMIPEQE6RwVDADBqii8tfsMVYB5E7iOAVYegBc/?a=1233&bti=M0BzMzU8OGYpNzo…", "size": 15646430, "cover": "https://p19-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/owAIO5GSLAiVHgffAjI4AEKI97wQgqAeAU4OgI~tplv-tiktokx-cropcenter:300:400.jpeg?dr=10399&refresh_token=10e712fb&x-expire…", "isTop": false, "title": "the feed is better when everybody's involved, thanks for sharing your journey with us @Chanelle | Half Blind 🫶 #GlobalAccessibilityAwarenessDay", "author": { "id": "107955", "avatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:300:300.jpeg?dr=10397&refresh_token=c39391a8&x-expires=1779634…", "nickname": "TikTok", "username": "tiktok" }, "hdSize": 0, "images": [], "region": "US", "wmSize": 14325098, "wmplay": "https://v19.tiktokcdn-eu.com/894af64dcd5c12d9369c6526bc27dc59/6a13151b/video/tos/maliva/tos-maliva-ve-0068c799-us/owV2IIALigpmQjAAJLIHxHR4kggvGetCqfZUVf/?a=1233&bti=M0BzMzU8OGYpNzo…", "musicId": "7642540196575087390", "videoId": "7642540102207524126", "duration": 84, "diggCount": 2118, "playCount": 45061, "createTime": 1779417548, "musicTitle": "original sound - tiktok", "shareCount": 202, "isSlideshow": false, "musicAuthor": "TikTok", "originCover": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/o8BjMQArBSURFrIzACfJjqXXqHBfBI84MeA5Hv~tplv-tiktokx-360p.webp?dr=10375&refresh_token=b58aaa5b&x-expires=1779634800&x…", "collectCount": 226, "commentCount": 356, "musicPlayUrl": "https://sf19.tiktokcdn-us.com/obj/ies-music-tx2/7642540228686777119.mp3", "createTimeIso": "2026-05-22T02:39:08.000Z", "downloadCount": 8, "musicDuration": 84, "musicOriginal": true } ], "hasMore": true, "nextPage": 2, "username": "tiktok" }, "timestamp": "2026-06-13T03:11:01Z" }
Frequently asked questions
How do I call the TikTok User Posts API?
Send a GET request to https://api.zapi.ink/v1/social-media:tiktok-scraper/posts/tiktok with your Zapi key in the x-api-key header. Parameters — required: username; optional: page, count. The response is JSON in the { project, data, timestamp } envelope.
What does the TikTok User Posts API return?
Videos posted by a TikTok account, paginated. The example response has the fields page, count, videos, hasMore, nextPage, username. Each item in videos has fields such as url, isAd, play, size, cover, isTop, title, author.
Is the TikTok User 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 5 Zap. Paid plans raise the limits.
Can an AI assistant call the TikTok User 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 "posts".
What other TikTok API endpoints are there?
It has 21 endpoints. Besides Get User Posts: Get User Profile, Get Detail Post, Get Post Comments, Get Hashtag Info, Get Hashtag Posts, Search Videos, and 14 more.