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

Douyin Multi Search

Documentación de la API
https://api.sandbase.ai/v1/api/douyin/search/multi-search

Returns multi-type search results across videos, users, music, and hashtags on Douyin. Supports filtering by keyword, sort order, content type, duration, and post date.

Precio
$0.01USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 8 opcionales

Entorno de pruebas

Entrada
Backtrace for pagination, obtained from the last response
Content type filter
Pagination cursor (0 for the first page, use the last response cursor for subsequent pages)
Video duration filter
Search keyword, e.g., "Artificial Intelligence"
Publish time filter
Search ID used for pagination
Sorting method
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Douyin Multi Search API

Returns Douyin search results for a keyword as a list of result cards, mostly videos, plus pagination state and suggested search words. The main input is keyword. Optional filters cover sort order, content type, video duration and publish time.

Use cases

  • Pull the top video cards for a keyword such as 猫咪 to see what Douyin ranks first.
  • Collect the suggested search words returned for a keyword to find related topics.
  • Page through results with cursor, search_id and backtrace to build a larger set of videos for one keyword.
  • Narrow results by duration or post date with filter_duration and publish_time to study recent or short videos.

Request

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

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

Parameters

NameTypeRequiredDescription
backtracestringNoBacktrace for pagination, obtained from the last response
content_typestringNoContent type filter
cursorintegerNoPagination cursor (0 for the first page, use the last response cursor for subsequent pages)
filter_durationstringNoVideo duration filter
keywordstringNoSearch keyword, e.g., "Artificial Intelligence"
publish_timestringNoPublish time filter
search_idstringNoSearch ID used for pagination
sort_typestringNoSorting method

Example response

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

[
  13270
]

Response fields

FieldMeaning
business_config.business_data[].card_idType of each result card. The sample value douyin.doctype_aweme_video marks a video card.
business_config.business_data[].data.aweme_infoVideo details for a video card. It includes the video author, an authentication_token and the other video metadata.
business_config.business_data[].data.aweme_info.authorProfile data of the account that posted the video, including avatar images with url_list links.
business_config.business_data[].log.search_result_idID of the search result, which matches the video ID used in pitaya_common_feature.doc_feature[].search_result_id.
business_config.has_moreShows whether more results exist. The sample value is 1.
business_config.next_page.cursorCursor value to send as cursor when you request the next page.
business_config.next_page.search_idSearch ID to send as search_id when you request the next page.
business_config.backtracePagination token to send as backtrace when you request the next page.
business_config.extra.guide_search_words[].wordSuggested related search word, such as 视频, 图片 or 头像.
business_config.extra.impression_server_log.queryThe keyword the search ran for.

Notes

  • For the first page, send cursor as 0 and leave search_id and backtrace empty.
  • For the next page, copy business_config.next_page.cursor, business_config.next_page.search_id and business_config.backtrace into cursor, search_id and backtrace.
  • The response is a JSON array. The search data is in the second element, under business_config.
  • To search one content type only, try Douyin Video Search, Douyin User Search (V2) or Douyin Music Search.

Pricing

$0.01 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.01 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON
Douyin$0.01 por llamadaJSON

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

Preguntas

FAQ

¿Cómo uso la API de Douyin Multi Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/search/multi-search 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 Multi Search?

$0.01 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 Multi Search?

No se requieren parámetros. Opcionales: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) y publish_time (string) y 2 más. La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Douyin Multi Search?

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 Multi Search 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.