ข้ามไปยังเนื้อหา

Douyin (TikTok ประเทศจีน) การค้นหาวิดีโอ API (V4) ​

GET
สถานะสุขภาพของ API
สถานะดี มีสภาพ จำกัด ส่วนใหญ่ไม่มีสภาพ ไม่มีข้อมูล
กำลังโหลดสถานะสุขภาพ...

ค้นหาวิดีโอบน Douyin (TikTok China) โดยใช้คำสำคัญ พร้อมการจัดลำดับ, เวลาการเผยแพร่, ความยาว, และตัวกรองหน้า หน้าต่อไปต้องใช้ ID การค้นหาในหน้าที่แล้ว ใช้เพื่อการค้นหาเนื้อหาและการวิจัยแนวโน้ม

พารามิเตอร์ ​

ชื่อ ตำแหน่ง ชนิดข้อมูล จำเป็น ค่าเริ่มต้น คำอธิบาย
token query string ใช่ - โทเค็นการเข้าถึงสำหรับบริการ API นี้
keyword query string ใช่ - คำสำคัญสำหรับการค้นหา.
sortType query string ไม่ใช่ _0 เกณฑ์การจัดเรียงผลลัพธ์การค้นหา.


ค่าที่มีอยู่:

- _0: ทั่วไป

- _1: ได้รับความนิยมมากที่สุด

- _2: ใหม่ที่สุด
publishTime query string ไม่ใช่ _0 กรอบเวลาการเผยแพร่วิดีโอสำหรับการกรอง.


ค่าที่มีอยู่:

- _0: ไม่มีข้อจำกัด

- _1: 24 ชั่วโมงที่ผ่านมา

- _7: 7 วันที่ผ่านมา

- _180: 6 เดือนที่ผ่านมา
duration query string ไม่ใช่ _0 ความยาวของวิดีโอสำหรับการกรอง.


ค่าที่มีอยู่:

- _0: ไม่มีข้อจำกัด

- _1: น้อยกา 1 นาที

- _2: 1-5 นาที

- _3: นานกา 5 นาที
page query integer ไม่ใช่ 1 หมายเลขหน้า (เริ่มต้นจาก 1).
searchId query string ไม่ใช่ - ID การค้นหา ต้องระบุเมื่อขอหน้าที่ > 1 ให้ใช้ data.business_config.next_page.search_id จากข้อมูลตอบกลับก่อนหน้า และหยุดแบ่งหน้าเมื่อ data.business_config.has_more เป็น 0

ตัวอย่างโค้ด ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin/search-video/v4?token=YOUR_API_KEY&keyword=VALUE'
text
ฉันต้องการใช้ API "การค้นหาวิดีโอ (V4)" จาก JustOneAPI.
URL หลัก: https://api.justoneapi.com.
เส้นทาง API: /api/douyin/search-video/v4?token=YOUR_API_KEY&keyword=VALUE
เอนด์พอยต์ API: BASE_URL + /api/douyin/search-video/v4?token=YOUR_API_KEY&keyword=VALUE
เมธอด HTTP: GET
การยืนยันตัวตน: เพิ่มพารามิเตอร์ "token" เข้าไปใน URL.
คำนิยาม OpenAPI: https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-search-v4-th.json

พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- keyword (query): คำสำคัญสำหรับการค้นหา. (จำเป็น)
- sortType (query): เกณฑ์การจัดเรียงผลลัพธ์การค้นหา.

ค่าที่มีอยู่:
- `_0`: ทั่วไป
- `_1`: ได้รับความนิยมมากที่สุด
- `_2`: ใหม่ที่สุด
- publishTime (query): กรอบเวลาการเผยแพร่วิดีโอสำหรับการกรอง.

ค่าที่มีอยู่:
- `_0`: ไม่มีข้อจำกัด
- `_1`: 24 ชั่วโมงที่ผ่านมา
- `_7`: 7 วันที่ผ่านมา
- `_180`: 6 เดือนที่ผ่านมา
- duration (query): ความยาวของวิดีโอสำหรับการกรอง.

