Youtube Search website Params

Most help requests are via Support Ticket, but some people prefer to post on the forum instead :-)
Post Reply
Author
Message
Jakamedia
User avatar
Offline
Junior Member
Posts: 4
Joined: Sun Mar 27, 2022 4:01 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Debian

Youtube Search website Params

Post by Jakamedia »

hello,

I just tweak some code from your Github source, I want to know about the parameters needed for https://www.shoutirc.com/youtubesearch.php so I can make my own API.

Thanks

Jakamedia
User avatar
Offline
Junior Member
Posts: 4
Joined: Sun Mar 27, 2022 4:01 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Debian

Re: Youtube Search website Params

Post by Jakamedia »

FYI, i just make API base on yout youtube-dl.cpp params like this:

[result]
success=true
id=aPGyVSMq9A0
title=Sammy Simorangkir - Kaulah Segalanya (Lirik)
poster=https://i.ytimg.com/vi/aPGyVSMq9A0/hqdefault.jpg

But got error on !youtube-play <string>


Thanks

Indy
User avatar
Offline
Site Admin
Posts: 465
Joined: Thu Oct 16, 2008 1:58 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Contact:

Re: Youtube Search website Params

Post by Indy »

It just takes the parameters q (query/search term) and conf (HMAC confirmation of q): https://github.com/DriftSolutions/Radio ... l.cpp#L131

What is the exact command and error you are getting?
You can also contact me via email or instant messenger, links are at the bottom of this post.

Jakamedia
User avatar
Offline
Junior Member
Posts: 4
Joined: Sun Mar 27, 2022 4:01 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Debian

Re: Youtube Search website Params

Post by Jakamedia »

if i use your API i got this :: [08:32] -RadioTest- Error searching for video(s): Error contacting Google API!! where is the API config for that?

Indy
User avatar
Offline
Site Admin
Posts: 465
Joined: Thu Oct 16, 2008 1:58 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Contact:

Re: Youtube Search website Params

Post by Indy »

That isn't an error on your end, the API key was just messed up on our end. It should be working now.
You can also contact me via email or instant messenger, links are at the bottom of this post.

Jakamedia
User avatar
Offline
Junior Member
Posts: 4
Joined: Sun Mar 27, 2022 4:01 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Debian

Re: Youtube Search website Params

Post by Jakamedia »

Thank You. It's working like charm now!

Post Reply