TikTok Real msToken
https://api.sandbase.ai/v1/api/tiktok/web/generate-real-ms-tokenProduces a real msToken for TikTok web requests. Accepts optional configuration parameters including browser type and randomized string data.
- Prezzo
- $0.001USD / chiamata
- Metodo
- POST
- Risposta
- JSON
- Parametri
- 0 obbligatori · 2 opzionali
Playground
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
README API
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
msTokento 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_strDatachanges 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
| Name | Type | Required | Description |
|---|---|---|---|
browser_type | string | No | |
random_strData | boolean | No |
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
| Field | Meaning |
|---|---|
msToken | The generated token string. Pass this value as the msToken in your TikTok web requests. |
browser_type | Echoes the browser_type you sent. It is null when you leave the parameter out. |
random_strData | Echoes 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_typeis a string andrandom_strDatais 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.
Inizia a costruire
Invia la tua prima richiesta
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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 '{}'2. Autenticazione
Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
3. Parametri
random_strDataboolean
4. Risposta
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
API correlate
| API | Prezzo | Risposta |
|---|---|---|
TikTok Real msTokenQuesta API TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.05 per chiamata | JSON |
Guide:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Domande
FAQ
Come uso l'API TikTok Real msToken?
Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/web/generate-real-ms-token con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
Quanto costa l'API TikTok Real msToken?
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Quali parametri accetta l'API TikTok Real msToken?
Nessun parametro richiesto. Facoltativi: browser_type (string) e random_strData (boolean). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Cosa restituisce l'API TikTok Real msToken?
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
Mi serve un account sviluppatore o una chiave API TikTok?
No. TikTok Real msToken funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.
