YouTube Get Post Detail

2.07 credits/call
ae_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.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.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.

ParameterTypeRequiredDescriptionDefault
post_idstringYes帖子ID/Post ID—
need_formatbooleanNo是否需要清洗数据,提取关键内容,移除冗余数据/Whether to clean and format the datatrue
country_codestringNo国家代码(如US, JP等)/Country codeUS
language_codestringNo语言代码(如zh-CN, en-US等)/Language codezh-CN

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --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.