YouTube Get Post Detail
## YouTube community post details Retrieve the content, author information, attachments, and engagement counts for one YouTube community post. ### Inputs - **post_id** (string, required): The post ID, documented as starting with `Ugk`. Extract it from the `/post/` portion of a YouTube post URL; pass the ID, not the full URL. Example: `UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy`. - **language_code** (string, optional): Language code, such as `zh-CN` or `en-US`. Default: `zh-CN`. - **country_code** (string, optional): Country code, such as `US` or `JP`. Default: `US`. - **need_format** (boolean, optional): Whether to clean and format the returned data. Default: `true`. ### Returned data With `need_format=true`, the response data includes: - **post**: Post ID and URL; author name, channel ID, URL, and avatar thumbnails; text content; relative publication time; like count (`vote_count`); comment count; and attachment data. Attachments may be an image, multiple images, a video, or a poll, and may be `null`. - **channel_metadata**: Channel information such as name, description, and URL. - **comments_continuation_token**: A pagination token for subsequent comment retrieval, not the comments themselves. With `need_format=false`, the response data is returned in its raw form instead of the formatted structure.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
post_id | string | Yes | 帖子ID/Post ID | — |
need_format | boolean | No | 是否需要清洗数据,提取关键内容,移除冗余数据/Whether to clean and format the data | true |
country_code | string | No | 国家代码(如US, JP等)/Country code | US |
language_code | string | No | 语言代码(如zh-CN, en-US等)/Language code | zh-CN |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_youtube_get_post_detail' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"post_id": "xxx"
}
}'No response example available yet.