ค่าที่มีอยู่:
- `_0`: ไม่มีข้อจำกัด
- `_1`: น้อยกา 1 นาที
- `_2`: 1-5 นาที
- `_3`: นานกา 5 นาที
- page (query): หมายเลขหน้า (เริ่มต้นจาก 1).
- searchId (query): ID การค้นหา ต้องระบุเมื่อขอหน้าที่ > 1 ให้ใช้ data.business_config.next_page.search_id จากข้อมูลตอบกลับก่อนหน้า และหยุดแบ่งหน้าเมื่อ data.business_config.has_more เป็น 0

รูปแบบที่ส่งกลับ: จัดการ 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/search-video/v4?token=YOUR_API_KEY&keyword=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/search-video/v4?token=YOUR_API_KEY&keyword=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/search-video/v4?token=YOUR_API_KEY&keyword=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/search-video/v4?token=YOUR_API_KEY&keyword=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/search-video/v4?token=YOUR_API_KEY&keyword=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).

ผลลัพธ์การค้นหาและการแสดงผลแบบแบ่งหน้า8 ฟิลด์

data

ผลการค้นหาและรายละเอียดการแสดงผลการเรียกค้นคำสำคัญ Douyin.

ฟิลด์ ชนิดข้อมูล คำอธิบาย
business_data array หน้าจอผลการค้นหา. วิดีโอเดียวกันอาจปรากฏในหลายหน้า. ใช้ aweme_id เพื่อกำจัดผลการค้นหาวิดีโอที่ซ้ำกัน.
business_config object ข้อมูลการแสดงผลและการสืบค้น。
business_config.keyword string คำสำคัญที่รายงานสำหรับการค้นหานี้。
business_config.card_count integer จำนวนการ์ดของหน้าผลลัพธ์ตามที่รายงาน
business_config.has_more integer | string หยุดเมื่อตัวชี้ไปที่ 0,รวมถึงเมื่อมี ID การค้นหายังคงมีอยู่。การตอบกลับที่มีผลลัพธ์สิ้นสุดอาจมีเพียงตัวชี้การแสดงผลเท่านั้น。
business_config.next_page object ข้อมูลการดำเนินการเมื่อมีการระบุ。
business_config.next_page.search_id string ID การค้นหาสำหรับหน้าถัดไป。ส่งมันเป็น searchId,เพิ่มหน้าไปหนึ่งและรักษาคำสำคัญและตัวกรองไว้ไม่เปลี่ยนแปลง。หน้าถัดไปอาจส่ง ID การค้นหาเดียวกันมา。
status_code number | string รหัสสถานะการค้นหาของดูยินเมื่อมีการระบุ。
ไอเทมการแสดงผล2 ฟิลด์

data.business_data[]

ฟิลด์ ชนิดข้อมูล คำอธิบาย
data_id string ตัวระบุของคูปองภายในคำตอบปัจจุบัน
type integer รหัสประเภทของผลลัพธ์ ประเภทที่พบได้มี 1 สำหรับผลลัพธ์วิดีโอ และ 66667 สำหรับการค้นหาที่เกี่ยวข้อง
ข้อมูลวิดีโอ12 ฟิลด์

data.business_data[].data.aweme_info

ผลลัพธ์วิดีโอ Douyin เมื่อคูปองมีวิดีโออยู่

ฟิลด์ ชนิดข้อมูล คำอธิบาย
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
media_type integer รหัสประเภทของสื่อที่รายงานโดย Douyin
ip_attribution string ป้ายกำกับภูมิภาค IP ที่รายงานโดย Douyin หากมี
ผู้เขียนโพสต์26 ฟิลด์

data.business_data[].data.aweme_info.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 ความสูงของทรัพยากรในพิกเซลที่รายงานในเมทาดาต้า
ระดับความสนใจจากผู้ใช้7 ฟิลด์

data.business_data[].data.aweme_info.statistics

จำนวนผู้เข้าชมวิดีโอที่รายงาน.

