Douyin sec_user_id from URL
https://api.sandbase.ai/v1/api/douyin/web/sec-user-idExtracts the Douyin sec_user_id identifier from a provided web link or profile URL. Input the target link in the query parameter to resolve the user identifier.
- मूल्य
- $0.001USD / कॉल
- मेथड
- POST
- प्रतिक्रिया
- JSON
- पैरामीटर
- 1 आवश्यक · 0 वैकल्पिक
प्लेग्राउंड
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
API README
Douyin sec_user_id from URL API
This API takes a Douyin web link in the url parameter and returns a single JSON string. It is meant to extract the sec_user_id from a user profile link. In the sample call, a video link came back as the same URL text.
Use cases
- Turn a shared Douyin profile link into a
sec_user_idbefore you request that user's data. - Prepare user identifiers for Douyin User Profile (Web) from profile links you collected.
- Check whether a pasted Douyin link resolves to an identifier or comes back unchanged.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/sec-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.douyin.com/video/7691553968815623478"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
"https://www.douyin.com/video/7691553968815623478"
Response fields
| Field | Meaning |
|---|---|
$ | The whole response is one plain JSON string, not an object, so it has no named fields. |
$ | For a user profile link, this string is the resolved sec_user_id, according to the API description. |
$ | In the sample call with a video link, the string was the same URL that was sent in url. |
Notes
- Send a user profile or homepage URL in
urlif you want asec_user_id. The sample video URLhttps://www.douyin.com/video/7691553968815623478returned the input unchanged. - For a video link, call Douyin Video ID Extractor to get the video ID.
- To process many profile links in one call, use Douyin sec_user_ids from URLs (Batch).
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/douyin/web/sec-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.douyin.com/video/7691553968815623478"
}'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 | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.03 प्रति कॉल | JSON |
प्रश्न
FAQ
Douyin sec_user_id from URL API का उपयोग कैसे करें?
https://api.sandbase.ai/v1/api/douyin/web/sec-user-id पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
Douyin sec_user_id from URL API की लागत कितनी है?
$0.001 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।
Douyin sec_user_id from URL API कौन-से parameters स्वीकार करती है?
आवश्यक: url (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
Douyin sec_user_id from URL API क्या लौटाती है?
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
क्या मुझे एक Douyin developer account या API key चाहिए?
नहीं। Douyin sec_user_id from URL SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।
