作品搜索

通过关键词搜索 TikTok 帖子,提供偏移分页、排序、发布时间和区域控制。使用该接口支持区域内容发现、主题研究或监控与关键词相关的视频。

接口 ID
GET /v1/tiktok/search_post_v1
接口 ID
tiktok.search_post_v1
价格
$0.02 / 次成功调用 · 失败不收费

参数

参数 必填 类型 说明 示例 可选值
keyword 必填 string 搜索关键词。 咖啡 —
offset 可选 integer 分页偏移量,从0开始,步长为20。 0 —
sort_type 可选 string 搜索结果排序标准。 可用值: - `RELEVANCE`: 相关性(默认) - `MOST_LIKED`: 点赞最多 RELEVANCE RELEVANCEMOST_LIKED
publish_time 可选 string 按发布时间筛选帖子。 可用值: - `ALL`: 全部时间 - `ONE_DAY`: 最近24小时 - `ONE_WEEK`: 最近7天 - `ONE_MONTH`: 最近30天 - `THREE_MONTHS`: 最近90天 - `HALF_YEAR`: 最近180天 ALL ALLONE_DAYONE_WEEKONE_MONTHTHREE_MONTHSHALF_YEAR
region 可选 string ISO 3166-1 alpha-2 国家代码(例如 'US'、'GB')。 US —

代码示例

curl -G "https://api.mofa-ai.com/v1/tiktok/search_post_v1" \
  -H "Authorization: Bearer $MOFA_API_KEY" \
  --data-urlencode 'keyword=咖啡' \
  --data-urlencode 'offset=0' \
  --data-urlencode 'sort_type=RELEVANCE' \
  --data-urlencode 'publish_time=ALL' \
  --data-urlencode 'region=US'

在线试用

登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。

登录后试用

响应示例

采集于 2026-11-07,耗时 6077 ms · 请求参数 {"offset": "0", "region": "US", "keyword": "咖啡", "sort_type": "RELEVANCE", "publish_time": "ALL"}

JSON
{
  "success": true,
  "code": 0,
  "message": "success",
  "request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
  "endpoint": "tiktok.search_post_v1",
  "cost_usd": 0.02,
  "data": {
    "code": 0,
    "data": {
      "extra": {
        "now": 1794095992000,
        "logid": "2026110723595063002A444509E592EC34",
        "api_debug_info": null,
        "fatal_item_ids": [],
        "search_request_id": "",
        "server_stream_time": 1533
      },
      "cursor": 20,
      "log_pb": {
        "impr_id": "2026110723595063002A444509E592EC34"
      },
      "version": "v2",
      "has_more": 1,
      "backtrace": "",
      "aweme_list": [],
      "components": null,
      "status_code": 0,
      "feedback_type": "video",
      "search_item_list": [
        {
          "aweme_info": {
            "…": "+142",
            "author": {
              "…": "+77",
              "cha_list": null,
              "avatar_uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
              "aweme_count": 0,
              "bold_fields": null,
              "ad_cover_url": null,
              "avatar_thumb": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
                "height": 720,
                "url_list": [
                  "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
                  "… +2"
                ],
                "data_size": 0,
                "url_prefix": null
              },
              "avatar_larger": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
                "height": 720,
                "url_list": [
                  "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
                  "… +2"
                ],
                "data_size": 0,
                "url_prefix": null
              },
              "avatar_medium": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
                "height": 720,
                "url_list": [
                  "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
                  "… +2"
                ],
                "data_size": 0,
                "url_prefix": null
              },
              "account_labels": null,
              "avatar_168x168": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
                "height": 720,
                "url_list": [
                  "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
                  "… +2"
                ],
                "data_size": 0,
                "url_prefix": null
              },
              "avatar_300x300": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
                "height": 720,
                "url_list": [
                  "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
                  "… +2"
                ],
                "data_size": 0,
                "url_prefix": null
              },
              "comment_setting": 0,
              "authority_status": 0,
              "can_set_geofencing": null,
              "commerce_user_level": 0,
              "accept_private_policy": false,
              "advanced_feature_info": null,
              "comment_filter_status": 0,
              "advance_feature_item_order": null,
              "can_message_follow_status_list": [
                0,
                "… +3"
              ]
            },
            "anchors": null,
            "banners": [
              {
                "key": {
                  "component_key": "bottom_banner_search_rs"
                }
              }
            ],
            "aweme_id": "7696389829134781704",
            "aigc_info": {
              "created_by_ai": false,
              "aigc_label_type": 0
            },
            "aweme_acl": {
              "platform_list": null,
              "share_general": {
                "code": 0,
                "mute": false,
                "show_type": 2,
                "transcode": 3
              },
              "download_general": {
                "code": 0,
                "mute": false,
                "show_type": 2,
                "transcode": 3
              },
              "press_action_list": null,
              "share_action_list": null,
              "share_list_status": 0,
              "download_mask_panel": {
                "code": 0,
                "mute": false,
                "show_type": 2,
                "transcode": 3
              }
            },
            "c2pa_info": {
              "aigc_src": "",
              "last_src": "",
              "dedup_err": "",
              "dedup_src": "",
              "first_src": "",
              "is_capcut": false,
              "is_tiktok": false,
              "total_err": 0,
              "total_img": 0,
              "total_src": 0,
              "total_vid": 0,
              "upload_dur": 0,
              "total_audio": 0,
              "last_aigc_src": "",
              "first_aigc_src": "",
              "c2pa_extra_data": "{\"aigc_percentage_type\":0}"
            },
            "allow_gift": true,
            "aweme_type": 0,
            "batch_index": 1,
            "ai_remix_info": {
              "has_entrance": false
            },
            "anchors_extras": "",
            "author_user_id": 6700734535816037382,
            "bodydance_score": 0,
            "bottom_products": null,
            "animated_image_info": {
              "type": 0,
              "effect": 0
            },
            "added_sound_music_info": {
              "…": "+48",
              "album": "",
              "author": "Insert Richie",
              "artists": [],
              "duration": 61,
              "cover_large": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
                "height": 720,
                "url_list": [
                  "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
                  "… +2"
                ],
                "data_size": 0,
                "url_prefix": null
              },
              "cover_thumb": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
                "height": 720,
                "url_list": [
                  "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
                  "… +2"
                ],
                "data_size": 0,
                "url_prefix": null
              },
              "create_time": 1791955413,
              "avatar_thumb": {
                "uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
                "width": 720,
  …

示例较长,此处截断显示。