ฟิลด์ ชนิดข้อมูล คำอธิบาย
aweme_id string ID ของวิดีโอ Douyin ที่เกี่ยวข้องกับสถิติเหล่านี้.
digg_count integer จำนวนไลก์ของวิดีโอตามที่รายงาน
comment_count integer จำนวนความคิดเห็นของวิดีโอตามที่รายงาน
collect_count integer จำนวนการบันทึกของวิดีโอตามที่รายงาน
share_count integer จำนวนการแชร์ของวิดีโอตามที่รายงาน
forward_count integer จำนวนการส่งต่อที่ระบุในการตอบกลับ.
download_count integer จำนวนการดาวน์โหลดของวิดีโอตามที่รายงาน
ภาพปกวิดีโอ22 ฟิลด์

data.business_data[].data.aweme_info.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 ที่ให้ไว้สำหรับทรัพยากร
การเล่นและคุณภาพเสียง51 ฟิลด์

data.business_data[].data.aweme_info.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 ขนาดไฟล์ทรัพยากรในไบต์ที่รายงานในเมตาดาต้า.
เพลงและเสียง17 ฟิลด์

data.business_data[].data.aweme_info.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 ที่ให้ไว้สำหรับทรัพยากร
การแชร์ หัวข้อ และการกล่าวถึง19 ฟิลด์

data.business_data[].data.aweme_info

ฟิลด์ ชนิดข้อมูล คำอธิบาย
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 | null ฮาสตัทและการกล่าวถึงผู้ใช้ที่เกี่ยวข้องกับข้อความโพสต์ ลิสต์นี้อาจเป็น null
text_extra[] object คำอธิบายข้อความหนึ่ง
text_extra[].type integer รหัสประเภทของคำอธิบายที่รายงานโดย Douyin
text_extra[].hashtag_id string ID ของฮาสตัทที่ถูกอธิบาย เมื่อคำอธิบายเป็นฮาสตัท
text_extra[].hashtag_name string ชื่อแฮชแท็กที่มีการอธิบายไว้
text_extra[].user_id string ID อุปกรณ์ Douyin เมื่อมีการอ้างอิงถึงผู้ใช้
text_extra[].sec_uid string ID อุปกรณ์ Douyin ท้ายที่สุดสำหรับผู้ใช้ที่ถูกอ้างอิง
text_extra[].is_commerce boolean ว่าดูyin จะระบุแฮชแท็กที่มีการอธิบายไว้ว่าเป็นสินค้าหรือไม่
cha_list array | null เมื่อไหร่ที่มีการอธิบายถึงหัวข้อหรือความท้าทายที่เกี่ยวข้องกับโพสต์ ชุดข้อมูลนี้อาจเป็น null
cha_list[] object หัวข้อหรือความท้าทายหนึ่งหัวข้อ
cha_list[].cid string ID หัวข้อหรือความท้าทาย Douyin
cha_list[].cha_name string ชื่อหัวข้อหรือความท้าทาย
cha_list[].desc string คำอธิบายของหัวข้อหรือความท้าทาย
cha_list[].is_commerce boolean ว่าดูyin จะระบุหัวข้อหรือความท้าทายว่าเป็นสินค้าหรือไม่
การค้นหาที่เกี่ยวข้อง3 ฟิลด์

data.business_data[].data

ฟิลด์ ชนิดข้อมูล คำอธิบาย
related_word_list array คำค้นหาที่เกี่ยวข้องที่แนะนำเมื่อการ์ดมีคำเหล่านั้น。
related_word_list[] object คำค้นหาที่เกี่ยวข้องหนึ่งคำ。
related_word_list[].related_word string คำค้นหาที่เกี่ยวข้องที่แนะนำ。
ฟิลด์อื่น2 ฟิลด์
เส้นทางฟิลด์ ชนิดข้อมูล คำอธิบาย
data.business_data[] object หน้าจอผลการค้นหาหนึ่งที่ส่งกลับมา.
data.business_data[].data object เนื้อหาที่ให้ไว้สำหรับคูปองผลลัพธ์ ฟิลด์ต่างๆ ขึ้นอยู่กับประเภทของคูปอง

ตัวอย่างผลการตอบกลับ ​

กำลังโหลดตัวอย่างการตอบกลับ...