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

Douyin Hashtag Suggestions

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

Returns a list of suggested Douyin hashtags and challenges matching a query keyword, including challenge IDs and view counts.

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

Phòng thử nghiệm

Đầu vào
Search keyword, e.g., "game"
Đầu raVí dụ
Phản hồioutputs · 1.1 KB · 47 dòng
[
  {
    "data": {
      "extra": {
        "fatal_item_ids": [],
        "logid": "2026082017471899D34C5BF00CFDA5A2CD",
        "now": 1787219239000,
        "search_request_id": ""
      },
      "log_pb": {
        "impr_id": "2026082017471899D34C5BF00CFDA5A2CD"
      },
      "rid": "2026082017471899D34C5BF00CFDA5A2CD",
      "status_code": 0,
      "status_msg": "",
      "sug_list": [
        {
          "cha_name": "游戏",
          "cid": "1624332181128206",
          "group_id": "",
          "tag": 0,
          "view_count": 725492084139
        },
        {
          "cha_name": "游戏抖音小游戏",
          "cid": "1633754745245699",
          "group_id": "6659329650067526926",
          "tag": 0,
          "view_count": 7201417
        },
        {
          "cha_name": "游戏主播",
          "cid": "1606891846318087",
          "group_id": "6595499534829229316",
          "tag": 0,
          "view_count": 25802787613
        },
        "… 3 more items in the full response"
      ],
      "words_query_record": {
        "info": "{}",
        "query_id": "",
        "words_source": "sug"
      }
    }
  }
]

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 Hashtag Suggestions API

Returns a list of Douyin hashtag and challenge suggestions that match a keyword. Each suggestion includes the challenge name, its challenge ID, and a total view count. The only input is keyword.

Use cases

  • Fill an autocomplete box for hashtag picking in a Douyin posting or planning tool.
  • Compare the view_count of related hashtags to pick tags with a larger audience.
  • Collect challenge IDs for a topic keyword, then look up each challenge in more detail.
  • Check which hashtag spellings Douyin suggests for a brand or topic word.

Request

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

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

Parameters

NameTypeRequiredDescription
keywordstringNoSearch keyword, e.g., "game"

Example response

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

{
  "extra": {
    "fatal_item_ids": [],
    "logid": "2026110315321538D3C329F551034F46C2",
    "now": 1793691135000,
    "scenes": null,
    "search_request_id": ""
  },
  "log_pb": {
    "impr_id": "2026110315321538D3C329F551034F46C2"
  },
  "rid": "2026110315321538D3C329F551034F46C2",
  "status_code": 0,
  "status_msg": "",
  "sug_list": [
    {
      "cha_name": "游戏",
      "cid": "1624332181128206",
      "group_id": "6534954143558145288",
      "tag": 0,
      "view_count": 747309565180
    }
  ],
  "words_query_record": {
    "info": "{}",
    "query_id": "",
    "words_source": "sug"
  }
}

Response fields

FieldMeaning
sug_list[]List of suggested hashtags and challenges that match the keyword.
sug_list[].cha_nameName of the suggested challenge or hashtag.
sug_list[].cidChallenge ID of the suggestion, returned as a string.
sug_list[].group_idGroup ID returned with the suggestion, as a string.
sug_list[].view_countTotal view count of the challenge.
sug_list[].tagNumeric tag value returned with each suggestion. It was 0 for all items in the sample.
status_code / status_msgStatus of the request. status_code is 0 and status_msg is empty in the sample.
words_query_record.words_sourceSource label for the suggestions. The sample value is sug.
rid / log_pb.impr_idRequest ID. Both hold the same value in the sample.

Notes

  • Pass the search text in keyword. The schema default is 游戏.
  • The response has no pagination fields. It returns one list of suggestions per request.
  • Use cid to identify a challenge. For more on a hashtag, see Douyin Hashtag Details. To list its videos, see Douyin Hashtag Video List.
  • For full search results with more fields, use Douyin Challenge Search.

Pricing

$0.01 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.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 mỗi lần gọiJSON
Douyin$0.01 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 Hashtag Suggestions?

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

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

Không có tham số bắt buộc. Tùy chọn: keyword (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin Hashtag 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 Hashtag 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.