Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Post Search

Tài liệu API
https://api.sandbase.ai/v1/api/tiktok/search-post

Search TikTok posts by keyword with offset pagination plus sorting, publish-time, and region controls. Use it to support regional content discovery, topic research, or monitoring keyword-related videos.

Giá
$0.014286USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 4 tùy chọn

Phòng thử nghiệm

Đầu vào
Search keywords.
Pagination offset, starting from 0 and stepping by 20.
Sorting criteria for search results.
Filter posts by publishing time.
ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB').
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

TikTok Post Search API

Returns a page of TikTok posts that match a search keyword. Each result is a full post object with author, sound, and tag data. The only required input is keyword.

Use cases

  • Find videos about a topic such as cooking in a chosen country with the region parameter.
  • Rank recent posts for a keyword by setting sortType to MOST_LIKED and publishTime to ONE_WEEK.
  • Collect the authors and sounds that appear for a keyword to build a creator or music shortlist.
  • Re-run the same keyword on a schedule and compare the returned posts to monitor a brand or trend.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/search-post" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "cooking"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keywords.
offsetintegerNoPagination offset, starting from 0 and stepping by 20.
publishTimestringNoFilter posts by publishing time.
regionstringNoISO 3166-1 alpha-2 country code (e.g., 'US', 'GB').
sortTypestringNoSorting criteria for search results.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "aweme_list": [],
  "backtrace": "",
  "components": null,
  "cursor": 20,
  "extra": {
    "api_debug_info": null,
    "fatal_item_ids": [],
    "logid": "2026110307441120B3F9B5AF29F202A109",
    "now": 1793691851000,
    "search_request_id": "",
    "server_stream_time": 373
  },
  "feedback_type": "video",
  "global_doodle_config": {
    "disable_inner_flow": false,
    "display_filter_bar": 1,
    "enable_image_record": true,
    "feedback_survey": [
      {
        "feedback_type": "video",
        "long_stress_info": null,
        "multiple_choices": [
          {
            "key": "Dislike",
            "value": "Dislike"
          }
        ],
        "send_us_multiple_choices": null
      }
    ],
    "hide_results": false,
    "hit_dolphin": false,
    "hit_shark": true,
    "keyword": "cooking",
    "new_source": "switch_tab",
    "search_channel": "musically_video",
    "search_intent": {},
    "tns_search_result": "Pass"
  },
  "has_more": 1,
  "log_pb": {
    "impr_id": "2026110307441120B3F9B5AF29F202A109"
  },
  "search_item_list": [
    {
      "aweme_info": {
        "added_sound_music_info": {
          "album": "",
          "allow_offline_music_to_detail_page": false,
          "artists": [],
          "audition_duration": 100,
          "author": "MariClareMacLamroc",
          "author_deleted": false,
          "author_position": null,
          "avatar_medium": {
            "data_size": 0,
            "height": 720,
            "uri": "tos-useast5-avt-0068-tx/b0ef0515ef314de260854510a17933c1",
            "url_list": [
              "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/b0ef0515ef314de…"
            ],
            "url_prefix": null,
            "width": 720
          }
        },
        "ai_remix_info": {
          "has_entrance": false
        },
        "aigc_info": {
          "aigc_label_type": 0,
          "created_by_ai": false
        },
        "allow_gift": true,
        "anchors": [
          {
            "actions": [
              {
                "action_type": 1,
                "icon": {
                  "height": 720,
                  "uri": "tiktok-obj/28px_primary_create_onDark3x.png",
                  "url_list": [
                    "https://p16-common.tiktokcdn-us.com/tiktok-obj/28px_primary_create_onDark3x.png~…"
                  ],
                  "url_prefix": null,
                  "width": 720
                },
                "schema": "shoot"
              }
            ],
            "anchor_strong": null,
            "component_key": "anchor_effect",
            "description": "Effects",
            "extra": "{\"effect_source\":102,\"is_commerce\":0,\"resource_id\":29649069847}",
            "icon": {
              "height": 720,
              "uri": "tiktok-obj/20px_anchor_effect3x.png",
              "url_list": [
                "https://p16-common.tiktokcdn-us.com/tiktok-obj/20px_anchor_effect3x.png~tplv-tik…"
              ],
              "url_prefix": null,
              "width": 720
            },
            "id": "3317039869",
            "keyword": "Lite Cutie face"
          }
        ],
        "anchors_extras": "",
        "animated_image_info": {
          "effect": 0,
          "type": 0
        },
        "author": {
          "accept_private_policy": false,
          "account_labels": null,
          "ad_cover_url": null,
          "advance_feature_item_order": null,
          "advanced_feature_info": null,
          "authority_status": 0,
          "avatar_168x168": {
            "data_size": 0,
            "height": 720,
            "uri": "tos-useast5-avt-0068-tx/b0ef0515ef314de260854510a17933c1",
            "url_list": [
              "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/b0ef0515ef314de…"
            ],
            "url_prefix": null,
            "width": 720
          },
          "avatar_300x300": {
            "data_size": 0,
            "height": 720,
            "uri": "tos-useast5-avt-0068-tx/b0ef0515ef314de260854510a17933c1",
            "url_list": [
              "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/b0ef0515ef314de…"
            ],
            "url_prefix": null,
            "width": 720
          }
        }
      },
      "search_aweme_info": {
        "has_creation_intention": false
      }
    }
  ],
  "status_code": 0,
  "version": "v2"
}

Response fields

FieldMeaning
search_item_list[]One search result per entry. The post data sits inside aweme_info.
search_item_list[].aweme_info.authorThe account that published the post. It includes avatar images in several sizes, such as avatar_168x168 and avatar_300x300, each with a url_list.
search_item_list[].aweme_info.author_user_idNumeric ID of the account that published the post.
search_item_list[].aweme_info.added_sound_music_info.authorName of the artist or account behind the sound used in the post.
search_item_list[].aweme_info.added_sound_music_info.album / search_item_list[].aweme_info.added_sound_music_info.artists[].handleAlbum title and artist handles for the sound. album is an empty string when the sound has no album.
search_item_list[].aweme_info.anchors[].keyword / search_item_list[].aweme_info.anchors[].descriptionLabel of an anchor attached to the post, for example an effect name. anchors is null on posts without one.
search_item_list[].aweme_info.aigc_info.created_by_aiBoolean flag showing whether the post is marked as made with AI.
has_moreSet to 1 in this response, which signals that more results are available.
cursorPagination position returned with the page. It is 20 for the request at offset 0.
extra.logid / extra.nowRequest log ID and a 13-digit millisecond timestamp for the response.

Notes

  • Page through results with offset set to 0, 20, 40, and so on. Keep has_more in mind when deciding whether to continue.
  • Read the results from search_item_list. In this response the top-level aweme_list is an empty array.
  • region takes a two-letter ISO 3166-1 code such as US or GB. sortType accepts RELEVANCE or MOST_LIKED.
  • To get more detail on one post from the results, call TikTok Video Details.

Pricing

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

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTok$0.014286 mỗi lần gọiJSON
TikTokTừ $0.0012 mỗi lần gọiJSON
TikTokTừ $0.0008 mỗi lần gọiJSON
TikTokTừ $0.0008 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Post Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/search-post với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Post Search có giá bao nhiêu?

$0.014286 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Post Search chấp nhận những tham số nào?

Bắt buộc: keyword (string). Tùy chọn: offset (integer), sortType (một trong số RELEVANCE, MOST_LIKED), publishTime (một trong số ALL, ONE_DAY, ONE_WEEK, ONE_MONTH, THREE_MONTHS, HALF_YEAR) và region (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Post Search trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Post Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.