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

Douyin URL Shortener

Documentación de la API
https://api.sandbase.ai/v1/api/douyin/web/shorten-url

Shortens a target web address for Douyin web workflows. Accepts a full destination link and returns a compact shortened URL.

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

Entorno de pruebas

Entrada
Target URL to be converted
SalidaEjemplo
Respuestaoutputs · 133 B · 10 líneas
[
  {
    "data": {
      "code": 0,
      "data": "https://example",
      "message": "success",
      "now": 1787219028
    }
  }
]

Ejemplos

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

README de la API

Douyin URL Shortener API

Takes one full Douyin web address in target_url and returns a short https://v.douyin.com/ link for it. The response holds the short link as a single string in data.

Use cases

  • Turn a long Douyin video page link into a short link for chat messages or posts.
  • Store short links in a database or spreadsheet instead of long video URLs.
  • Build share links for Douyin videos inside an app with limited screen space.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/shorten-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target_url": "https://www.douyin.com/video/7575136499386720761"}'

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

Parameters

NameTypeRequiredDescription
target_urlstringYesTarget URL to be converted

Example response

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

{
  "code": 0,
  "data": "https://v.douyin.com/nzl1K-jOpdo/",
  "message": "success",
  "now": 1793691150
}

Response fields

FieldMeaning
dataThe shortened URL for the submitted target_url. In this example it is https://v.douyin.com/nzl1K-jOpdo/.
codeStatus code of the call. 0 appears with a successful result.
messageShort status text. It reads success when the call works.
nowNumber in the response, 1793691150 in this example. It looks like a Unix timestamp in seconds.

Notes

  • Send the full link in target_url, including https://, for example a video page like https://www.douyin.com/video/7575136499386720761.
  • The short link is a plain string in data, not an object.
  • To get IDs out of Douyin links, use Douyin Video ID Extractor or Douyin Batch Video ID Extraction.

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.03 por llamadaJSON

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

Preguntas

FAQ

¿Cómo uso la API de Douyin URL Shortener?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/web/shorten-url 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 URL Shortener?

$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 URL Shortener?

Requeridos: target_url (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Douyin URL Shortener?

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 URL Shortener 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.