urlstringआवश्यक
The requested API URL, no need to URL encode
https://api.sandbase.ai/v1/api/tiktok/web/generate-xgnarly-and-xbogusGenerates X-Gnarly and X-Bogus signature tokens for TikTok web requests using a target endpoint URL and optional request body parameters.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns signature tokens for a TikTok web request. You send the full target url, and optionally a body string for POST requests. The response contains xGnarly, xBogus, xDynosaur, and a signedUrl.
xGnarly value to attach to a TikTok web request that needs it.body.user_agent so your signed request uses the same browser string.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-xgnarly-and-xbogus" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.tiktok.com/tag/cat?_r=1&name=cat&u_code=f02lm2f78d1elh&_d=f02ll161mcjihj&share_challenge_id=7551&sharer_language=en&source=h5_m"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The requested API URL, no need to URL encode |
body | string | No | The API parameters of the request, applicable for POST requests |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"body": "",
"signature": {
"signedUrl": "https://www.tiktok.com/tag/cat?_r=1&name=cat&u_code=f02lm2f78d1elh&_d=f02ll161mc…",
"xBogus": "1",
"xDynosaur": "MaFdT8S5zzDCNu2FdzJoSPebgrTnVCKYHQQuRjpE8iRm1-MxvNak5hedfIyt4/NiDVBNySaJIg6kfva0…",
"xGnarly": "MaTjg74vTVfgmm0vW/dwPfk43OgEtyKRP28T6NjvhZPZhZ9JI-9WdjukhjSDmoIRoEMljTcYD8oyJ4gE…"
},
"status": "success",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/1…",
"version": "5.3.2"
}
| Field | Meaning |
|---|---|
signature.signedUrl | The input url with the signature parameters added, such as X-Dynosaur. You can use it as the request URL. |
signature.xGnarly | The X-Gnarly token generated for the given url. |
signature.xBogus | The X-Bogus value for the given url. In this sample it is 1, so check it before you rely on it. |
signature.xDynosaur | The X-Dynosaur token. The signedUrl carries this same value as a query parameter. |
body | The body string used for signing. It is empty when you send no body. |
user_agent | The browser user agent string used when the signatures were made. Send the same value in your request headers. |
version | The version string of the signing logic, here 5.3.2. |
status | Result of the call. A successful call returns success. |
url as a plain string. You do not need to URL encode it.body only for POST requests. Leave it out for GET requests.user_agent with your signed request so the headers match the signature.$0.005 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-xgnarly-and-xbogus" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.tiktok.com/tag/cat?_r=1&name=cat&u_code=f02lm2f78d1elh&_d=f02ll161mcjihj&share_challenge_id=7551&sharer_language=en&source=h5_m"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
urlstringआवश्यकThe requested API URL, no need to URL encode
bodyanyThe API parameters of the request, applicable for POST requests
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
TikTok | $0.005 प्रति कॉल | 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
प्रश्न
https://api.sandbase.ai/v1/api/tiktok/web/generate-xgnarly-and-xbogus पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.005 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: url (string)। वैकल्पिक: body (any)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। TikTok Web X-Gnarly and X-Bogus Signatures SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।