item_idstring必填
Video id
https://api.sandbase.ai/v1/api/xigua/app-v2/one-videoReturns lightweight single video data and associated related video information from Xigua for a specific post by its unique item ID.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns data for one Xigua video: like, repost and danmaku counts, author info, categories, and a list of related videos. It needs the video's item_id.
repin_count totals of a single Xigua video.curl -X POST "https://api.sandbase.ai/v1/api/xigua/app-v2/one-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"item_id": "7354954305222377999"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
item_id | string | Yes | Video id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"ban_audio_comment": false,
"ban_audio_comment_reason": "",
"ban_comment": 0,
"ban_danmaku": 0,
"ban_danmaku_reason": "",
"ban_danmaku_send": 0,
"ban_share": 0,
"content": "<p>\n<p>\n<div class=\"custom-video\" data-sp=\"0\" data-vid=\"v0201ag10000co90nejc77u3…",
"danmaku_count": 36,
"delete": 0,
"digg_control": null,
"digg_count": 42555
},
"message": "success"
}
| Field | Meaning |
|---|---|
data.digg_count / data.video_like_count | Like count of the video. Both fields show the same value in this response. |
data.repin_count | Count of saves or reposts for the video, as named by the key. |
data.danmaku_count | Number of danmaku (scrolling comments) on the video. |
data.ip_info.address | Location label shown for the post, such as a province name. |
data.user_info.name / data.user_info.user_id | Display name and numeric ID of the video's author. |
data.user_info.follower_count / data.user_info.followers_count_str | Author follower count as a number and as a short display string such as 118万. |
data.user_info.video_total_count | Total number of videos the author has posted. |
data.video_categories[].level1 / level2 / level3 | Category labels for the video, from broad to narrow. |
data.related_video_toutiao[].article_url | Link to each related video page. |
data.related_video_toutiao[].digg_count / comment_count / danmaku_count | Like, comment and danmaku counts for each related video. |
data.share_url | Share link for the video. |
item_id is the numeric video ID. It matches data.group_id in the response.data.video_play_info is a JSON string. For a direct playback URL, call Xigua Video Play URL.data.related_video_toutiao[].behot_time looks like a Unix timestamp in seconds.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send the known numeric video identifier as item_id. The reference says it corresponds to data.group_id in the returned record. A search card's internal id, a user_id and a display title are different identifiers. Keep the original string ID beside the saved response; do not derive a new ID from a rounded numeric display.
This lightweight endpoint describes video counters, author fields and related_video_toutiao entries. It is not a guarantee of a title, a transcript or a media download. Inspect the actual fields and retain absent values as unknown. Likes, saves and danmaku counts are different metrics; one record cannot establish engagement over time or audience reach.
The reference describes video_play_info as a JSON string. Its presence does not mean this call downloads or plays a video. Related-video links are recommendations, not the selected video's comments or the author's full posting history. Reading comments or resolving a direct playback URL are separate tasks and can require additional calls.
Need to choose a video first? Use Video Search and review its structured candidate cards. The single-video schema has no paging parameters, and this first request does not follow related links automatically.
Already have a key? Keep SANDBASE_API_KEY in your local environment and use this page's API tab for POST /v1/api/ with Bearer authentication. An already connected agent needs the selected endpoint and keyword or item_id. To start a project, share the setup Skill, Markdown quickstart and your desired result. Save one response before deciding on another request.
Validate completed SandBase status and outputs[0].data before interpreting the provider response. The selected routes have different business envelopes: search references show err_code 0; single-video references show message success and an inner data object. Do not silently return an empty success when a required envelope or object is missing, and do not require the search flag on the video-detail route.
Pricing checked on 2026-11-08: both selected endpoints list $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility is not a remaining-quota measurement. Check current pricing before execution. No new business query was made for this revision. The Xigua Python research guide separates current instructions from historical records.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/xigua/app-v2/one-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"item_id": "7354954305222377999"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
item_idstring必填Video id
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Xigua | 每次呼叫 $0.001 | JSON |
Xigua | 每次呼叫 $0.001 | JSON |
Xigua | 每次呼叫 $0.001 | JSON |
Xigua | 每次呼叫 $0.001 | JSON |
Xigua | 每次呼叫 $0.001 | JSON |
Xigua | 每次呼叫 $0.001 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/xigua/app-v2/one-video。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:item_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Xigua Single Video Information 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Xigua API 存取權。
請將所選影片的數字 ID 作為 item_id 傳送。參考資料將其對應到 data.group_id。搜尋卡片 ID、使用者 ID 或標題都不能替代;請保留原始識別碼字串,不要改成四捨五入後的數字顯示。
此參考資料沒有證實會有這類結果。它描述的是輕量級中繼資料、計數器、作者欄位與相關影片。video_play_info 被描述為 JSON 字串;播放 URL 解析與留言是分開的請求。
所選參考資料使用不同的供應商封裝:搜尋顯示 err_code 0,而單一影片顯示 message success,內含 data 物件。請先驗證完成的 SandBase outputs[0].data,再檢查所選路由文件定義的結構。