Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

TikTok Photo Search

เอกสาร API
https://api.sandbase.ai/v1/api/tiktok/web/search-photo

Searches TikTok photo posts matching a query keyword. Returns post details, author statistics, music metadata, and engagement metrics with cursor pagination support.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 3 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

Playground

อินพุต
Search keyword
Number per page, it is recommended to keep the default value 20.
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, empty for the first request, need to provide for the second paging, need to get it from the return response of the last request.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

TikTok Photo Search API

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.

Use cases

  • Collect photo posts about a brand or topic, such as openai, and read their captions and hashtags.
  • Rank photo posts by stats.playCount or stats.diggCount to find the ones that perform best.
  • Check the follower and like totals of the authors who post about a keyword.
  • Download the image URLs of a post for review or archiving.

Request

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.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword
countintegerNoNumber per page, it is recommended to keep the default value 20.
offsetintegerNoPage cursor, 0 for the first request, need to provide for the second paging, generally the keyword of this value is offset or cursor.
search_idstringNoSearch 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.

Example response

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…"
}

Response fields

FieldMeaning
item_list[].idID of the photo post.
item_list[].descCaption text of the post. Long captions may be shortened.
item_list[].createTimeCreation time of the post as a Unix timestamp in seconds.
item_list[].stats.playCount / diggCount / commentCount / shareCount / collectCountEngagement counts for the post. statsV2 holds the same numbers as strings.
item_list[].author.idID of the account that published the post.
item_list[].authorStats.followerCount / heartCount / videoCountFollower, total like and video counts of the author. authorStatsV2 repeats them as strings.
item_list[].imagePost.images[].imageURL.urlListList of image URLs for each image in the post. imageWidth and imageHeight give the size of that image.
item_list[].imagePost.titleTitle shown on the photo post.
item_list[].textExtra[].hashtagNameHashtag names used in the caption. start and end give the position of each hashtag in the text.
item_list[].music.id / authorName / durationID, author name and duration of the sound used in the post. original shows whether it is an original sound.

Notes

  • For the next page, send the cursor value from the response as offset. The first response returns cursor 20 and has_more 1.
  • Send the search_id from the previous response in follow-up requests. Leave it empty on the first call.
  • Image URLs in the response contain an x-expires value, so download the images soon after the call.
  • To look up a single post in more detail, use TikTok Video Detail.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
TikTok Photo SearchAPI นี้
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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ TikTok Photo Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/web/search-photo โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

TikTok Photo Search API ราคาเท่าไร?

$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

TikTok Photo Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: keyword (string). ตัวเลือก: count (integer), offset (integer) และ search_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

TikTok Photo Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ TikTok ไหม?

ไม่จำเป็น TikTok Photo Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก