Hi Hilson,

I don't know how this is happening in your debugger. The returned JSON always has videoId in my case; channelId is the part of 'snippet' not 'id'. I have tested the search for almost 100 times with different queries but no error or broken link is there. You can try running the index page (with the script) in a browser, if it still gives error or invalid URL then reply me.

Dixit