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"
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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 ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
o_author_idstringจำเป็นCreator/author ID
platform_channelintegerPlatform channel, default 1
platform_sourceintegerPlatform source, default 1
time_rangeintegerTime range in days, default 30
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"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 |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-local-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: o_author_id (string). ตัวเลือก: platform_channel (integer), platform_source (integer) และ time_range (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Douyin Xingtu Author Location Info ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก