keywordstring
The keyword to be suggested
Domyślnie: "人工智能"
https://api.sandbase.ai/v1/api/douyin/search/search-suggest-v2Fetch search keyword suggestions V2 on Douyin. Returns the platform data as structured JSON.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Returns search keyword suggestions from Douyin for a given keyword. It needs one input, keyword, and accepts an optional history_words list to influence the ranking.
人工智能.history_words changes the order of suggestions for the same keyword.curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/search-suggest-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "人工智能"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
history_words | string | No | Optional, the user's history search words (comma separated), affects the ranking of suggestions |
keyword | string | No | The keyword to be suggested |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"items": [
{
"content": "人工智能比赛",
"extra_info": {
"poi_id": "",
"poi_location_recall_log_id": "202611031532215E8A160EA19863E55352",
"search_params": "{\"sug_poi_id\":\"\"}"
},
"pos": [
{
"begin": 0,
"end": 3
}
],
"sug_type": "",
"word_record": {
"group_id": "6596440824983065859",
"words_content": "人工智能比赛",
"words_position": 0,
"words_source": "sug"
}
}
],
"raw_key": "sug_list",
"words": [
"人工智能比赛"
]
}
| Field | Meaning |
|---|---|
items[].content | The suggested search phrase as shown to the user. |
items[].pos[].begin / items[].pos[].end | Start and end character positions in content. In the sample they cover the part of the phrase that matches the input keyword. |
items[].word_record.words_content | The suggestion text inside the word record. It matches content in the sample. |
items[].word_record.words_position | Zero-based rank of the suggestion in the list. |
items[].word_record.words_source | Where the suggestion came from. The sample shows sug. |
items[].word_record.group_id | Numeric ID string for the suggestion word group. |
items[].sug_type | Type label of the suggestion. It is an empty string in the sample. |
items[].extra_info.search_params | JSON string with extra search parameters, such as sug_poi_id. The sample value has an empty POI ID. |
words | Plain list of the suggestion phrases, in the same order as items. |
words array is the quickest way to get just the phrases. Use items when you need rank, match positions or IDs.search_params is a JSON-encoded string, so parse it before reading its keys.$0.01 per successful call. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/search-suggest-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "人工智能"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
keywordstringThe keyword to be suggested
Domyślnie: "人工智能"
history_wordsstringOptional, the user's history search words (comma separated), affects the ranking of suggestions
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Douyin | $0.01 za wywołanie | JSON |
Douyin | $0.01 za wywołanie | JSON |
Douyin | $0.01 za wywołanie | JSON |
Douyin | $0.01 za wywołanie | JSON |
Douyin | $0.01 za wywołanie | JSON |
Douyin | $0.01 za wywołanie | JSON |
Przewodniki:Best Douyin API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/search/search-suggest-v2 z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: keyword (string) i history_words (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Douyin Search keyword suggestions V2 działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Douyin.