urlstringerforderlich
Douyin link
https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-urlConverts a standard Douyin web link into a shortened Douyin URL. Returns the shortened link string and operation status for the provided URL.
[
{
"data": {
"code": 0,
"data": [
{
"short_url": "https://example",
"status": "success",
"target": "https://example"
}
],
"message": "success",
"now": 1787219156
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Converts a standard Douyin web link into a short v.douyin.com URL. It needs one input, url, which is the full Douyin link to shorten. The response returns the short link, the original target and an operation status.
target by reading it back from the response.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.douyin.com/video/7691553968815623478"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Douyin link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": [
{
"short_url": "https://v.douyin.com/cuksjs-5j5k/",
"status": "success",
"target": "https://www.douyin.com/video/7691553968815623478"
}
],
"message": "success",
"now": 1793691092
}
| Field | Meaning |
|---|---|
data[].short_url | The shortened Douyin link. It uses the https://v.douyin.com/ domain. |
data[].target | The full Douyin link the short URL points to. It matches the url you sent. |
data[].status | Result of the shortening step for this link. The value is success when a short link was created. |
code / message | Overall request result. code is 0 and message is success when the call worked. |
now | A numeric timestamp returned with the response. It looks like a Unix time in seconds. |
url, for example a https://www.douyin.com/video/<id> link.data. Read the first item for the short link.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "example"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
urlstringerforderlichDouyin link
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"code": 0,
"data": [
{
"short_url": "https://example",
"status": "success",
"target": "https://example"
}
],
"message": "success",
"now": 1787219156
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Douyin Short Link GeneratorDiese API Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Douyin | $0.001 pro Aufruf | JSON |
Anleitungen:Best Douyin API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/douyin/app-v3/generate-short-url mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: url (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Douyin Short Link Generator läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Douyin API beantragen.