Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

TikTok Real msToken

API दस्तावेज़
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.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
0 आवश्यक · 2 वैकल्पिक

प्लेग्राउंड

इनपुट
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

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.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
TikTok$0.001 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON
TikTok$0.05 प्रति कॉलJSON

गाइड्स:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

प्रश्न

FAQ

TikTok Real msToken API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/tiktok/web/generate-real-ms-token पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

TikTok Real msToken API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

TikTok Real msToken API कौन-से parameters स्वीकार करती है?

कोई parameters आवश्यक नहीं हैं। वैकल्पिक: browser_type (string) और random_strData (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

TikTok Real msToken API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक TikTok developer account या API key चाहिए?

नहीं। TikTok Real msToken SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।