YouTube Search Channels Structured

2.07积分/次
ae_youtube_search_channels_structured

## 搜索 YouTube 频道 按关键词查找频道,只返回频道搜索结果,不包含视频或播放列表,并支持分页。 ### 输入 - `keyword`:搜索关键词,最多 200 个字符。首次请求需要提供;使用分页 token 获取后续页时可不传。 - `continuation_token`:上一页返回的分页 token。首次请求不传,获取下一页时传入。 - `need_format`:默认 `true`,返回结构化频道信息;设为 `false` 时,频道列表返回原始 `channelRenderer` 对象。 ### 返回含义 结果数据包含 `keyword`、`channels`、`continuation_token`、`has_more` 和 `total_count`。`total_count` 是当前页的频道数量,不是全部匹配频道的总数。`has_more` 表示是否还有更多频道;使用返回的 token 请求下一页,直到 `has_more` 为 `false`。 当 `need_format=true` 时,频道条目包括:`channel_id`(频道标识)、`title`(名称)、`handle`(自定义标识)、`subscriber_count_text`(订阅者数量的展示文本,并非数值计数)、`description`(描述片段)、`thumbnails`(缩略图)、`is_subscribed`(返回的订阅状态)、`canonical_url`(频道 URL 路径)和 `channel_url`(完整 URL,优先使用自定义 URL)。当 `need_format=false` 时,`channels` 改为原始频道对象列表,分页字段含义不变。 每页通常有 10–20 个频道,但具体数量和排序由 YouTube 决定,不作固定保证。 首次请求示例:`{"keyword":"Rick Astley"}`。

社交
2.07积分/次

价格说明

2.07积分/次
条件费用
每次调用2.07积分/次

2.07积分/次 按查询次数计费。查询成功但未返回结果时,也会扣除积分。

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_youtube_search_channels_structured' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {}
}'
请求方式
POST
接口地址
/agent-api/v1/tool/execute
鉴权方式
X-Api-Key
超时时间
60 秒
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
keywordstring | null否搜索关键词/Search keyword—
need_formatboolean否是否格式化数据/Whether to format datatrue
continuation_tokenstring否分页token/Pagination token—