0

I was analyzing the YouTube API and noticed something:

I want to fetch information about a channel. I saw that to query it using "channel resource" I need to have the channel ID. Is it not possible to make this query using just the URL of channel, right? I saw somewhere that it would work with the channel name, but then there could be multiple results due to channels having identical names. Wouldn't just having the channel URL be enough to directly query a channel?

Later, I discovered that I can retrieve the information by using the link of a video (videos functions), where I can not only see the channel ID but also all other information about the channel.

So, can I fetch information about a channel using either the URL of one of its videos or its channel ID? Are those the only options?

  • [This answer](https://stackoverflow.com/a/75843807) solves your problem. – Benjamin Loison Jul 26 '23 at 07:48
  • Thanks. I just didn't understand this API limitation of Google. Wouldn't it be better to allow searching by the channel url, instead of just the ID? Or if the ID was something easier to get, just as it used to appear in the url itself – Christyan Brayan Jul 26 '23 at 18:23

0 Answers0