Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Douyin Search Suggestions

API dokümanları
https://api.sandbase.ai/v1/api/douyin/search/search-suggest

Get Douyin search autocomplete suggestions for a keyword: the related queries users see while typing in the Douyin app.

Fiyat
$0.01USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
0 gerekli · 1 isteğe bağlı

Oynatma Alanı

Girdi
Input keyword, e.g., "Artificial Intelligence"
ÇıktıÖrnek
Yanıtoutputs · 2.5 KB · 98 satır
[
  {
    "data": {
      "cache_conf": {
        "enable": false
      },
      "extra": {
        "fatal_item_ids": [],
        "logid": "20260820174729952B646281EB80F54B18",
        "now": 1787219249000,
        "search_request_id": ""
      },
      "log_pb": {
        "impr_id": "20260820174729952B646281EB80F54B18"
      },
      "rid": "20260820174729952B646281EB80F54B18",
      "status_code": 0,
      "status_msg": "",
      "sug_list": [
        {
          "content": "人工智能",
          "extra_info": {
            "poi_id": "",
            "poi_location_recall_log_id": "20260820174729952B646281EB80F54B18",
            "search_params": "{\"sug_poi_id\":\"\"}"
          },
          "pos": [
            {
              "begin": 0,
              "end": 3
            }
          ],
          "sug_type": "",
          "word_record": {
            "group_id": "6527568579963917582",
            "words_content": "人工智能",
            "words_position": 0,
            "words_source": "sug"
          }
        },
        {
          "content": "人工智能机器人",
          "extra_info": {
            "poi_id": "",
            "poi_location_recall_log_id": "20260820174729952B646281EB80F54B18",
            "search_params": "{\"sug_poi_id\":\"\"}"
          },
          "pos": [
            {
              "begin": 0,
              "end": 3
            }
          ],
          "sug_type": "",
          "word_record": {
            "group_id": "6527568579980694798",
            "words_content": "人工智能机器人",
            "words_position": 1,
            "words_source": "sug"
          }
        },
        {
          "content": "人工智能龙头股",
          "extra_info": {
            "poi_id": "",
            "poi_location_recall_log_id": "20260820174729952B646281EB80F54B18",
            "search_params": "{\"sug_poi_id\":\"\"}"
          },
          "pos": [
            {
              "begin": 0,
              "end": 3
            }
          ],
          "sug_type": "",
          "word_record": {
            "group_id": "6527570833508930824",
            "words_content": "人工智能龙头股",
            "words_position": 2,
            "words_source": "sug"
          }
        },
        "… 2 more items in the full response"
      ],
      "sug_virtual_list": null,
      "time_cost": {
        "server_engine_cost": "179",
        "stream_inner": "189"
      },
      "words_lists": [],
      "words_query_record": {
        "info": "{}",
        "query_id": "6527568579963917582",
        "words_source": "sug"
      }
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

Douyin Search Suggestions API

Returns the autocomplete suggestions Douyin shows while a user types a keyword in the search box. It needs one input, keyword, and returns a list of suggested queries in sug_list.

Use cases

  • Collect long-tail search phrases around a topic such as 人工智能 for Douyin content planning.
  • Check which related queries Douyin offers for a brand or product name.
  • Build keyword lists to feed into a Douyin video or user search.
  • Compare the suggestions for several keywords to see how users phrase a topic.

Request

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

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

Parameters

NameTypeRequiredDescription
keywordstringNoInput keyword, e.g., "Artificial Intelligence"

Example response

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

{
  "cache_conf": {
    "enable": false
  },
  "extra": {
    "fatal_item_ids": [],
    "logid": "20261103153220ABB7B6447CA5FAB75334",
    "now": 1793691141000,
    "search_request_id": ""
  },
  "log_pb": {
    "impr_id": "20261103153220ABB7B6447CA5FAB75334"
  },
  "rid": "20261103153220ABB7B6447CA5FAB75334",
  "status_code": 0,
  "status_msg": "",
  "sug_list": [
    {
      "content": "人工智能",
      "extra_info": {
        "poi_id": "",
        "poi_location_recall_log_id": "20261103153220ABB7B6447CA5FAB75334",
        "search_params": "{\"sug_poi_id\":\"\"}"
      },
      "pos": [
        {
          "begin": 0,
          "end": 3
        }
      ],
      "sug_type": "",
      "word_record": {
        "group_id": "6527568579963917582",
        "words_content": "人工智能",
        "words_position": 0,
        "words_source": "sug"
      }
    }
  ],
  "sug_virtual_list": null,
  "time_cost": {
    "server_engine_cost": "108",
    "stream_inner": "119"
  },
  "words_lists": [],
  "words_query_record": {
    "info": "{}",
    "query_id": "6527568579963917582",
    "words_source": "sug"
  }
}

Response fields

FieldMeaning
sug_list[].contentThe suggested search phrase, as a user would see it in the Douyin search box.
sug_list[].word_record.words_contentThe suggestion text again, stored inside the word record for that suggestion.
sug_list[].word_record.words_positionZero-based position of the suggestion in the list. 0 is the first suggestion.
sug_list[].word_record.group_idID string for the suggestion word.
sug_list[].word_record.words_sourceWhere the word came from. The sample response shows sug for every item.
sug_list[].pos[].begin / sug_list[].pos[].endStart and end character positions inside content. In the sample they cover the typed keyword at the start of the phrase.
words_query_record.query_idID of the query record for this request. In the sample it matches the first suggestion's group_id.
status_codeRequest status inside the response body. 0 appears in the sample response, with an empty status_msg.

Notes

  • The only input is keyword. Use the text a person would type into the Douyin search box.
  • To search for content with a suggested phrase, pass its content value to Douyin Video Search or Douyin General Search.
  • For hashtag ideas instead of query suggestions, call Douyin Hashtag Suggestions.
  • sug_virtual_list is null and words_lists is empty in the sample response.

Pricing

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

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Douyin$0.01 çağrı başınaJSON
Douyin$0.01 çağrı başınaJSON
Douyin$0.01 çağrı başınaJSON
Douyin$0.01 çağrı başınaJSON
Douyin$0.01 çağrı başınaJSON
Douyin$0.01 çağrı başınaJSON

Kılavuzlar:Best Douyin API in 2026: Pricing Compared

Sorular

SSS

Douyin Search Suggestions API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/douyin/search/search-suggest adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Douyin Search Suggestions API'sinin fiyatı nedir?

çağrı başına $0.01, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Douyin Search Suggestions API'si hangi parametreleri kabul eder?

Gerekli parametre yoktur. İsteğe bağlı: keyword (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Douyin Search Suggestions API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Douyin geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Douyin Search Suggestions, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Douyin API erişimi için ayrıca başvuru yapmanız gerekmez.