YouTube Get Channel Community Posts

2.07 credits/call
ae_youtube_get_channel_community_posts

## Retrieve YouTube channel community posts Get one page of community posts for a specified channel, with optional pagination. ### Inputs - **channel_id** (string, required): YouTube channel ID, such as `UCkRfArvrzheW2E7b6SVT7vQ`. You can obtain it from a channel URL of the form `https://www.youtube.com/channel/<channel_id>`. - **language_code** (string, optional; default `"zh-CN"`): Language code affecting returned text. - **country_code** (string, optional; default `"US"`): Country code, such as `US` or `JP`. - **continuation_token** (string, optional): Token from the previous response for retrieving the next page. Omit it for the first page. - **need_format** (boolean, optional; default `true`): Return cleaned, structured data when true; raw response data when false. ### Results With `need_format=true`, the response data contains: - **channel_id**: The channel ID. - **posts**: Community posts with `post_id`, `post_url`, author details (`author_name`, `author_channel_id`, `author_url`, `author_thumbnails`), `content_text`, `published_time` (relative time), `vote_count` (likes), `comment_count`, and `attachment`. Attachments may be an image, multiple images, video, poll, or null. - **continuation_token**: Token for the next page. - **has_more**: Whether more posts are available. - **total_count**: Number of posts on this page, not the total number on the channel. With `need_format=false`, the response data is raw and does not use the normalized structure described above. ### Pagination and limitations Start with `channel_id` and no continuation token. To continue, pass the returned `continuation_token` together with the same `channel_id`; in formatted results, stop when `has_more` is false. Some channels may not have a community/posts tab. This tool retrieves community posts, not the channel's video list or individual comments.

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.

Each call retrieves one page. Using a continuation token to retrieve the next page is charged as a new call.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
channel_idstringYes频道ID/Channel 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
continuation_tokenstringNo分页token,用于获取下一页/Pagination token for next page—

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_channel_community_posts' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "channel_id": "xxx"
  }
}'

No response example available yet.