I want to make simple curl
call to check if youtube channel exists.
Is it possible without using google API ?
Asked
Active
Viewed 300 times
1 Answers
-1
Yep, just using cURL, if you try to access a non-existent YouTube Channel, say https://www.youtube.com/channel/hello, it responds with a status code of 404. You can use that to find if the channel exists or not.
The above is the logic and to find it using cURL, you may check:

Praveen Kumar Purushothaman
- 164,888
- 24
- 203
- 252
-
well curl responds 200. why it is marked as duplicate ? and linked to question not related to youtube channel.. – FrancMo Jun 10 '19 at 09:37
-
I know how to make a curl request.. which I am doing for many different urls, but problem I have only with youtube channel. thats what Ive asked, and my question was marked as duplicate + got two minuses.. great. – FrancMo Jun 10 '19 at 09:40
-
@Baku Even I have got a minus in the answer. But yea, weird how cURL returns 200. – Praveen Kumar Purushothaman Jun 10 '19 at 10:59
-
probably without parsing response no luck – FrancMo Jun 10 '19 at 11:25
-
@Baku Weird... Did you check the network tools? I get 404... – Praveen Kumar Purushothaman Jun 10 '19 at 11:26
-
yes Ive checked. heh strange. – FrancMo Jun 10 '19 at 11:37
-
ah channel hello I get by curl 404, but for example https://www.youtube.com/channel/UCbS8vsbx1MSl1aGrja2-4kz I see 200 – FrancMo Jun 10 '19 at 16:10