jangbl / youtube-react

A Youtube clone built in React, Redux, Redux-saga
569 stars 172 forks source link

How to load videos only from particular channels #9

Closed NektariosFifes closed 4 years ago

NektariosFifes commented 4 years ago

Hello i am relatively new to react. After viewing the code i struggle to understand how the videos property is filled in the video grid. Could you please point me to correct direction? How can i make the api call return certain videos only from certain channels. Also can i load private videos on my channel on youtube? Thanks in advance.

jangbl commented 4 years ago

Hi,

the videos are loaded by hitting the /videos endpoint on the Youtube Data API v3.

There is a more in depth description on how to do the following two posts on my blog

You can search for videos on a specific channel by using the /search endpoint of the Youtube Data API v3

I think it should also be possible to load unlisted videos (note that these are not private but they will not show up in the search). As far as private videos are concerned, you'd probably need to be logged in to see embed them.

Best,

Jan