iosyoutubeyoutube-api

YouTube API v3 on iOS app. My API key does not work, but somebody else's key does work on same application. Error 403


This might be a direct question for the YouTube team at Google, but I thought of asking here first in case it also helps somebody else in the future.

I am using the simple API key (without OAuth 2.0) on an iOS application. This application is simply returning the list of video ids from a specific playlist id. I am supplying the playlist id as well.

When I use my API key that I received from the YouTube/Google console, I get an error 403 when making the playlistItems request call. When using somebody else's key (I actually found it online on an example) the application works. All I'm really changing is the API key. I am not changing the part or playlist id, and in both cases I am using the same iOS application.

My key has both YouTube Data API v3, and the YouTube Analytics API enabled in the Google Cloud console, along with other default elements that came enabled with this application in Google Cloud console.

While this approach works, I don't want to bill somebody else's API key for the requests made from my application, and I would also like to have stats of the API request from my iOS app.

Any suggestions? Has anyone run into this before?


Solution

  • There is a known problem with bundle ids on console. For now, please don't use bundle id, your app should work fine.

    You can track the issue in public issue tracker and put bundleid back, once it's fixed. https://code.google.com/p/gdata-issues/issues/detail?id=5770