b5i / YouTubeKit

A way to interact with YouTube's API in Swift (without any API key!)

Home Page:https://swiftpackageindex.com/b5i/YouTubeKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HomeScreenResponse empty result

666bsw opened this issue · comments

Hello!
how to get home screen correctly?

let result = try await HomeScreenResponse.sendThrowingRequest(youtubeModel: YTM, data: [.])

I get an empty result.

Hello! YouTube stopped providing videos from the Home Screen a few months ago and you need to provide cookies to the YouTubeModel for it to work (you can do the test yourself by opening a private browsing window and go to their website). I'm going to add the trending videos requests soon and that might replace the HomeScreenResponse.