Closed 666bsw closed 2 months ago
HomeScreenResponse always empty answer
Hello! You can take a look at my explanation in this issue.
what is needed in this request to get a list of videos?
You need to provide some cookies from a google account. Alternatively, you can opt to use the TrendingVideosResponse
to get some videos.
Hi! got it, thanks for the quick reply!!
can you give an example of constructing a TrendingVideosResponse query ? for example for music? it's not very clear from the description, I'm just getting to know the library.
can you give an example of constructing a TrendingVideosResponse query ?
for example for music?
Hello! You can use the same code as the tests use (here).
As YouTube doesn't use fixed endpoints for their trending categories, YouTubeKit won't give you the constants (requestParams
) as they could change anytime. However, you can try to do the request once and save the token for the music tab and reuse it in the future if you're willing to take the risk of getting an empty value if they change the parameter.
HomeScreenResponse always empty answer what is needed in this request to get a list of videos?