uidstringwajib
User UID
https://api.sandbase.ai/v1/api/douyin/web/user-live-info-by-uidRetrieves stream session information and broadcast metadata for a Douyin user based on their unique identifier. Accepts a user UID to return stream scene and logging data.
[
{
"data": {
"data": [
{
"log_id": "202608140134013C3A7F8683A494CC0A67",
"scene_id": 253,
"user_live": []
}
],
"extra": {
"now": 1786642441492
},
"status_code": 0
}
}
]Pilih contoh untuk memuat input dan hasilnya ke playground.
This API takes a Douyin user uid and returns a short record with stream session metadata. The response holds a log_id, a scene_id and a user_live list. In the sample response, user_live is empty.
user_live for a known uid.log_id of each lookup to trace a specific request in your own logs.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-live-info-by-uid" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "92769419069"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User UID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"log_id": "2026110315323230CB2D8E36B04148220A",
"scene_id": 253,
"user_live": []
}
],
"extra": {
"now": 1793691152930
},
"status_code": 0
}
| Field | Meaning |
|---|---|
data[] | List of result objects for the requested uid. The sample holds one object. |
data[].user_live | List of stream entries for the user. It is an empty list in the sample response, which means no stream entries came back for that uid. |
data[].log_id | String that identifies this lookup. Its first 14 digits look like a date and time, but the time zone is not shown. |
data[].scene_id | Number that labels the scene of the request. The sample value is 253. |
extra.now | Server time as a 13-digit number, which looks like a Unix timestamp in milliseconds. |
status_code | Status of the call. 0 in the sample response. |
uid is the numeric user ID as a string, for example 92769419069.sec_user_id, or need the reverse, use Douyin UID to Sec User ID to convert IDs.uid, call Douyin User Profile by UID.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-live-info-by-uid" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "7673500446660873006"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
uidstringwajibUser UID
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"data": [
{
"log_id": "202608140134013C3A7F8683A494CC0A67",
"scene_id": 253,
"user_live": []
}
],
"extra": {
"now": 1786642441492
},
"status_code": 0
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.03 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/web/user-live-info-by-uid dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Wajib: uid (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Douyin User Stream Information by UID berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.