YouTube Channel API
YouTube Channel. HTTPS resource URLs are preferred where supported. Empty results and failures are free.
YouTube Channel. HTTPS resource URLs are preferred where supported. Empty results and failures are free.
Open product page and API TesterEndpoint and authentication
POST https://api.goanyapi.com/api/v1/youtube/channel/infoSynchronous response, without tasks or polling. Use an API Key or supported OAuth Bearer credential. No Path or Query parameters.
Input parameters
| Parameter | Location | Type | Required | Default | Constraints and meaning |
|---|---|---|---|---|---|
| Authorization | Header | string | Yes | — | Bearer YOUR_API_KEY |
| Content-Type | Header | string | Yes | application/json | application/json |
| url | JSON body | string | Yes | — | YouTube channel HTTPS URL, @handle or UC-prefixed channel ID. No prerequisite lookup or separate charge. pattern: ^(?:@[^\s/?#]+|UC[A-Za-z0-9_-]{22}|https://(?:www.|m.)?youtube.com/(?:@[^\s/?#]+|channel/UC[A-Za-z0-9_-]{22}|(?:c|user)/[^\s/?#]+)/?(?:[?#][^\s]*)?)$ minLength: 1 |
Output fields
| Field | Type | Meaning |
|---|---|---|
| code | string | ok on success; public error code on failure |
| message | string | Status message |
| data.result | object / null | Public result; null, empty and absent values are preserved |
| data.creditsUsed | integer | Actual configured charge; zero for empty results |
| data.remainingCredits | number | Balance after settlement |
| data.result.channelId | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.title | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.description | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.url | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.handle | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.joinedDateText | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.subscriberCountText | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.viewCountText | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.videoCountText | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.country | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.canonicalChannelUrl | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.links | array | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.links[].title | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.links[].url | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.avatar | array | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.avatar[].url | string | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.avatar[].width | number | Actual business field; may be empty or absent; formatted counts are not exact integers |
| data.result.avatar[].height | number | Actual business field; may be empty or absent; formatted counts are not exact integers |
description contains the complete returned biography. joinedDateText is a display date; subscriberCountText, viewCountText and videoCountText are formatted counts, not guaranteed integers. links contains public external links. Channels without About information may return basic profile data; absent fields are not fabricated.
This endpoint does not accept a cursor or support pagination. List length is the number returned by this request, not a total.
Request example
curl -X POST 'https://api.goanyapi.com/api/v1/youtube/channel/info' -H 'Authorization: Bearer YOUR_API_KEY' -H 'Content-Type: application/json' --data '{"url":"https://www.youtube.com/@daojie"}'Real response example
Captured from a real request. Only live data.creditsUsed and data.remainingCredits are omitted. Media and caption URLs may have expired.
{
"code": "ok",
"message": "ok",
"data": {
"result": {
"channelId": "UChXZprDT6-QPTROx1mpuyIA",
"title": "DAOJIE",
"description": "Hello, 来到刀姐频道的朋友。\n\n✋关于Daojie:\nDaojiemarketing Agency 网络营销公司CEO。\n一站式AI自动引流转化系统, Daojie APP 创始人兼CEO\nLeasSale.io一站式引流转化系统创始人,CEO\nAi广告投放系统创始人兼CEO\n全球发布Daojiemarketing APP 创始人\n\n📌4次Two Comma Club 100万销量奖品得主\n全美2024最佳Ai APP金奖得主\n帮助1000+企业从0到1到100的网络事业起步和扩展\n\n总的来说是一个精通网络营销的产品经理,十几年的网络创业,让Daojie练就成了一些技能:擅长发现问题,把问题变成产品,再把产品通过网络快速卖出去。\n所以:做产品,写文案,建站,投放广告,用AI, 自动化... 你们看到的基本功都是我的日常\n文凭就不用说了,这年头谁不是个海外双硕,不值一提,还得看真的产品能力,营销能力,以及执行力\n\n❓我的过去和现在\n当过公务员拿过稳定工资,\n当过大学老师过着每周工作4小时,\n假期多的让人羡慕的女人都爱的受人尊敬的职业,\n11年前放弃稳定工作和曾经的6年本硕所有知识,从新开始学习,练习,操作,创业!\n研究学习实践网络创业超过12年+,现定居加拿大🇨🇦。\n\n✅再说一句这个频道为什么值得你关注:\n过了而立之年,绝不再相信天上能掉馅饼,也不愿意靠别人,更不愿意浪费时间为他人的事业打工,所以我和大家一样是一名积极的创业者,我坚信只有通过创业才能够改变命运,才能够获得时间和财务自由,才能够更多的陪伴孩子家人和父母,做完整的自己。\n\n✅想要达成目标,就不要相信成功学那套玩意儿,上手做才是硬道理。所以这个频道80%的视频都是在实操, 也会分享对网络创业和产品运营的思路。我相信只有正在的技术和展示操作过程才能够帮助到大家。\n\n✅在这里你能学到最新最全,系统的网络赚钱方法,策略,案例和手把手实操。\n\n订阅我的频道,诗和梦想的路上咱们也带上钱💰!\n",
"url": "http://www.youtube.com/@DAOJIE",
"handle": "@DAOJIE",
"joinedDateText": "Joined Mar 8, 2020",
"subscriberCountText": "134K subscribers",
"viewCountText": "4,760,165 views",
"videoCountText": "341 videos",
"country": "Canada",
"canonicalChannelUrl": "http://www.youtube.com/@DAOJIE",
"links": [
{
"title": "Daojie 所有服务和产品",
"url": "https://www.youtube.com/redirect?event=channel_description&redir_token=QUlxb01IYlBlSVV2M1JjVUNMSkZyb1MtQkNFbHxBQnJ0NjlralMwc2ZaaFI5SEpRVzloTVZ6ZjZQbGllcmxfQzJ3eUFiWlk5djNmR3BGYVhKYTZTMU5EdHcwcE00aXhSWFBRSDkyc2x0VkNSd0xXNE16LWJONWxlN2dEQ0FkV1pO&q=https%3A%2F%2Fleadsale.io%2Fdaojie-business"
},
{
"title": "LeadSale引流转化系统",
"url": "https://www.youtube.com/redirect?event=channel_description&redir_token=QUlxb01IYmVEdHIteHJBbFBNeTRrNHpVMkpRVHxBQnJ0NjluX0h5YlZTR0swZHNrRUVwVW9yY1ZuSW9tWmxhZ3huN3FLemx0eUJPXzVvV29JbDA3SVRvdEJHUExMdzFaWG16RWtsV1FHMl95WVMzRTNZNFdkS0dLOWVGNk5TOVpu&q=https%3A%2F%2Fleadsale.io%2F"
},
{
"title": "一人运营生意模式",
"url": "https://www.youtube.com/redirect?event=channel_description&redir_token=QUlxb01IYWdNeDQ4WE1sSEZiOGc3Y0V1SngyZ3xBQnJ0NjltWHBUNXN0N1EyYnh2Q29ZZWxQTzdRY3NQNXYyalVHUzlYRGx3Q2VnaVFRekR2cFl3WU9CRG9WbVN3eUpISGJYc2ZLREtYMWdqWm0yS2JLN0JkbUdQNmhvSFkwdERV&q=https%3A%2F%2Fleadsale.io%2Felite-plan-home"
},
{
"title": "Daojie Agengcy咨询公司",
"url": "https://www.youtube.com/redirect?event=channel_description&redir_token=QUlxb01IWjUxWVVZS1JxekQzTnlnT3puZ1F4UHxBQnJ0NjlsUl9RbmJOeE10eW4yWGswNkhIWHc1LUdlYThyMU5zTGI4dFFjZ3VINzlLSkFCWndzTVZpd1g3YUhBNXB5a0ZIWHQ5Smh1UHZFSUdaa3I4RFNXVm9KZVFUUE1jZGNX&q=https%3A%2F%2Faaabizsolution.com%2Fhome"
},
{
"title": "Daojie 营销系统专属教学频道",
"url": "https://www.youtube.com/channel/UCiciqCEX3MpOkfh4uVk72BA?sub_confirmation=1"
},
{
"title": "Official Website",
"url": "https://www.youtube.com/redirect?event=channel_description&redir_token=QUlxb01IWXVTR0oyZGhKaWRaR2pfUkVma1p3TnxBQnJ0NjluR19VaHlvX2MwV0VtUmlHU1EtM0Z6c3FYd2JyXzZ4SjJEZjR5VzZIVDRaNzl3WHpGcHE2LW9QaWhZbzU2NkJubXo1U0lpU0pMMkJxa1dqOTVQVWdPSlFKS3NVZjE5&q=https%3A%2F%2Fdaojiemarketing.com%2F"
},
{
"title": "INSTAGRAM",
"url": "https://www.youtube.com/redirect?event=channel_description&redir_token=QUlxb01IWjV4SnRUc2tCSE5RRTFISm1jTEk1NHxBQnJ0NjlsVEZLbndlaFlYcWR4OFdQN0ZNajJhMHZpT1R5YnlxTVAwRE1oLWdyN2FjWHBiRldDMzFvREVsa1hNT0hXTTBRVGZuSDMtQmExOF95T0dpQUxRalFFWURjZFBROGdC&q=https%3A%2F%2Fwww.instagram.com%2Fdaojiemarketing%2F"
},
{
"title": "FACEBOOK PAGE",
"url": "https://www.youtube.com/redirect?event=channel_description&redir_token=QUlxb01IWU5BUHFrbDV6cGlNM3hKRXd1NG9sV3xBQnJ0NjltRDRqVTJ1bnJrQ3ZDR195SndLbU9JTnBDRkNRTTJiSEVkUFpEQl80d1IyazFlTjMzV2ZURF9ZNG0yU1VsUFdJRHliVEhHSjczM3lhSFFyVDRQYVVWVDZobTBseERu&q=https%3A%2F%2Fwww.facebook.com%2Fdaojiemarketing"
}
],
"avatar": [
{
"url": "https://yt3.googleusercontent.com/ytc/AIdro_kAMuFtoGSUQnoIH9p6inymBGR50YK3SrxKJx4BVrpWC54=s900-c-k-c0x00ffffff-no-rj",
"width": 900,
"height": 900
}
]
}
}
}Billing and status codes
…
Each endpoint uses its own database-configured price. Only nonempty successful results are charged; empty results and failures are free. Pages are billed separately. Missing optional titles or descriptions do not invalidate a record. Media results are empty when both video and captions are empty.
| HTTP | Meaning |
|---|---|
| 200 | Query completed; may be empty |
| 400 | Invalid JSON or parameters |
| 401 | Authentication failed |
| 402 | Insufficient credits |
| 429 | Rate limited; honor Retry-After |
| 502 | Data request failed |
| 503 | API or pricing not configured |