API DocsyoutubeContentGet channel community posts
Get channel community posts
What this API is for
- Get YouTube channel's community posts list
- Supports pagination via continuation_token
GET
/openapi/api/v1/youtube/web_v2/get_channel_community_postsPrice:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- Required:
- **channel_id** (string)
- **Purpose**: Channel ID
- **How to get**: Extract from channel URL, e.g., https://www.youtube.com/channel/UCkRfArvrzheW2E7b6SVT7vQ
- **Example**: "UCkRfArvrzheW2E7b6SVT7vQ"
- Optional:
- **language_code** (string, optional) - Language code, default "zh-CN"
- **country_code** (string, optional) - Country code, default "US"
- **continuation_token** (string, optional) - Pagination token for next page
- **need_format** (bool, optional) - Whether to format data, default true
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| channel_id | query / string | Yes |
| UCkRfArvrzheW2E7b6SVT7vQ |
| language_code | query / string | No |
| zh-CN |
| country_code | query / string | No |
| US |
| continuation_token | query / string | No |
| |
| need_format | query / boolean | No |
|
Request examples
curl -X GET "https://api.trmesh.com/openapi/api/v1/youtube/web_v2/get_channel_community_posts" \ -H "Authorization: Bearer sdc_your_project_token" \ -H "Accept: application/json"
Response fields
- When need_format=true:
- channel_id: Channel ID
- posts: Posts list
- post_id: Post ID
- post_url: Post URL
- author_name: Author name
- author_channel_id: Author channel ID
- author_url: Author channel URL
- author_thumbnails: Author avatar thumbnails
- content_text: Post text content
- published_time: Published time (relative)
- vote_count: Like count
- comment_count: Comment count
- attachment: Attachment (image/multi_image/video/poll, may be null)
- continuation_token: Next page pagination token
- has_more: Whether there are more posts
- total_count: Current page post count
- When need_format=false:
- Returns raw response data
| Field | Type | Notes | Example |
|---|---|---|---|
| channel_id | unknown |
| |
| posts | unknown |
| |
| post_id | unknown |
| |
| post_url | unknown |
| |
| author_name | unknown |
| |
| author_channel_id | unknown |
| |
| author_url | unknown |
| |
| author_thumbnails | unknown |
| |
| content_text | unknown |
| |
| published_time | unknown |
| |
| vote_count | unknown |
| |
| comment_count | unknown |
| |
| attachment | unknown |
| |
| continuation_token | unknown |
| |
| has_more | unknown |
| |
| total_count | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples