Xiaohongshu (RedNote) โน้ตที่ผู้ใช้บันทึกเป็นรายการโปรด API (V1)
ดึงโน้ตที่ผู้ใช้ใน Xiaohongshu (RedNote) ชื่นชอบ โดยใช้ ID ผู้ใช้ พร้อมการแบ่งหน้าแบบเคอร์เซอร์ ใช้เพื่อตรวจสอบเนื้อหาที่ผู้ใช้เก็บไว้และค้นหาการสนใจเนื้อหา
สิ่งที่น่าสนใจ
คำแนะนำ
ผลการค้นหาในหน้าแรก หน้าถัดไป คอลเลกชันว่าง และคอลเลกชันส่วนตัวสามารถเรียกเก็บค่าบริการได้.
พารามิเตอร์
| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|---|---|
token |
query | string |
ใช่ | - | โทเค็นการเข้าถึงสำหรับบริการ API นี้ |
userId |
query | string |
ใช่ | - | ตัวระบุผู้ใช้ที่ไม่ซ้ำกันบน Xiaohongshu |
lastCursor |
query | string |
ไม่ใช่ | |
สำหรับหน้าถัดไป ให้ส่งเคอร์เซอร์จากข้อมูลตอบกลับก่อนหน้า สำหรับหน้าแรก ให้ละพารามิเตอร์หรือส่งค่าว่าง |
ตัวอย่างโค้ด
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=VALUE'
ฉันต้องการใช้ API "โน้ตที่ผู้ใช้บันทึกเป็นรายการโปรด (V1)" จาก JustOneAPI.
URL หลัก: https://api.justoneapi.com.
เส้นทาง API: /api/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=VALUE
เอนด์พอยต์ API: BASE_URL + /api/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=VALUE
เมธอด HTTP: GET
การยืนยันตัวตน: เพิ่มพารามิเตอร์ "token" เข้าไปใน URL.
คำนิยาม OpenAPI: https://docs.justoneapi.com/openapi/xiaohongshu-rednote/user-favorited-notes-v1-th.json
พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- userId (query): ตัวระบุผู้ใช้ที่ไม่ซ้ำกันบน Xiaohongshu (จำเป็น)
- lastCursor (query): สำหรับหน้าถัดไป ให้ส่งเคอร์เซอร์จากข้อมูลตอบกลับก่อนหน้า สำหรับหน้าแรก ให้ละพารามิเตอร์หรือส่งค่าว่าง
รูปแบบที่ส่งกลับ: จัดการ 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 และจัดการการตอบกลับ.
import requests
BASE_URL = "https://api.justoneapi.com" # ให้โดยเซิร์ฟเวอร์ OpenAPI
url = BASE_URL + "/api/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=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")
const BASE_URL = "https://api.justoneapi.com"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
const url = BASE_URL + "/api/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=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`);
}
}
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/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=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");
}
}
}
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/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=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
$BASE_URL = 'https://api.justoneapi.com'; // ให้โดยเซิร์ฟเวอร์ OpenAPI
$url = $BASE_URL . '/api/xiaohongshu/get-user-faved-note-list/v1?token=YOUR_API_KEY&userId=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.notes[]
โพสต์หนึ่งรายการในรายการที่บันทึกไว้
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
id |
string |
ID ของโพสต์ที่บันทึกไว้ |
display_title |
string |
ชื่อของโพสต์ที่แสดงในรายการ |
title |
string |
ชื่อของโพสต์ หากมี |
desc |
string |
ข้อความหรือคำอธิบายที่ส่งกลับมาสำหรับข้อความ. |
type |
string |
ประเภทโพสต์ตามที่ Xiaohongshu รายงาน |
create_time |
integer |
เวลาที่สร้างโพสต์ตามที่รายงาน ในรูปแบบเวลาประทับ Unix หน่วยวินาที |
last_update_time |
integer |
เวลาที่อัปเดตล่าสุดตามที่รายงาน ในรูปแบบเวลาประทับ Unix หน่วยวินาที ค่าอาจเป็นศูนย์ |
ip_location |
string |
ป้ายกำกับตำแหน่ง IP ที่ Xiaohongshu แสดงสำหรับโพสต์ หากมี |
is_goods_note |
boolean |
Xiaohongshu ระบุข้อความว่าเป็นข้อความสินค้าหรือไม่. |
xsec_token |
string |
Token ของ Xiaohongshu ที่เชื่อมโยงกับลิงก์โพสต์ หากระบบส่งกลับมา |
note_attributes |
array |
คุณสมบัติต่างๆที่รายงานโดย Xiaohongshu. |
note_attributes[] |
string |
ค่าแอตทริบิวต์ดิบของโพสต์ตามที่ Xiaohongshu ส่งกลับมา |
ats |
array |
บัญชีที่ถูกกล่าวถึงในหมายเหตุ เมื่อถูกส่งกลับมา. |
รายการและการแสดงผลแบบแบ่งหน้า3 ฟิลด์
data
ผลลัพธ์โพสต์ที่บันทึกไว้และฟิลด์สำหรับแบ่งหน้า เมื่อข้อมูลตอบกลับเป็นออบเจ็กต์ การตอบกลับสำเร็จอาจไม่มีข้อมูลได้เช่นกัน
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
cursor |
string |
เคอร์เซอร์ที่ระบบส่งกลับเพื่อขอหน้าถัดไป ส่งค่านี้เป็น lastCursor โดยคงค่าเดิม ฟิลด์อาจไม่มีหรือมีค่าว่าง |
has_more |
boolean |
ระบุว่าข้อมูลตอบกลับแจ้งว่ามีรายการเพิ่มเติมหรือไม่ |
notes |
array |
โพสต์ที่โปรไฟล์ที่ระบุบันทึกไว้ หากไม่สามารถดึงคอลเลกชันได้ ระบบอาจส่งอาร์เรย์ว่าง |
ระดับความสนใจจากผู้ใช้3 ฟิลด์
data.notes[]
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
comments_count |
integer |
จำนวนความคิดเห็นของโพสต์ตามที่รายงาน |
collected_count |
integer |
จำนวนการบันทึกของโพสต์ตามที่รายงาน |
share_count |
integer |
จำนวนครั้งที่โน้ตถูกแชร์ |
ผู้เขียนโพสต์7 ฟิลด์
data.notes[].user
ผู้เขียนของหมายเหตุ.
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
user_id |
string |
ID อุปกรณ์ของผู้เขียนหมายเหตุ. |
images |
string |
URL ของรูปภาพอวตารของผู้เขียน หากมี. |
nickname |
string |
ชื่อที่แสดงผลของผู้เขียน |
followed |
boolean |
สถานะการติดตามที่ Xiaohongshu รายงานสำหรับบริบทการตอบกลับปัจจุบัน. |
red_official_verified |
boolean |
สถานะการตรวจสอบอย่างเป็นทางการที่ Xiaohongshu รายงาน. |
red_official_verify_type |
integer |
รหัสหมวดหมู่การตรวจสอบอย่างเป็นทางการที่ Xiaohongshu รายงาน. |
show_red_official_verify_icon |
boolean |
ตัวชี้วัดที่บ่งบอกว่าจะแสดงไอคอนการตรวจสอบอย่างเป็นทางการหรือไม่. |
ภาพถ่ายสด35 ฟิลด์
data.notes[].images_list[].live_photo
ข้อมูลเมตาดาต้าของวิดีโอแบบเรียลไทม์ที่ส่งกลับมา หากมี
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
media |
object |
ข้อมูลเมตาดาต้าเกี่ยวกับการเล่นวิดีโอสำหรับวิดีโอแบบเรียลไทม์ |
media.video_id |
string |
ตัวระบุวิดีโอสำหรับวิดีโอแบบ Live Photo. |
media.video |
object |
ข้อมูลเมตาดาต้าเกี่ยวกับวิดีโอที่เกี่ยวข้องกับวิดีโอแบบเรียลไทม์ |
media.video.width |
integer |
ความกว้างของวิดีโอในพิกเซล |
media.video.height |
integer |
ความสูงของวิดีโอในพิกเซล |
media.video.duration |
integer |
ค่าความยาวของวิดีโอสำหรับวิดีโอแบบ Live Photo. |
media.video.drm_type |
integer |
รหัสหมวดหมู่ DRM ที่รายงานสำหรับวิดีโอ |
media.video.hdr_type |
integer |
รหัสหมวดหมู่ HDR ที่รายงานสำหรับวิดีโอ |
media.video.stream_types |
array |
รหัสประเภทการสตรีมที่รายงานสำหรับวิดีโอ |
media.video.stream_types[] |
integer |
รหัสประเภทการสตรีมที่รายงานสำหรับวิดีโอ |
media.stream |
object |
ตัวเลือกการสตรีมที่จัดกลุ่มตามป้ายกำกับของโค้ดแท็กที่ Xiaohongshu ส่งกลับมา |
media.stream.h264 |
array |
การสตรีม H.264 สำหรับวิดีโอแบบเรียลไทม์ |
media.stream.h265 |
array |
สตรีม H.265 ที่ส่งกลับสำหรับ Live Photo |
media.stream.h265[] |
object |
เมตาดาต้าสำหรับสตรีม Live Photo ในรูปแบบ H.265 |
media.stream.h265[].master_url |
string |
URL หลักที่ส่งมาสำหรับการสตรีมนี้ |
media.stream.h265[].backup_urls |
array |
URL ทางเลือกที่ส่งมาสำหรับการสตรีม |
media.stream.h265[].backup_urls[] |
string |
URL การสตรีมทางเลือก |
media.stream.h265[].width |
integer |
ความกว้างของการสตรีมในพิกเซล |
media.stream.h265[].height |
integer |
ความสูงของการสตรีมในพิกเซล |
media.stream.h265[].fps |
integer |
อัตราการอัปโหลดที่รายงานสำหรับการสตรีม |
media.stream.h265[].format |
string |
รูปแบบสื่อที่รายงานสำหรับการสตรีม |
media.stream.h265[].video_codec |
string |
โค้ดแท็กของวิดีโอที่รายงานสำหรับการสตรีม |
media.stream.h265[].audio_codec |
string |
โค้ดแท็กของเสียงที่รายงานสำหรับการสตรีม อาจว่างเปล่า |
media.stream.h265[].audio_channels |
integer |
จำนวนช่องเสียงที่รายงานสำหรับสตรีม |
media.stream.h265[].avg_bitrate |
integer |
ค่าเฉลี่ยของบิตเรตที่รายงานสำหรับสตรีม |
media.stream.h265[].video_bitrate |
integer |
ค่าบิตเรตของวิดีโอที่รายงานสำหรับสตรีม |
media.stream.h265[].audio_bitrate |
integer |
ค่าบิตเรตของเสียงที่รายงานสำหรับสตรีม |
media.stream.h265[].quality_type |
string |
ป้ายกำกับคุณภาพดิบที่รายงานสำหรับสตรีม |
media.stream.h265[].stream_desc |
string |
คำอธิบายที่ Xiaohongshu ให้ไว้สำหรับสตรีม |
media.stream.h265[].duration |
integer |
ค่าเวลาการสตรีมที่ Xiaohongshu รายงาน |
media.stream.h265[].video_duration |
integer |
ค่าเวลาการสตรีมของวิดีโอที่รายงานสำหรับสตรีม |
media.stream.h265[].audio_duration |
integer |
ค่าเวลาการสตรีมของเสียงที่รายงานสำหรับสตรีม |
media.stream.h265[].size |
integer |
ค่าขนาดของสตรีมที่ Xiaohongshu รายงาน |
media.stream.h266 |
array |
รายการสตรีม H.266 ที่ Xiaohongshu ส่งกลับ อาจว่างเปล่า |
media.stream.av1 |
array |
รายการสตรีม AV1 ที่ Xiaohongshu ส่งกลับ อาจว่างเปล่า |
รูปภาพ8 ฟิลด์
data.notes[].images_list[]
ภาพที่เกี่ยวข้องกับบันทึก ซึ่งอาจรวมถึงภาพปกสำหรับบันทึกวิดีโอ
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
url |
string |
URL ของรูปภาพ. |
original |
string |
URL ที่ให้ไว้ในฟิลด์ original-image. |
width |
integer |
ความกว้างของภาพที่บันทึกไว้ในเมตาดาต้า ในพิกเซล |
height |
integer |
ความสูงของภาพที่บันทึกไว้ในเมตาดาต้า ในพิกเซล |
fileid |
string |
ตัวระบุไฟล์ของแพลตฟอร์มสำหรับภาพ |
index |
integer |
อินดิเคตของตำแหน่งรูปภาพที่แพลตฟอร์มรายงาน. |
url_size_large |
string |
URL สำหรับเวอร์ชันภาพขนาดใหญ่ |
live_photo_file_id |
string |
ID ของภาพ Live Photo ที่รายงานมา |
ข้อมูลวิดีโอ7 ฟิลด์
data.notes[].video_info_v2
ข้อมูลสื่อที่ส่งกลับมาสำหรับบันทึกวิดีโอบางรายการ
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
image |
object |
ภาพที่เกี่ยวข้องกับวิดีโอ |
image.thumbnail |
string |
URL ของภาพย่อของวิดีโอ หากมี |
image.first_frame |
string |
URL ของเฟรมแรกของวิดีโอ หากมี |
media |
object |
ข้อมูลเมตาดาต้าและสตรีมการเล่นสำหรับบันทึก |
media.video_id |
integer |
ตัวระบุวิดีโอที่เป็นตัวเลขที่รายงานโดย Xiaohongshu。 |
capa |
object |
ข้อมูลเมตาดาต้าอื่นๆ ของวิดีโอ。 |
capa.duration |
integer |
ระยะเวลาของวิดีโอจากข้อมูลเมตาดาต้าเหล่านี้ ในวินาที。 |
วิดีโอสตรีม64 ฟิลด์
data.notes[].video_info_v2.media.stream
ตัวเลือกการสตรีมที่จัดกลุ่มตามป้ายกำกับของโค้ดแท็กที่ Xiaohongshu ส่งกลับมา
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
h264 |
array |
สตรีม H.264 ที่ส่งกลับสำหรับบันทึกวิดีโอ |
h264[] |
object |
ข้อมูลเมตาดาต้าสำหรับสตรีมวิดีโอ H.264 แบบเดียว |
h264[].master_url |
string |
URL หลักที่ส่งมาสำหรับการสตรีมนี้ |
h264[].backup_urls |
array |
URL ทางเลือกที่ส่งมาสำหรับการสตรีม |
h264[].backup_urls[] |
string |
URL การสตรีมทางเลือก |
h264[].width |
integer |
ความกว้างของการสตรีมในพิกเซล |
h264[].height |
integer |
ความสูงของการสตรีมในพิกเซล |
h264[].fps |
integer |
อัตราการอัปโหลดที่รายงานสำหรับการสตรีม |
h264[].format |
string |
รูปแบบสื่อที่รายงานสำหรับการสตรีม |
h264[].video_codec |
string |
โค้ดแท็กของวิดีโอที่รายงานสำหรับการสตรีม |
h264[].audio_codec |
string |
โค้ดแท็กของเสียงที่รายงานสำหรับการสตรีม อาจว่างเปล่า |
h264[].audio_channels |
integer |
จำนวนช่องเสียงที่รายงานสำหรับสตรีม |
h264[].avg_bitrate |
integer |
ค่าเฉลี่ยของบิตเรตที่รายงานสำหรับสตรีม |
h264[].video_bitrate |
integer |
ค่าบิตเรตของวิดีโอที่รายงานสำหรับสตรีม |
h264[].audio_bitrate |
integer |
ค่าบิตเรตของเสียงที่รายงานสำหรับสตรีม |
h264[].quality_type |
string |
ป้ายกำกับคุณภาพดิบที่รายงานสำหรับสตรีม |
h264[].stream_desc |
string |
คำอธิบายที่ Xiaohongshu ให้ไว้สำหรับสตรีม |
h264[].duration |
integer |
ความยาวรวมของสตรีมในมิลลิวินาที. |
h264[].video_duration |
integer |
ระยะเวลาของวิดีโอในมิลลิวินาที。 |
h264[].audio_duration |
integer |
ความยาวของเสียงในมิลลิวินาที. อาจเป็นศูนย์เมื่อสตรีมไม่มีเสียง. |
h264[].size |
integer |
ขนาดของสตรีมในไบต์. |
h265 |
array |
สตรีม H.265 ที่ส่งกลับสำหรับข้อมูลเกี่ยวกับวิดีโอ。 |
h265[] |
object |
ข้อมูลเมตาดาต้าสำหรับสตรีมวิดีโอ H.265 หนึ่งสตรีม。 |
h265[].master_url |
string |
URL หลักที่ส่งมาสำหรับการสตรีมนี้ |
h265[].backup_urls |
array |
URL ทางเลือกที่ส่งมาสำหรับการสตรีม |
h265[].backup_urls[] |
string |
URL การสตรีมทางเลือก |
h265[].width |
integer |
ความกว้างของการสตรีมในพิกเซล |
h265[].height |
integer |
ความสูงของการสตรีมในพิกเซล |
h265[].fps |
integer |
อัตราการอัปโหลดที่รายงานสำหรับการสตรีม |
h265[].format |
string |
รูปแบบสื่อที่รายงานสำหรับการสตรีม |
h265[].video_codec |
string |
โค้ดแท็กของวิดีโอที่รายงานสำหรับการสตรีม |
h265[].audio_codec |
string |
โค้ดแท็กของเสียงที่รายงานสำหรับการสตรีม อาจว่างเปล่า |
h265[].audio_channels |
integer |
จำนวนช่องเสียงที่รายงานสำหรับสตรีม |
h265[].avg_bitrate |
integer |
ค่าเฉลี่ยของบิตเรตที่รายงานสำหรับสตรีม |
h265[].video_bitrate |
integer |
ค่าบิตเรตของวิดีโอที่รายงานสำหรับสตรีม |
h265[].audio_bitrate |
integer |
ค่าบิตเรตของเสียงที่รายงานสำหรับสตรีม |
h265[].quality_type |
string |
ป้ายกำกับคุณภาพดิบที่รายงานสำหรับสตรีม |
h265[].stream_desc |
string |
คำอธิบายที่ Xiaohongshu ให้ไว้สำหรับสตรีม |
h265[].duration |
integer |
ความยาวรวมของสตรีมในมิลลิวินาที. |
h265[].video_duration |
integer |
ระยะเวลาของวิดีโอในมิลลิวินาที。 |
h265[].audio_duration |
integer |
ความยาวของเสียงในมิลลิวินาที. อาจเป็นศูนย์เมื่อสตรีมไม่มีเสียง. |
h265[].size |
integer |
ขนาดของสตรีมในไบต์. |
h266 |
array |
สตรีม H.266 หากมี. |
h266[] |
object |
ข้อมูลเมตาดาต้าสำหรับสตรีม H.266 หนึ่งสตรีม. |
h266[].master_url |
string |
URL หลักที่ส่งมาสำหรับการสตรีมนี้ |
h266[].backup_urls |
array |
URL ทางเลือกที่ส่งมาสำหรับการสตรีม |
h266[].backup_urls[] |
string |
URL การสตรีมทางเลือก |
h266[].width |
integer |
ความกว้างของการสตรีมในพิกเซล |
h266[].height |
integer |
ความสูงของการสตรีมในพิกเซล |
h266[].fps |
integer |
อัตราการอัปโหลดที่รายงานสำหรับการสตรีม |
h266[].format |
string |
รูปแบบสื่อที่รายงานสำหรับการสตรีม |
h266[].video_codec |
string |
โค้ดแท็กของวิดีโอที่รายงานสำหรับการสตรีม |
h266[].audio_codec |
string |
โค้ดแท็กของเสียงที่รายงานสำหรับการสตรีม อาจว่างเปล่า |
h266[].audio_channels |
integer |
จำนวนช่องเสียงที่รายงานสำหรับสตรีม |
h266[].avg_bitrate |
integer |
ค่าเฉลี่ยของบิตเรตที่รายงานสำหรับสตรีม |
h266[].video_bitrate |
integer |
ค่าบิตเรตของวิดีโอที่รายงานสำหรับสตรีม |
h266[].audio_bitrate |
integer |
ค่าบิตเรตของเสียงที่รายงานสำหรับสตรีม |
h266[].quality_type |
string |
ป้ายกำกับคุณภาพดิบที่รายงานสำหรับสตรีม |
h266[].stream_desc |
string |
คำอธิบายที่ Xiaohongshu ให้ไว้สำหรับสตรีม |
h266[].duration |
integer |
ความยาวรวมของสตรีมในมิลลิวินาที. |
h266[].video_duration |
integer |
ระยะเวลาของวิดีโอในมิลลิวินาที。 |
h266[].audio_duration |
integer |
ความยาวของเสียงในมิลลิวินาที. อาจเป็นศูนย์เมื่อสตรีมไม่มีเสียง. |
h266[].size |
integer |
ขนาดของสตรีมในไบต์. |
av1 |
array |
รายการสตรีม AV1 ที่ Xiaohongshu ส่งกลับ อาจว่างเปล่า |
วิดีโอสตรีมเสียง14 ฟิลด์
data.notes[].video_info_v2.media.audio_stream
สตรีมเสียงที่จัดกลุ่มตามตัวแปลงสัญญาณเสียง หากระบบส่งกลับมา
| ฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
AAC |
array |
รายการสตรีมเสียง AAC หากระบบส่งกลับมา |
AAC[] |
object |
- |
AAC[].audio_codec |
string |
ป้ายกำกับตัวแปลงสัญญาณเสียง |
AAC[].audio_channels |
integer |
จำนวนช่องสัญญาณในสตรีมเสียง |
AAC[].master_url |
string |
URL หลักของสตรีมเสียง |
AAC[].backup_urls |
array |
รายการ URL สำรองของสตรีมเสียง |
AAC[].backup_urls[] |
string |
- |
AAC[].format |
string |
รูปแบบสื่อที่รายงานสำหรับสตรีมเสียง. |
AAC[].audio_profile |
string |
รายงานข้อมูลโปรไฟล์เสียงสำหรับสตรีม。 |
AAC[].audio_samplerate |
integer |
อัตราการส่งเสียงในเฮิรตซ์。 |
AAC[].audio_duration |
integer |
ระยะเวลาการสตรีมเสียงในมิลลิวินาที。 |
AAC[].size |
integer |
ขนาดของสตรีมเสียงในไบต์。 |
AAC[].audio_bitrate |
integer |
ค่าบิตเรตของเสียงที่รายงานสำหรับสตรีม |
AAC[].avg_bitrate |
integer |
ค่าเฉลี่ยของอัตราการส่งข้อมูลของสตรีมเสียงที่รายงาน。 |
ฟิลด์อื่น9 ฟิลด์
| เส้นทางฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
|---|---|---|
data.notes[].video_info_v2.media.video |
object |
ข้อมูลเมตาดาต้าที่เกี่ยวข้องกับบันทึกวิดีโอ |
data.notes[].video_info_v2.media.video.width |
integer |
ความกว้างของวิดีโอในพิกเซล |
data.notes[].video_info_v2.media.video.height |
integer |
ความสูงของวิดีโอในพิกเซล |
data.notes[].video_info_v2.media.video.duration |
integer |
ความยาวของวิดีโอที่รายงานเป็นวินาที. |
data.notes[].video_info_v2.media.video.drm_type |
integer |
รหัสหมวดหมู่ DRM ที่รายงานสำหรับวิดีโอ |
data.notes[].video_info_v2.media.video.hdr_type |
integer |
รหัสหมวดหมู่ HDR ที่รายงานสำหรับวิดีโอ |
data.notes[].video_info_v2.media.video.stream_types |
array |
รหัสประเภทการสตรีมที่รายงานสำหรับวิดีโอ |
data.notes[].video_info_v2.media.video.stream_types[] |
integer |
รหัสประเภทการสตรีมที่รายงานสำหรับวิดีโอ |
data.notes[].video_info_v2.media.video.md5 |
string |
ค่า MD5 ที่รายงานในข้อมูลเมตาดาต้าวิดีโอ |