Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

TikTok Real msToken

API-Dokumentation
https://api.sandbase.ai/v1/api/tiktok/web/generate-real-ms-token

Produces a real msToken for TikTok web requests. Accepts optional configuration parameters including browser type and randomized string data.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
0 erforderlich · 2 optional

Playground

Eingabe
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

TikTok Real msToken API

This API returns a real msToken string for TikTok web requests. It needs no input, but you can pass browser_type and random_strData to change how the token is made.

Use cases

  • Add a fresh msToken to TikTok web requests that need one as a query parameter or cookie.
  • Request a token for a specific browser type by setting browser_type.
  • Test how random_strData changes the token you get back.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-real-ms-token" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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

Parameters

NameTypeRequiredDescription
browser_typestringNo
random_strDatabooleanNo

Example response

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

{
  "browser_type": null,
  "msToken": "DFJLzkge…",
  "random_strData": false
}

Response fields

FieldMeaning
msTokenThe generated token string. Pass this value as the msToken in your TikTok web requests.
browser_typeEchoes the browser_type you sent. It is null when you leave the parameter out.
random_strDataEchoes the random_strData flag you sent. It is false in the sample call, where the parameter was not set.

Notes

  • Both parameters are optional. An empty {} body returns a token.
  • browser_type is a string and random_strData is a boolean.
  • The token contains letters, digits, - and _. Copy it as is without extra encoding changes.
  • For signed requests, pair the token with TikTok Web X-Bogus Signature or TikTok Web TTWID Identifier.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.05 pro AufrufJSON

Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die TikTok Real msToken API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/web/generate-real-ms-token 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 Real msToken API?

$0.001 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 Real msToken API?

Es sind keine Parameter erforderlich. Optional: browser_type (string) und random_strData (boolean). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die TikTok Real msToken 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 Real msToken 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.