Sources › Social media › TikTok › Search Photos
TikTok Search Photos API
Search photo/slideshow (carousel) posts by keyword.
Request
https://api.zapi.ink/v1/social-media:tiktok-scraper/search-photosSend 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 |
|---|---|---|---|---|
| keywords | string | query | Yes | Search keywords for photo/slideshow posts Example: kucing lucu |
| page | number | query | No | Page number. Default 1 Example: 1 |
| count | number | query | No | Videos per page. Default 20, max 30 Example: 20 |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:tiktok-scraper/search-photos?keywords=kucing+lucu&page=1&count=20" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:tiktok-scraper/search-photos?keywords=kucing+lucu&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/search-photos", params={"keywords":"kucing lucu","page":"1","count":"20"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:tiktok-scraper", "data": { "page": 1, "count": 5, "query": "kucing lucu", "videos": [ { "url": "https://www.tiktok.com/@maomaocat.id/video/7489769170385538325", "isAd": false, "play": "https://v16m.tiktokcdn-us.com/ad5724a6eb0e60d2454e5fb9c1226066/6a9bdbdf/video/tos/useast5/tos-useast5-ve-27dcd7c799-tx/oMoypWG1ILEEMZCvXDISvIoqCJdaeTfnPDZPge/?a=1233&bti=NEBzNTY6QG…", "size": 0, "cover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/e7e3a387cd824c42bac212f8cda453dc~tplv-photomode-image-cover:640:0:q70.webp?biz_tag=mt_photo.photo_tab_cover&dr=122…", "isTop": false, "title": "kenalan dulu sama kucing kucing yang staff kantor suka main bareng 😸 #kucinglucu #kucingtiktok #fyp #kucing #kucinggemoy #pecintakucing ", "author": { "id": "7432154883400827921", "avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/60c798fdd96ff1353c1999a39e3ad027~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg?dr=8834&refresh_token=3bd6833b&x-expires=178…", "nickname": "Mao Mao Cat", "username": "maomaocat.id" }, "hdSize": 0, "images": [ "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/e7e3a387cd824c42bac212f8cda453dc~tplv-photomode-image-v1:q70.jpeg?dr=8793&refresh_token=401fffc7&x-expires=1789290…", "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/5ecded1705374d129820eab4b01fff74~tplv-photomode-image-v1:q70.jpeg?dr=8793&refresh_token=414e3b26&x-expires=1789290…" ], "region": "ID", "wmSize": 0, "wmplay": "https://v16m.tiktokcdn-us.com/ad5724a6eb0e60d2454e5fb9c1226066/6a9bdbdf/video/tos/useast5/tos-useast5-ve-27dcd7c799-tx/oMoypWG1ILEEMZCvXDISvIoqCJdaeTfnPDZPge/?a=1233&bti=NEBzNTY6QG…", "musicId": "7484675347601951543", "videoId": "7489769170385538325", "duration": 0, "diggCount": 43627, "playCount": 249823, "createTime": 1743847791, "musicCover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/21a44f004aab048f0188b844acadc61b~tplv-tiktokx-cropcenter-q:1080:1080:q70.jpeg?dr=8837&refresh_token=ae9c8b8d&x-expires=1…", "musicTitle": "original sound - shizu.u", "shareCount": 2146, "isSlideshow": true, "musicAuthor": "shizu", "originCover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/e7e3a387cd824c42bac212f8cda453dc~tplv-photomode-image-cover:640:0:q70.webp?dr=12229&refresh_token=cfd1efd9&x-expir…", "collectCount": 0, "commentCount": 599, "dynamicCover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/e7e3a387cd824c42bac212f8cda453dc~tplv-photomode-image-cover:640:0:q70.webp?dr=12229&refresh_token=cfd1efd9&x-expir…", "musicPlayUrl": "https://v16m.tiktokcdn-us.com/ad5724a6eb0e60d2454e5fb9c1226066/6a9bdbdf/video/tos/useast5/tos-useast5-ve-27dcd7c799-tx/oMoypWG1ILEEMZCvXDISvIoqCJdaeTfnPDZPge/?a=1233&bti=NEBzNTY6QG…", "createTimeIso": "2025-04-05T10:09:51.000Z", "downloadCount": 26, "musicDuration": 30, "musicOriginal": true }, { "url": "https://www.tiktok.com/@nutrcat004/video/7582779146586082581", "isAd": false, "play": "https://v16m.tiktokcdn-us.com/f5a44afb6a20986a201d51e71309da20/6a9bdbe3/video/tos/useast5/tos-useast5-ve-27dcd7c799-tx/ogCJBUegH3wIVJUYOilYBQrwgUNqVJQtfsLWSg/?a=1233&bti=NTY6QGo0QH…", "size": 0, "cover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/0cfda9b9273f4a83afe079208defde92~tplv-photomode-image-cover:640:0:q70.webp?biz_tag=mt_photo.photo_tab_cover&dr=122…", "isTop": false, "title": "Pernah tertanya kenapa kucing kita nampak extra manja atau tiba-tiba lebih vocal? Rupanya ada beberapa tanda halus yang tunjuk si bulus sebenarnya hidup bahagia—daripada cara dia t…", "author": { "id": "7579939102621303816", "avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/8292f41a924fd29d2b9c8701d710b26b~tplv-tiktokx-cropcenter-q:300:300:q70.jpeg?dr=8834&refresh_token=f28acd78&x-expires=178…", "nickname": "tompok", "username": "nutrcat004" }, "hdSize": 0, "images": [ "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/0cfda9b9273f4a83afe079208defde92~tplv-photomode-image-v1:q70.jpeg?dr=8793&refresh_token=ba85f37f&x-expires=1789290…", "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/38cabb3e204f47d58ea00a434d115672~tplv-photomode-image-v1:q70.jpeg?dr=8793&refresh_token=cd88ccac&x-expires=1789290…" ], "region": "MY", "wmSize": 0, "wmplay": "https://v16m.tiktokcdn-us.com/f5a44afb6a20986a201d51e71309da20/6a9bdbe3/video/tos/useast5/tos-useast5-ve-27dcd7c799-tx/ogCJBUegH3wIVJUYOilYBQrwgUNqVJQtfsLWSg/?a=1233&bti=NTY6QGo0QH…", "musicId": "6971734529463683842", "videoId": "7582779146586082581", "duration": 0, "diggCount": 37719, "playCount": 985325, "createTime": 1765503358, "musicCover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/3496cdb8f38bf7928463514b6b20f12d~tplv-tiktokx-cropcenter-q:1080:1080:q70.jpeg?dr=8837&refresh_token=017dcbdb&x-expires=1…", "musicTitle": "original sound - big_boss729", "shareCount": 6205, "isSlideshow": true, "musicAuthor": "bigboss", "originCover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/0cfda9b9273f4a83afe079208defde92~tplv-photomode-image-cover:640:0:q70.webp?dr=12229&refresh_token=7bf51270&x-expir…", "collectCount": 0, "commentCount": 666, "dynamicCover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-i-photomode-sg/0cfda9b9273f4a83afe079208defde92~tplv-photomode-image-cover:640:0:q70.webp?dr=12229&refresh_token=7bf51270&x-expir…", "musicPlayUrl": "https://v16m.tiktokcdn-us.com/f5a44afb6a20986a201d51e71309da20/6a9bdbe3/video/tos/useast5/tos-useast5-ve-27dcd7c799-tx/ogCJBUegH3wIVJUYOilYBQrwgUNqVJQtfsLWSg/?a=1233&bti=NTY6QGo0QH…", "createTimeIso": "2025-12-12T01:35:58.000Z", "downloadCount": 415, "musicDuration": 34, "musicOriginal": true } ], "hasMore": true, "nextPage": 2 }, "timestamp": "2026-06-13T03:11:01Z" }
Frequently asked questions
How do I call the TikTok Search Photos API?
Send a GET request to https://api.zapi.ink/v1/social-media:tiktok-scraper/search-photos?keywords=kucing+lucu with your Zapi key in the x-api-key header. Parameters — required: keywords; optional: page, count. The response is JSON in the { project, data, timestamp } envelope.
What does the TikTok Search Photos API return?
Search photo/slideshow (carousel) posts by keyword. The example response has the fields page, count, query, videos, hasMore, nextPage. Each item in videos has fields such as url, isAd, play, size, cover, isTop, title, author.
Is the TikTok Search Photos 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 Search Photos 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 "search-photos".
What other TikTok API endpoints are there?
It has 21 endpoints. Besides Search Photos: Get User Profile, Get User Posts, Get Detail Post, Get Post Comments, Get Hashtag Info, Get Hashtag Posts, and 14 more.