o_author_idstringआवश्यक
Creator/author ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-local-infoReturns location details for a Douyin Xingtu creator using their author ID, with optional filters for time range and platform settings.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"city_resident": "深圳",
"content_level": "0",
"credit_score": "100",
"is_local_author": "1",
"province_resident": "广东",
"settled_level": "0"
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns location details for a Douyin Xingtu creator, including the city and province where the creator lives and whether the creator counts as a local author. It needs the creator's Xingtu author ID in o_author_id.
credit_score of several creators before you book them.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-local-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"o_author_id": "7146074596666507300"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
o_author_id | string | Yes | Creator/author ID |
platform_channel | integer | No | Platform channel, default 1 |
platform_source | integer | No | Platform source, default 1 |
time_range | integer | No | Time range in days, default 30 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"city_resident": "深圳",
"content_level": "0",
"credit_score": "100",
"is_local_author": "1",
"province_resident": "广东",
"settled_level": "0"
}
| Field | Meaning |
|---|---|
city_resident | City where the creator lives. The sample value is 深圳 (Shenzhen). |
province_resident | Province where the creator lives. The sample value is 广东 (Guangdong). |
is_local_author | Flag for whether the creator is a local author. The sample value 1 suggests yes, but the response does not define the flag. |
credit_score | Creator credit score returned as a string. The sample value is 100. |
content_level / settled_level | Level values for the creator's content and settlement status. Both are 0 in the sample, and the response does not explain the scale. |
base_resp.status_code | Status code of the call. 0 means the request succeeded. |
base_resp.status_message | Status text for the call. It is an empty string in the sample. |
credit_score and is_local_author. Convert them yourself if you need numbers.o_author_id is required. time_range, platform_source and platform_channel are optional.o_author_id.$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/xingtu-v2/author-local-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"o_author_id": "7146074596666507300"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
o_author_idstringआवश्यकCreator/author ID
platform_channelintegerPlatform channel, default 1
platform_sourceintegerPlatform source, default 1
time_rangeintegerTime range in days, default 30
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"city_resident": "深圳",
"content_level": "0",
"credit_score": "100",
"is_local_author": "1",
"province_resident": "广东",
"settled_level": "0"
}
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.002 प्रति कॉल | JSON |
Douyin | $0.002 प्रति कॉल | JSON |
Douyin | $0.01 प्रति कॉल | JSON |
Douyin | $0.003 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-local-info पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: o_author_id (string)। वैकल्पिक: platform_channel (integer), platform_source (integer) और time_range (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin Xingtu Author Location Info SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।