Douyin (TikTok ประเทศจีน) รายละเอียดวิดีโอ API (V2)
GET
สถานะสุขภาพของ API
สถานะสุขภาพ 24 ชั่วโมง
ความล่าช้าเฉลี่ย 24 ชั่วโมง
ผลการตรวจสอบล่าสุด
สถานะดี มีสภาพ จำกัด ส่วนใหญ่ไม่มีสภาพ ไม่มีข้อมูล
สถานะดี
กำลังโหลดสถานะสุขภาพ...
แนวโน้ม 24 ชั่วโมง
แนวโน้ม 30 วัน
ค้นหาข้อมูลรายละเอียดของวิดีโอ Douyin (TikTok China) โดยใช้ ID ของวิดีโอ สามารถใช้เพื่อค้นหาวิดีโอที่รู้จักก่อนการตรวจสอบเนื้อหา การจัดเก็บ หรือการวิเคราะห์ที่เกี่ยวข้อง。
พารามิเตอร์
| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|---|---|
token |
query | string |
ใช่ | - | โทเค็นการเข้าถึงสำหรับบริการ API นี้ |
videoId |
query | string |
ใช่ | - | ID ตัวตนของวิดีโอที่ไม่ซ้ำกัน (aweme_id หรือ model_id) |
ตัวอย่างโค้ด
bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE'
text
ฉันต้องการใช้ API "รายละเอียดวิดีโอ (V2)" จาก JustOneAPI.
URL หลัก: https://api.justoneapi.com.
เส้นทาง API: /api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE
เอนด์พอยต์ API: BASE_URL + /api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE
เมธอด HTTP: GET
การยืนยันตัวตน: เพิ่มพารามิเตอร์ "token" เข้าไปใน URL.
คำนิยาม OpenAPI: https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-details-v2-th.json
พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- videoId (query): ID ตัวตนของวิดีโอที่ไม่ซ้ำกัน (aweme_id หรือ model_id) (จำเป็น)
รูปแบบที่ส่งกลับ: จัดการ JSON หรือข้อความอย่างปลอดภัยตามค่า Content-Type ที่ได้รับจริง
การจัดการผลตอบกลับและรหัสข้อผิดพลาด:
1. ตรวจสอบผลการทำงานจากฟิลด์ "code" ในผลตอบกลับ (รหัส 0 หมายถึงสำเร็จ)
2. แนะนำให้ตั้งระยะเวลารอ 120 วินาที หาก 120 วินาทีนานเกินไป ให้ตั้งอย่างน้อย 60 วินาที แต่คำขอบางรายการอาจหมดเวลาก่อนได้รับผลลัพธ์
3. รหัสผลลัพธ์:
- 0: สำเร็จ
- 100: โทเคนไม่ถูกต้องหรือถูกปิดใช้งาน
- 301: ดึงข้อมูลไม่สำเร็จ โปรดลองอีกครั้ง
- 302: เกินขีดจำกัดอัตราการเรียก
- 303: ใช้โควตารายวันครบแล้ว
- 400: พารามิเตอร์ไม่ถูกต้อง
- 500: ข้อผิดพลาดภายในเซิร์ฟเวอร์
- 600: ไม่มีสิทธิ์เข้าถึง
- 601: ยอดเงินคงเหลือไม่เพียงพอ
- 602: ถึงวงเงินของโทเคนแล้ว
4. รหัส 601 หมายถึงยอดเงินที่ใช้ร่วมกันของบัญชีไม่เพียงพอ รหัส 602 หมายถึงโทเคน API ถึงวงเงินสะสมของตนเองแล้ว การกำหนดวงเงินโทเคนจะไม่โอนเงินออกจากยอดเงินที่ใช้ร่วมกันของบัญชี
กรุณาช่วยเขียนสคริปต์ในภาษาโปรแกรมที่ฉันชื่นชอบเพื่อเรียกใช้ API และจัดการการตอบกลับ.
python
import requests
BASE_URL = "https://api.justoneapi.com" # ให้โดยเซิร์ฟเวอร์ OpenAPI
url = BASE_URL + "/api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
content_type = response.headers.get("content-type", "").lower()
if "json" in content_type:
try:
print(response.json())
except ValueError:
print(response.text)
elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
print(response.text)
else:
with open("response.bin", "wb") as output:
output.write(response.content)
print(f"Saved {len(response.content)} bytes to response.bin")
js
const BASE_URL = "https://api.justoneapi.com"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
const url = BASE_URL + "/api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE";
const response = await fetch(url, {
method: "GET",
signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
const contentType = (response.headers.get("content-type") || "").toLowerCase();
const mediaType = contentType.split(";", 1)[0].trim();
const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
if (textual) {
const responseText = new TextDecoder().decode(responseBytes);
let data = responseText;
if (contentType.includes("json")) {
try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
}
console.log(data);
} else {
console.log(`Received ${responseBytes.byteLength} binary bytes`);
}
}
java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
public class Main {
public static void main(String[] args) throws Exception {
final String BASE_URL = "https://api.justoneapi.com"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
final String url = BASE_URL + "/api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE";
HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
HttpRequest.Builder builder = HttpRequest.newBuilder()
.uri(URI.create(url))
.timeout(Duration.ofSeconds(120))
.method("GET", HttpRequest.BodyPublishers.noBody());
HttpRequest request = builder.build();
HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
System.out.println(response.statusCode());
String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
String mediaType = contentType.split(";", 2)[0].trim();
if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
System.out.println(new String(response.body(), StandardCharsets.UTF_8));
} else {
Files.write(Path.of("response.bin"), response.body());
System.out.println("Saved " + response.body().length + " bytes to response.bin");
}
}
}
go
package main
import (
"fmt"
"io"
"os"
"strings"
"net/http"
"time"
)
const BASE_URL = "https://api.justoneapi.com" // ให้โดยเซิร์ฟเวอร์ OpenAPI
func main() {
client := &http.Client{Timeout: 120 * time.Second}
url := BASE_URL + "/api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE"
req, _ := http.NewRequest("GET", url, nil)
resp, _ := client.Do(req)
defer resp.Body.Close()
fmt.Println(resp.StatusCode)
bodyBytes, _ := io.ReadAll(resp.Body)
contentType := strings.ToLower(resp.Header.Get("Content-Type"))
mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
fmt.Println(string(bodyBytes))
} else {
os.WriteFile("response.bin", bodyBytes, 0600)
fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
}
}
php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // ให้โดยเซิร์ฟเวอร์ OpenAPI
$url = $BASE_URL . '/api/douyin/get-video-detail/v2?token=YOUR_API_KEY&videoId=VALUE';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
echo $response;
} else {
file_put_contents('response.bin', $response);
echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
ฟิลด์ที่ได้รับการตอบกลับ
ฟิลด์สำคัญในผลการตอบกลับที่สำเร็จ (code = 0).
ข้อมูลโพสต์13 ฟิลด์
data.aweme_detail
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
aweme_id |
string |
ID โพสต์ Douyin ที่เป็นเอกลักษณ์ ซึ่งถูกเข้ารหัสเป็นสตริง. |
group_id |
string |
ตัวระบุกลุ่มที่รายงานสำหรับโพสต์ |
author_user_id |
integer |
ID ตัวเลขของบัญชีโพสต์ |
desc |
string |
คำอธิบายโพสต์ที่ให้ไว้โดย Douyin |
caption |
string |
คำอธิบายย่อโพสต์ที่ให้ไว้โดย Douyin |
item_title |
string |
ชื่อโพสต์ หากมีให้ |
preview_title |
string |
ชื่อที่ให้ไว้สำหรับการดูโพสต์ล่วงหน้า |
create_time |
integer |
เวลาที่โพสต์ถูกเผยแพร่ในรูปแบบเวลา Unix ในหน่วยวินาที. |
duration |
integer |
ค่าชั่วโมงของวิดีโอที่รายงานระหว่างโพสต์ ในหน่วยมิลลิวินาที |
aweme_type |
integer |
รหัสประเภทโพสต์ Douyin โดยมีตัวอย่างคือ 0 สำหรับวิดีโอมาตรฐาน และ 68 สำหรับแกลเลอรี่ภาพ. |
media_type |
integer |
รหัสประเภทของสื่อที่รายงานโดย Douyin |
ip_attribution |
string |
ป้ายกำกับภูมิภาค IP ที่รายงานโดย Douyin หากมี |
is_aigc_media |
boolean |
วิดีโอเตอร์ไดอันระบุว่ามีสื่อโพสต์เป็นเนื้อหาที่สร้างโดย AI หรือไม่ |
ผู้เขียนโพสต์27 ฟิลด์
data.aweme_detail.author
ข้อมูลโปรไฟล์ของผู้เขียนที่ส่งกลับมาพร้อมสินค้า
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
uid |
string |
ID อุปกรณ์ Douyin ที่เข้ารหัสเป็นสตริง |
sec_uid |
string |
อุปกรณ์ Douyin ท้ายที่สุดที่ผู้ใช้ใช้เพื่อเข้าถึงโปรไฟล์ |
nickname |
string |
ชื่อที่ปรากฏของผู้เขียน |
unique_id |
string |
ชื่อผู้ใช้ Douyin ที่เป็นสาธารณะ หากมี |
short_id |
string |
อุปกรณ์สั้นที่ดูyin รายงาน |
follower_count |
integer |
จำนวนผู้ติดตามที่ผู้เขียนมี |
is_verified |
boolean |
ว่าดูyin รายงานว่าผู้เขียนได้รับการยืนยันหรือไม่ |
verification_type |
integer |
รหัสประเภทการยืนยันที่ผู้เขียนมี |
avatar_thumb |
object |
ภาพลักษณ์ของผู้เขียน |
avatar_thumb.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
avatar_thumb.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
avatar_thumb.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
avatar_thumb.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
avatar_thumb.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
avatar_medium |
object |
ภาพ avatar ขนาดกลางสำหรับผู้เขียน. |
avatar_medium.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
avatar_medium.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
avatar_medium.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
avatar_medium.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
avatar_medium.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
avatar_larger |
object |
ภาพ avatar ขนาดใหญ่สำหรับผู้เขียน. |
avatar_larger.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
avatar_larger.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
avatar_larger.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
avatar_larger.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
avatar_larger.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
aweme_count |
integer |
จำนวนโพสต์ของผู้เขียนที่รายงานโดย Douyin |
ระดับความสนใจจากผู้ใช้9 ฟิลด์
data.aweme_detail.statistics
จำนวนการมีส่วนร่วมที่รายงานโดย Douyin สำหรับโพสต์
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
aweme_id |
string |
ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับสถิติเหล่านี้. |
digg_count |
integer |
จำนวนไลก์ของวิดีโอตามที่รายงาน |
comment_count |
integer |
จำนวนความคิดเห็นของวิดีโอตามที่รายงาน |
collect_count |
integer |
จำนวนการบันทึกของวิดีโอตามที่รายงาน |
share_count |
integer |
จำนวนการแชร์ของวิดีโอตามที่รายงาน |
forward_count |
integer |
จำนวนการส่งต่อที่ระบุในการตอบกลับ. |
download_count |
integer |
จำนวนการดาวน์โหลดของวิดีโอตามที่รายงาน |
play_count |
integer |
จำนวนการเล่นที่รายงานโดย Douyin สำหรับโพสต์ |
exposure_count |
integer |
จำนวนการเผยแพร่ที่รายงานโดย Douyin สำหรับโพสต์ |
ภาพของโพสต์16 ฟิลด์
data.aweme_detail
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
images |
array | null |
ภาพที่เรียงตามลำดับสำหรับแกลเลอรี่ภาพ ตัวอย่างโพสต์วิดีโอมาตรฐานจะส่งกลับเป็น null |
images[] |
object |
ภาพในแกลเลอรี่ |
images[].uri |
string |
อ้างอิงทรัพยากรของแพลตฟอร์มสำหรับภาพ. |
images[].url_list |
array |
URL ของภาพที่นำมาแสดง. |
images[].url_list[] |
string |
URL สำหรับการแสดงภาพ. |
images[].download_url_list |
array |
URL สำหรับดาวน์โหลดภาพที่แยกออกมา |
images[].download_url_list[] |
string |
URL สำหรับดาวน์โหลดภาพที่รายงานไว้ |
images[].width |
integer |
ความกว้างของภาพที่รายงานมา |
images[].height |
integer |
ความสูงของภาพที่รายงาน. |
images[].is_aigc_media |
boolean |
ว่าดูยินจัดให้ภาพนี้เป็นเนื้อหาที่สร้างโดย AI หรือไม่ |
images[].resolution_log_param |
object |
ขนาดภาพที่แหล่งที่มาและที่เผยแพร่บันทึกไว้โดยดูยิน |
images[].resolution_log_param.image_source_width |
integer |
ความกว้างของภาพต้นฉบับที่รายงานไว้ |
images[].resolution_log_param.image_source_height |
integer |
ความสูงของภาพต้นฉบับที่รายงานไว้ |
images[].resolution_log_param.image_publish_width |
integer |
ความกว้างของภาพที่เผยแพร่ที่รายงานไว้ |
images[].resolution_log_param.image_publish_height |
integer |
ความสูงของภาพที่เผยแพร่ที่รายงานไว้ |
img_bitrate |
array | null |
ข้อมูลอัตราความเร็วของภาพเมื่อส่งมา แกลเลอรี่อาจส่งกลับรายการว่าง |
ปกและภาพสาธิต35 ฟิลด์
data.aweme_detail.video
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
cover |
object |
ภาพปกของวิดีโอ. |
cover.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
cover.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
cover.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
cover.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
cover.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
origin_cover |
object |
ภาพปกในฟิลด์ปกต้นฉบับ. |
origin_cover.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
origin_cover.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
origin_cover.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
origin_cover.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
origin_cover.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
dynamic_cover |
object |
ทรัพยากรภาพปกที่สามารถเคลื่อนไหวได้เมื่อมี. |
dynamic_cover.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
dynamic_cover.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
dynamic_cover.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
dynamic_cover.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
dynamic_cover.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
animated_cover |
object |
ทรัพยากรภาพปกที่สามารถเคลื่อนไหวได้เมื่อมี. |
animated_cover.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
animated_cover.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
animated_cover.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
cover_original_scale |
object |
ตัวเลือกปกในรูปแบบ original-scale เมื่อส่งกลับมา |
cover_original_scale.uri |
string |
ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับปกนี้ |
cover_original_scale.url_list |
array |
URL ที่ให้ไว้สำหรับตัวเลือกปกนี้ |
cover_original_scale.url_list[] |
string |
URL สำหรับตัวเลือกปกนี้ |
cover_original_scale.width |
integer |
ความกว้างที่รายงานสำหรับตัวเลือกปกนี้ |
cover_original_scale.height |
integer |
ความสูงที่รายงานสำหรับตัวเลือกปกนี้ |
big_thumbs |
array | null |
ไฟล์รูปขนาดย่อที่ถูกส่งกลับมา รายการอาจว่างหรือเป็น null |
big_thumbs[] |
object |
ชุดรูปภาพขนาดเล็กสำหรับดูล่วงหน้าของวิดีโอ。 |
big_thumbs[].uri |
string |
ตัวระบุทรัพยากรแพลตฟอร์มสำหรับรูปภาพขนาดเล็กสำหรับดูล่วงหน้า。 |
big_thumbs[].img_url |
string |
URL ของรูปภาพขนาดเล็กสำหรับดูล่วงหน้า。 |
big_thumbs[].img_urls |
array |
URL ของรูปภาพขนาดเล็กสำหรับดูล่วงหน้าอื่นๆ หากมีส่งกลับมา。 |
big_thumbs[].uris |
array |
ตัวระบุทรัพยากรแพลตฟอร์มเพิ่มเติมสำหรับภาพขนาดเล็กสำหรับการดูล่วงหน้า。 |
big_thumbs[].fext |
string |
นามสกุลไฟล์ที่ให้ไว้สำหรับรูปภาพขนาดเล็กสำหรับดูล่วงหน้า。 |
การเล่นและคุณภาพเสียง55 ฟิลด์
data.aweme_detail.video
เมตาดาต้าและทรัพยากรการเล่นวิดีโอที่มีอยู่。วัตถุนี้สามารถมีอยู่สำหรับแกลเลอรี่รูปภาพได้เช่นกัน。
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
duration |
integer |
ความยาวของวิดีโอในหน่วยมิลลิวินาที |
width |
integer |
ความกว้างของวิดีโอที่ Douyin รายงานในพิกเซล. |
height |
integer |
ความสูงของวิดีโอที่ Douyin รายงานในพิกเซล. |
format |
string |
รูปแบบของวิดีโอที่ Douyin รายงาน. |
ratio |
string |
คำอธิบายความละเอียดที่ Douyin รายงาน. |
has_watermark |
boolean |
ตัวดอกยักษ์จากข้อมูลเมตาดาต้าของวิดีโอ. |
play_addr |
object |
ที่อยู่การเล่นหลักที่ให้ไว้สำหรับวิดีโอ. |
play_addr.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
play_addr.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
play_addr.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
play_addr.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
play_addr.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
play_addr.data_size |
integer |
ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
play_addr_h264 |
object |
ที่อยู่ที่ให้ไว้สำหรับรูปแบบ H.264. |
play_addr_h264.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
play_addr_h264.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
play_addr_h264.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
play_addr_h264.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
play_addr_h264.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
play_addr_h264.data_size |
integer |
ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
play_addr_265 |
object |
ที่อยู่ที่ระบุในช่องการเล่น H.265. |
play_addr_265.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
play_addr_265.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
play_addr_265.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
play_addr_265.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
play_addr_265.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
play_addr_265.data_size |
integer |
ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
download_addr |
object |
ที่อยู่สำหรับดาวน์โหลดวิดีโอ. |
download_addr.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
download_addr.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
download_addr.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
download_addr.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
download_addr.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
download_addr.data_size |
integer |
ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
bit_rate |
array |
ข้อมูลเมตาดาต้าเกี่ยวกับรูปแบบการเล่นและอัตราการส่งข้อมูลที่ให้ไว้สำหรับวิดีโอ. |
bit_rate[] |
object |
รูปแบบการเล่นหนึ่งที่ให้ไว้สำหรับวิดีโอ. |
bit_rate[].bit_rate |
integer |
อัตราการส่งข้อมูลในการเข้ารหัสในบิตต่อวินาที. |
bit_rate[].FPS |
integer |
อัตราการส่งภาพในภาพต่อวินาที. |
bit_rate[].format |
string |
รูปแบบของสื่อที่รายงานสำหรับการเข้ารหัสนี้. |
bit_rate[].gear_name |
string |
ป้ายชื่อของการตั้งค่าผู้เขียนข้อมูลสำหรับตัวเลือกนี้ได้รับการรายงาน。 |
bit_rate[].quality_type |
integer |
รหัสประเภทคุณภาพสำหรับการเข้ารหัสนี้ได้รับการรายงาน。 |
bit_rate[].is_h265 |
integer |
ตัวเลือกการเข้ารหัส H.265 ได้รับการรายงาน。 |
bit_rate[].HDR_type |
string |
ป้ายชื่อประเภท HDR สำหรับการเข้ารหัสนี้ได้รับการรายงาน。 |
bit_rate[].HDR_bit |
string |
ป้ายชื่อความลึกบิตของ HDR สำหรับการเข้ารหัสนี้ได้รับการรายงาน。 |
bit_rate[].play_addr |
object |
ที่อยู่การเล่นสำหรับการเข้ารหัสนี้。 |
bit_rate[].play_addr.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
bit_rate[].play_addr.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
bit_rate[].play_addr.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
bit_rate[].play_addr.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
bit_rate[].play_addr.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
bit_rate[].play_addr.data_size |
integer |
ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า. |
audio |
object |
เมตาดาต้าวัสดุเสียงที่มีอยู่ในวัตถุวิดีโอ。อาจว่างเปล่าได้。 |
meta |
string |
ข้อมูลเมตาดาต้าวิดีโอที่ส่งมาในรูปแบบสตริงที่เข้ารหัส |
is_h265 |
integer |
ตัวชี้วัด H.265 ที่ส่งกลับโดย Douyin ในรูปแบบตัวเลข |
is_source_HDR |
integer |
ตัวชี้วัดระดับความแรงของภาพสูงที่ส่งกลับมาในรูปแบบตัวเลข |
เพลงและเสียง35 ฟิลด์
data.aweme_detail.music
ข้อมูลเมตาดาต้าเพลงหรือเสียงที่เกี่ยวข้องกับการโพสต์
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
id |
integer |
ID เพลงในรูปแบบตัวเลข。ใช้ตัวแปล JSON แบบไม่สูญเสียเพื่อรักษาค่าทั้งหมดไว้ใน JavaScript。 |
id_str |
string |
ID เพลงที่ถูกเข้ารหัสในรูปแบบสตริง。 |
mid |
string |
ID เพลงที่ถูกส่งกลับมาในช่องกลาง。 |
title |
string |
ชื่อของเพลงหรือเสียง。 |
author |
string |
ชื่อศิลปินหรือผู้สร้างเสียงที่ถูกส่งกลับมาพร้อมกับเพลง。 |
album |
string |
ชื่ออัลบั้มเมื่อมีการระบุ。 |
is_original_sound |
boolean |
ว่าดูยินจะจัดให้เพลงนี้เป็นเพลงต้นฉบับหรือไม่。 |
cover_thumb |
object |
ภาพหน้าปกของเพลงหรือเสียง。 |
cover_thumb.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
cover_thumb.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
cover_thumb.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
cover_thumb.width |
integer |
ความกว้างของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
cover_thumb.height |
integer |
ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า |
play_url |
object |
ทรัพยากรการเล่นสำหรับเพลงหรือเสียง。 |
play_url.uri |
string |
อุปกรณ์ที่ดูyin รายงาน |
play_url.url_list |
array |
URL ที่ให้ไว้สำหรับทรัพยากร |
play_url.url_list[] |
string |
URL ที่ให้ไว้สำหรับทรัพยากร |
cover_medium |
object |
ภาพปกเพลงขนาดกลาง |
cover_medium.uri |
string |
ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับภาพปก |
cover_medium.url_list |
array |
URL ที่ให้ไว้สำหรับภาพปกเพลง |
cover_medium.url_list[] |
string |
URL สำหรับภาพปกเพลง |
cover_medium.width |
integer |
ความกว้างของภาพปกเพลงที่รายงานมา |
cover_medium.height |
integer |
ความสูงของภาพปกเพลงที่รายงานมา |
cover_large |
object |
ภาพปกเพลงขนาดใหญ่ |
cover_large.uri |
string |
ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับภาพปก |
cover_large.url_list |
array |
URL ที่ให้ไว้สำหรับภาพปกเพลง |
cover_large.url_list[] |
string |
URL สำหรับภาพปกเพลง |
cover_large.width |
integer |
ความกว้างของภาพปกเพลงที่รายงานมา |
cover_large.height |
integer |
ความสูงของภาพปกเพลงที่รายงานมา |
cover_hd |
object |
ภาพปกเพลงความละเอียดสูง |
cover_hd.uri |
string |
ตัวระบุทรัพยากรของแพลตฟอร์มสำหรับภาพปก |
cover_hd.url_list |
array |
URL ที่ให้ไว้สำหรับภาพปกเพลง |
cover_hd.url_list[] |
string |
URL สำหรับภาพปกเพลง |
cover_hd.width |
integer |
ความกว้างของภาพปกเพลงที่รายงานมา |
cover_hd.height |
integer |
ความสูงของภาพปกเพลงที่รายงานมา |
การแชร์ หัวข้อ และการกล่าวถึง17 ฟิลด์
data.aweme_detail
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
share_url |
string |
URL การแชร์ของ Douyin สำหรับโพสต์ |
share_info |
object |
ข้อมูลเมตาดาต้าที่ให้มาเพื่อแชร์โพสต์ |
share_info.share_url |
string |
URL ที่ให้ไว้สำหรับการแชร์วิดีโอ |
share_info.share_title |
string |
ชื่อที่ให้ไว้สำหรับการแชร์วิดีโอ |
share_info.share_desc |
string |
คำอธิบายที่ให้ไว้สำหรับการแชร์วิดีโอ |
text_extra |
array |
ฮาสตาร์และการกล่าวถึงผู้ใช้ที่เกี่ยวข้องกับข้อความโพสต์。 |
text_extra[] |
object |
คำอธิบายข้อความหนึ่ง |
text_extra[].type |
integer |
รหัสประเภทของคำอธิบายที่รายงานโดย Douyin |
text_extra[].hashtag_id |
string |
ID ของฮาสตัทที่ถูกอธิบาย เมื่อคำอธิบายเป็นฮาสตัท |
text_extra[].hashtag_name |
string |
ชื่อแฮชแท็กที่มีการอธิบายไว้ |
text_extra[].is_commerce |
boolean |
ว่าดูyin จะระบุแฮชแท็กที่มีการอธิบายไว้ว่าเป็นสินค้าหรือไม่ |
cha_list |
array |
เมื่อไหร่ที่เกี่ยวข้องกับหัวข้อหรือความท้าทายของโพสต์. |
cha_list[] |
object |
หัวข้อหรือความท้าทายหนึ่งหัวข้อ |
cha_list[].cid |
string |
ID หัวข้อหรือความท้าทาย Douyin |
cha_list[].cha_name |
string |
ชื่อหัวข้อหรือความท้าทาย |
cha_list[].desc |
string |
คำอธิบายของหัวข้อหรือความท้าทาย |
cha_list[].is_commerce |
boolean |
ว่าดูyin จะระบุหัวข้อหรือความท้าทายว่าเป็นสินค้าหรือไม่ |
สถานะและการควบคุมของโพสต์12 ฟิลด์
data.aweme_detail
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
status |
object |
ป้ายบอกสถานะการว่างและการดูสำหรับโพสต์ |
status.is_private |
boolean |
ว่ามีการระบุโพสต์ว่าเป็นส่วนตัวหรือไม่ในคำตอบของ Douyin |
status.is_delete |
boolean |
ว่ามีการระบุโพสต์ว่าถูกลบหรือไม่ในคำตอบของ Douyin |
status.is_prohibited |
boolean |
ว่าดูไทน์จะระบุโพสต์ว่าเป็นโพสต์ที่ถูกห้ามหรือไม่ในข้อมูลตอบกลับ。 |
status.allow_comment |
boolean |
ว่าสถานะของแพลตฟอร์มแสดงว่าการแสดงความคิดเห็นอนุญาตหรือไม่ |
status.allow_share |
boolean |
ว่าสถานะของแพลตฟอร์มแสดว่าการแชร์อนุญาตหรือไม่ |
video_control |
object |
ตัวควบคุมการโต้ตอบของสื่อที่ถูกรายงานโดย Douyin |
video_control.allow_download |
boolean |
ว่าผลตอบกลับของแพลตฟอร์มบ่งชี้ว่าการดาวน์โหลดเป็นไปได้หรือไม่。 |
video_control.allow_duet |
boolean |
ว่าผลตอบกลับของแพลตฟอร์มบ่งชี้ว่าการทำ duet เป็นไปได้หรือไม่。 |
video_control.allow_stitch |
boolean |
ว่าผลตอบกลับของแพลตฟอร์มบ่งชี้ว่าการซ้อนภาพเป็นไปได้หรือไม่。 |
video_control.allow_share |
boolean |
ว่าหัวข้อควบคุมของแพลตฟอร์มบ่งชี้ว่าการแชร์เป็นไปได้หรือไม่。 |
video_control.show_watermark |
boolean |
ว่าควบคุมวิดีโอบ่งชี้ว่ามีแว่นตาปลิวแสดงอยู่หรือไม่。 |
ข้อมูลกำกับการตอบกลับ7 ฟิลด์
data
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
status_code |
integer |
รหัสสถานะ Douyin ที่ส่งกลับในเนื้อหาอ็อบเจกต์โพสต์ |
extra |
object |
ข้อมูลเมตาดาต้าอื่นๆ ที่ส่งมาพร้อมกับการตอบกลับจาก Douyin |
extra.now |
integer |
เวลาการตอบกลับที่ Douyin บันทึกไว้ในรูปแบบเวลาบนซีรีส์ Unix ในหน่วยมิลลิวินาที |
extra.logid |
string |
ตัวระบุที่ Douyin ใช้บันทึกข้อมูลการตอบกลับ |
extra.fatal_item_ids |
array |
ตัวระบุของไอเทมที่ Douyin รายงานว่าเกิดข้อผิดพลาดร้ายแรง ลิสต์นี้อาจว่างเปล่าได้ |
log_pb |
object |
ข้อมูลเมตาดาต้าเพิ่มเติมที่ Douyin ให้มาเกี่ยวกับการตอบกลับ |
log_pb.impr_id |
string |
ตัวระบุของบันทึกที่ถูกส่งกลับมาในเมตาดาต้าของแพลตฟอร์ม |
ฟิลด์อื่น2 ฟิลด์
| เส้นทางฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
data |
- | ฟิลด์ที่ส่งกลับเมื่อการตอบกลับมีอ็อบเจกต์รายละเอียดโพสต์ Douyin |
data.aweme_detail |
object |
โพสต์ Douyin ที่ต้องการ โดยรวมถึงข้อมูลเมตาดาต้าของวิดีโอหรือแกลเลอรี่ภาพเมื่อส่งกลับมา |
ตัวอย่างผลการตอบกลับ
กำลังโหลดตัวอย่างการตอบกลับ...