keywordstring必須
Search keyword
https://api.sandbase.ai/v1/api/tiktok/web/search-photoSearches TikTok photo posts matching a query keyword. Returns post details, author statistics, music metadata, and engagement metrics with cursor pagination support.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns TikTok photo posts that match a search keyword. Each post includes its caption, images, hashtags, author statistics, music and engagement counts. The only required input is keyword.
openai, and read their captions and hashtags.stats.playCount or stats.diggCount to find the ones that perform best.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/search-photo" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "openai"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword |
count | integer | No | Number per page, it is recommended to keep the default value 20. |
offset | integer | No | Page cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor. |
search_id | string | No | Search id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"backtrace": "",
"cookie": "tt_chain…",
"cursor": 20,
"extra": {
"api_debug_info": null,
"fatal_item_ids": [],
"logid": "202611030744288C32E7C0DEB25902A31E",
"now": 1793691869000,
"search_request_id": ""
},
"has_more": 1,
"item_list": [
{
"AIGCDescription": "",
"CategoryType": 120,
"IsHDBitrate": false,
"author": {
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/0f21de2969ec6273b0c…",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/0f21de2969ec6273b0c…",
"avatarThumb": "https://p19-common-sign.tiktokcdn-us.com/tos-maliva-avt-0068/0f21de2969ec6273b0c…",
"commentSetting": 0,
"downloadSetting": 0,
"duetSetting": 0,
"ftc": false,
"id": "7668351969518470166"
},
"authorStats": {
"diggCount": 372,
"followerCount": 7747,
"followingCount": 0,
"friendCount": 0,
"heart": 292700,
"heartCount": 292700,
"videoCount": 45
},
"authorStatsV2": {
"diggCount": "372",
"followerCount": "7747",
"followingCount": "0",
"friendCount": "0",
"heart": "292700",
"heartCount": "292700",
"videoCount": "45"
},
"backendSourceEventTracking": "",
"challenges": [
{
"coverLarger": "",
"coverMedium": "",
"coverThumb": "",
"desc": "",
"id": "1660434918591489",
"profileLarger": "",
"profileMedium": "",
"profileThumb": ""
}
],
"collected": false,
"contents": [
{
"desc": "The model deepseek V4 flash retained its small size yet they still managed to ma…",
"textExtra": [
{
"awemeId": "",
"end": 483,
"hashtagId": "1660434918591489",
"hashtagName": "deepseek",
"isCommerce": false,
"start": 474,
"subType": 0,
"type": 1
}
]
}
],
"createTime": 1785660642,
"creatorAIComment": {
"eligibleVideo": false,
"hasAITopic": false,
"notEligibleReason": 101
}
}
],
"log_pb": {
"impr_id": "202611030744288C32E7C0DEB25902A31E"
},
"status_code": 0,
"tt_chain_token": "e/Y90VJh…"
}
| Field | Meaning |
|---|---|
item_list[].id | ID of the photo post. |
item_list[].desc | Caption text of the post. Long captions may be shortened. |
item_list[].createTime | Creation time of the post as a Unix timestamp in seconds. |
item_list[].stats.playCount / diggCount / commentCount / shareCount / collectCount | Engagement counts for the post. statsV2 holds the same numbers as strings. |
item_list[].author.id | ID of the account that published the post. |
item_list[].authorStats.followerCount / heartCount / videoCount | Follower, total like and video counts of the author. authorStatsV2 repeats them as strings. |
item_list[].imagePost.images[].imageURL.urlList | List of image URLs for each image in the post. imageWidth and imageHeight give the size of that image. |
item_list[].imagePost.title | Title shown on the photo post. |
item_list[].textExtra[].hashtagName | Hashtag names used in the caption. start and end give the position of each hashtag in the text. |
item_list[].music.id / authorName / duration | ID, author name and duration of the sound used in the post. original shows whether it is an original sound. |
cursor value from the response as offset. The first response returns cursor 20 and has_more 1.search_id from the previous response in follow-up requests. Leave it empty on the first call.x-expires value, so download the images soon after the call.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/search-photo" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"count": 1,
"offset": 0,
"keyword": "openai",
"search_id": ""
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
keywordstring必須Search keyword
countintegerNumber per page, it is recommended to keep the default value 20.
デフォルト: 20
offsetintegerPage cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor.
デフォルト: 0
search_idstringSearch id, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request.
デフォルト: ""
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok Photo Searchこの API TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.05 / 回 | JSON |
ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/web/search-photo に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: keyword (string)。 任意: count (integer), offset (integer) と search_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Photo Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。