bodyarrayआवश्यक
Video link list
https://api.sandbase.ai/v1/api/douyin/web/all-aweme-idExtracts video IDs from a list of Douyin video URLs. Accepts an array of links and returns the corresponding item identifiers.
[
{
"data": [
"7512756548356492544"
]
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Extract aweme_id values (Douyin video IDs) from several Douyin video links in one call.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body": ["https://www.douyin.com/video/7512756548356492544"]}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
body | array | Yes | Video link list |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
"7512756548356492544"
]
| Field | Meaning |
|---|---|
(body) | Array of aweme_id strings, in the order of the input links. |
body.$0.001 per successful call. Failed calls, including lookups whose target does not exist, 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/all-aweme-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": [
"https://static.sandbase.ai/examples/065a6f00-759d-4a47-b76e-ee86608434dd/input/37b54c15-fdda-4fbc-9918-f5aeae5c4218.bin"
]
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
bodyarrayआवश्यकVideo link list
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": [
"7512756548356492544"
]
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.03 प्रति कॉल | JSON |
Douyin | $0.15 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/douyin/web/all-aweme-id पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: body (array)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin Batch Video ID Extraction SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।