Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Douyin Topic Search Suggestions

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
Topic keyword
Platform, aweme=Douyin, toutiao=Toutiao
SalidaEjemplo
Respuestaoutputs · 490 B · 25 líneas
[
  {
    "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"
      ]
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON
Douyin$0.001 por llamadaJSON

Guías:Best Douyin API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Douyin Topic Search Suggestions?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/index/topic-suggest con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Douyin Topic Search Suggestions?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Douyin Topic Search Suggestions?

Requeridos: keyword (string). Opcionales: app_name (una de aweme, toutiao). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Douyin Topic Search Suggestions?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Douyin?

No. Douyin Topic Search Suggestions funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Douyin por separado.