Call this sync operation at its vendor-qualified URL. The model identity is encoded in the path; only operation-specific input fields belong in the request body.
Optional<string>continuation_token
**Purpose**: Pagination token for next page
Optional<string>country_code
**Purpose**: Set region code
Default: US
Optional<string>language_code
**Purpose**: Set language preference for comments
Default: zh-CN
Optional<boolean>need_format
**Purpose**: Whether to return cleaned simplified data
Default: true
Optional<string>sort_by
**Purpose**: Comment sorting method
Allowed values: top, newest
stringvideo_idrequired
**Purpose**: Video ID
Length: 11 to 11
Response Schema
A synchronous completed response contains exactly one outputs item with only data. Failed and timeout responses contain error and never outputs.
stringidrequired
Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.
Get video comments
/v1/api/youtube/web-v2/video-commentsGet YouTube video first-level comments
Request body
Call this sync operation at its vendor-qualified URL. The model identity is encoded in the path; only operation-specific input fields belong in the request body.
continuation_token**Purpose**: Pagination token for next page
country_code**Purpose**: Set region code
Default:
USlanguage_code**Purpose**: Set language preference for comments
Default:
zh-CNneed_format**Purpose**: Whether to return cleaned simplified data
Default:
truesort_by**Purpose**: Comment sorting method
Allowed values: top, newest
video_idrequired**Purpose**: Video ID
Length: 11 to 11
Response Schema
A synchronous completed response contains exactly one outputs item with only data. Failed and timeout responses contain error and never outputs.
idrequiredOpaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.
statusrequiredCurrent public run status.
Allowed values: pending, running, completed, failed, timeout
modelrequiredPublic SandBase model name used for this run.
outputsPresent only for completed runs. Contains exactly one item whose only field is data.
outputs[0].dataOperation-specific business payload. This reference uses an empty object when no safe example can be confirmed.
errorPresent only for failed or timeout runs. Contains a public error type and sanitized message.
error.typeStable public error category.
error.messageSanitized error message safe to show to clients.
usageUsage details when available.
API capabilities
capability_tagsrequiredCapabilities declared by the API registry.
Default:
api, youtubeexecution_moderequiredExecution mode declared by the API registry.
Default:
syncpending response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"pending","model":"youtube/web-v2/video-comments"}
running response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"running","model":"youtube/web-v2/video-comments"}
completed response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"completed","model":"youtube/web-v2/video-comments","outputs":[{"data":{}}]}
failed response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"failed","model":"youtube/web-v2/video-comments","error":{"type":"upstream_error","message":"upstream request failed"}}
timeout response
{"id":"f3d2e8a1-7c4b-4a12-9d2e-123456789abc","status":"timeout","model":"youtube/web-v2/video-comments","error":{"type":"upstream_error","message":"upstream request failed"}}