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.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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 |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/xigua/app-v2/one-video에 POST 요청을 보내세요. 이 페이지의 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 해석과 댓글은 별도 요청입니다.
선택된 참고 자료는 서로 다른 제공자 envelope를 사용합니다. 검색은 err_code 0을 보여주지만, single-video는 내부 data 객체와 함께 message success를 보여줍니다. 완료된 SandBase outputs[0].data를 검증한 뒤 선택한 route의 문서화된 형태를 확인하세요.