TikTok Web ID
https://api.sandbase.ai/v1/api/tiktok/web/generate-webidReturns a TikTok web_id value for web session handling. Accepts optional parameters including url, app_id, referer, user_agent, and user_unique_id.
- मूल्य
- $0.001USD / कॉल
- मेथड
- POST
- प्रतिक्रिया
- JSON
- पैरामीटर
- 0 आवश्यक · 5 वैकल्पिक
प्लेग्राउंड
[
{
"data": {
"e": 0,
"ssid": "un_support",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0",
"web_id": "7671202019835102733"
}
}
]उदाहरण
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
API README
TikTok Web ID API
Returns a TikTok web_id string for use in web session handling, along with a user_agent string. All inputs are optional, and an empty request returns a value.
Use cases
- Get a
web_idto attach to TikTok web requests that need a session identifier. - Pass your own
user_agentorrefererto build a web session that matches the browser you simulate. - Pass a
user_unique_idto tie the generated ID to one browser context in your own tooling.
Request
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-webid" \
-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 |
|---|---|---|---|
app_id | integer | No | |
referer | string | No | |
url | string | No | |
user_agent | string | No | |
user_unique_id | string | No |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"e": 0,
"ssid": "un_support",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/1…",
"web_id": "7703847884642567693"
}
Response fields
| Field | Meaning |
|---|---|
web_id | The generated TikTok web ID, returned as a string of digits. |
user_agent | The browser user agent string returned with the ID. Reuse it in later web requests so the session stays consistent. |
ssid | A session value. The sample returns un_support, so do not rely on it. |
e | A status code. The sample returns 0. |
Notes
- All parameters are optional:
url,app_id,referer,user_agentanduser_unique_id. The sample request sent none of them. - Treat
web_idas a string. It is a long number and can lose digits if you parse it as a number. - Pair this with TikTok Web TTWID Identifier or TikTok Real msToken when you need other session values.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
अपना पहला अनुरोध भेजें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-webid" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. प्रमाणीकरण
अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
3. पैरामीटर
refererstring
urlstring
user_agentstring
user_unique_idstring
4. रिस्पॉन्स
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"e": 0,
"ssid": "un_support",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0",
"web_id": "7671202019835102733"
}
}
]और जानें
संबंधित APIs
| API | कीमत | प्रतिक्रिया |
|---|---|---|
TikTok Web IDयह 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 Web ID API का उपयोग कैसे करें?
https://api.sandbase.ai/v1/api/tiktok/web/generate-webid पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
TikTok Web ID API की लागत कितनी है?
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
TikTok Web ID API कौन-से parameters स्वीकार करती है?
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: app_id (integer), referer (string), url (string), user_agent (string) और user_unique_id (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
TikTok Web ID API क्या लौटाती है?
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
क्या मुझे एक TikTok developer account या API key चाहिए?
नहीं। TikTok Web ID SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।
