TikTok Web Device Registration
https://api.sandbase.ai/v1/api/tiktok/web/device-registerRegisters a virtual client session to generate a device ID and guest cookie for TikTok Web requests. Returns device tokens and session parameters.
- Preis
- $0.002USD / Aufruf
- Methode
- POST
- Antwort
- JSON
- Parameter
- 0 erforderlich · 0 optional
Playground
[
{
"data": {
"cookie": "ttwid=1%7Ck4v_d1h7keU2r-k5cQFMHkLCBAg2dzqi9zTxocIoDm8%7C1790691413%7C18bbb0d1f5283027d811451a2f53ac3813422854fd84c5d7d977336270e5e3cf;tt_csrf_token=i6xCYvkQ-ZkO62C6-F5Hz33VZiG_wfugqfbI;tt_chain_token=0/iCrbi7RboRLtrUSzH1AQ==",
"deviceId": "7690961045297481246",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
}
}
]Beispiele
Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
API-README
TikTok Web Device Registration API
Register a fresh TikTok web device and get its deviceId, a ttwid cookie and the user agent it was registered with. TikTok web endpoints expect a consistent device ID, cookie and user agent.
Use cases
- Start a new crawling session with a valid device identity.
- Rotate device identities when a session gets rate limited.
Request
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/device-register" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"cookie": "ttwid=1%7C0sAkVWZfNDVS5_Qlo8LP0DifeYAWTRV9QX4EOEOK6l8%7C1793670125%7C58a20d6afae…",
"deviceId": "7703754514907055629",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)…"
}
Response fields
| Field | Meaning |
|---|---|
deviceId | Registered device ID. |
cookie | Cookie string including ttwid. |
user_agent | Use this exact user agent with the device ID and cookie. |
Notes
- No parameters are required.
- Sign the requests you make with TikTok Generate X-Bogus using the same user agent.
Pricing
$0.002 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Senden Sie Ihre erste Anfrage
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/device-register" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Authentifizierung
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.
3. Parameter
Für diese API wurde kein Parameterschema veröffentlicht.
4. Antwort
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"cookie": "ttwid=1%7Ck4v_d1h7keU2r-k5cQFMHkLCBAg2dzqi9zTxocIoDm8%7C1790691413%7C18bbb0d1f5283027d811451a2f53ac3813422854fd84c5d7d977336270e5e3cf;tt_csrf_token=i6xCYvkQ-ZkO62C6-F5Hz33VZiG_wfugqfbI;tt_chain_token=0/iCrbi7RboRLtrUSzH1AQ==",
"deviceId": "7690961045297481246",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
}
}
]Mehr entdecken
Verwandte APIs
| API | Preis | Antwort |
|---|---|---|
TikTok Web Device RegistrationDiese API TikTok | $0.002 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.05 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
FAQ
Wie verwende ich die TikTok Web Device Registration API?
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/web/device-register 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.
Was kostet die TikTok Web Device Registration API?
$0.002 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Welche Parameter akzeptiert die TikTok Web Device Registration API?
TikTok Web Device Registration benötigt keine Eingabeparameter; senden Sie einen leeren JSON-Body.
Was gibt die TikTok Web Device Registration API zurück?
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Benötige ich ein TikTok-Entwicklerkonto oder einen API-Schlüssel?
Nein. TikTok Web Device Registration 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 TikTok API beantragen.
