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

Douyin Topic Search Suggestions

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/index/topic-suggest

Returns autocomplete topic suggestions based on a search query. Supports filtering by target platform such as Douyin or Toutiao.

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

Phòng thử nghiệm

Đầu vào
Topic keyword
Platform, aweme=Douyin, toutiao=Toutiao
Đầu raVí dụ
Phản hồioutputs · 490 B · 25 dòng
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 0,
        "StatusMessage": ""
      },
      "topic_list": [
        {
          "topic_id": "1576073697445901",
          "topic_name": "人工智能"
        },
        {
          "topic_id": "7693001864882686006",
          "topic_name": "港股人工智能光通信逆势走强"
        },
        {
          "topic_id": "1788749732212868",
          "topic_name": "人工智能与人类的未来"
        },
        "… 17 more items in the full response"
      ]
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Douyin Topic Search Suggestions API

Returns autocomplete topic suggestions for a search keyword. Each suggestion has a topic ID and a topic name. You send a keyword and can set app_name to choose Douyin or Toutiao.

Use cases

  • Fill a topic search box with suggestions as a user types a keyword.
  • Find the topic_id for a topic name before you pass it to another Douyin Index call.
  • Compare the topic names suggested for the same keyword on Douyin and on Toutiao.
  • Build a list of related topic names around a theme such as 人工智能.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/topic-suggest" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "人工智能"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesTopic keyword
app_namestringNoPlatform, aweme=Douyin, toutiao=Toutiao

Example response

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

{
  "BaseResp": {
    "StatusCode": 0,
    "StatusMessage": ""
  },
  "topic_list": [
    {
      "topic_id": "1576073697445901",
      "topic_name": "人工智能"
    }
  ]
}

Response fields

FieldMeaning
topic_listList of suggested topics for the keyword. The first item in the sample is an exact match for the keyword.
topic_list[].topic_idID of the suggested topic, returned as a string.
topic_list[].topic_nameDisplay name of the suggested topic. It can be the keyword itself or a longer related name.
BaseResp.StatusCodeStatus code of the request. 0 in the sample response.
BaseResp.StatusMessageStatus text. It is an empty string in the sample response.

Notes

  • app_name accepts aweme for Douyin or toutiao for Toutiao. The default is aweme.
  • Treat topic_id as a string. The sample IDs have 16 to 19 digits.
  • To search topics in full instead of getting suggestions, call Douyin Topic Search.
  • To see what is trending now, call Douyin Current Hot Topics Leaderboard.

Pricing

$0.001 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
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin Topic Search Suggestions?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/index/topic-suggest 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 Douyin Topic Search Suggestions có giá bao nhiêu?

$0.001 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 Douyin Topic Search Suggestions chấp nhận những tham số nào?

Bắt buộc: keyword (string). Tùy chọn: app_name (một trong số aweme, toutiao). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin Topic Search Suggestions 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 Douyin không?

Không. Douyin Topic Search Suggestions 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 Douyin.