TikTok Web TTWID Identifier
https://api.sandbase.ai/v1/api/tiktok/web/generate-ttwidReturns a valid TikTok ttwid cookie value for web session handling. Accepts an optional user_agent string to match specific browser environments.
- मूल्य
- $0.001USD / कॉल
- मेथड
- POST
- प्रतिक्रिया
- JSON
- पैरामीटर
- 0 आवश्यक · 1 वैकल्पिक
प्लेग्राउंड
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
API README
TikTok Web TTWID Identifier API
Returns a TikTok ttwid cookie value as a single string. The only input is an optional user_agent string, so you can call it with an empty body.
Use cases
- Set the
ttwidcookie on a web client before it sends requests to TikTok web endpoints. - Pair the cookie with a specific browser
user_agentso your request headers stay consistent. - Fetch a new cookie value when a scraper needs a fresh web session identity.
Request
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-ttwid" \
-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 |
|---|---|---|---|
user_agent | string | No |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"ttwid": "1%7C0K27…"
}
Response fields
| Field | Meaning |
|---|---|
ttwid | The full cookie value as a URL-encoded string. Send it as ttwid=<value> in a Cookie header. |
ttwid | The value has four segments separated by %7C, which decodes to /. The segments are 1, a short token, a 10-digit number, and a 64-character hex string. |
ttwid | The 10-digit third segment looks like a Unix timestamp in seconds. The response does not say if it marks creation or expiry. |
Notes
- Send
{}to get a cookie with nouser_agent. Adduser_agentto match a specific browser string. - The value is already URL-encoded. Use it as is, without encoding it again.
- Related tokens for TikTok web requests: TikTok Web ID, TikTok Real msToken and TikTok Web X-Bogus Signature.
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-ttwid" \
-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. पैरामीटर
4. रिस्पॉन्स
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
संबंधित 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 Web TTWID Identifier API का उपयोग कैसे करें?
https://api.sandbase.ai/v1/api/tiktok/web/generate-ttwid पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
TikTok Web TTWID Identifier API की लागत कितनी है?
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
TikTok Web TTWID Identifier API कौन-से parameters स्वीकार करती है?
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: user_agent (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
TikTok Web TTWID Identifier API क्या लौटाती है?
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
क्या मुझे एक TikTok developer account या API key चाहिए?
नहीं। TikTok Web TTWID Identifier SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।
