1

I have been struggled with Youtube API and now I am stuck.

What I did is:

  1. create a project at google developers console(https://console.developers.google.com)
  2. enabled "YouTube Data API v3" enter image description here
  3. generate api key of iOS. enter image description here
  4. access to https://www.googleapis.com/youtube/v3/search?key={API KEY}&part=id&q=soccer by web browser and got the error message enter image description here

Am I missing something? I have read many questions but I cannot solved yet.

raimtoon
  • 725
  • 1
  • 11
  • 27

2 Answers2

0

In step 3 "generate API key for IOS", the comment on the Google Developer Console web page says

Use of this key does not require any user action or consent, does not grant access 
to any account information, and is not used for authorization.

Clicking on the *Learn More" button, it says:

 Use an API key when your application is running on a server and accessing one of the following kinds of data:
•Data that the data owner has identified as public, such as a public calendar or blog.
•Data that is owned by a Google service such as Google Maps or Google Translate. (Access limitations may apply.)

I think you need to use the OAuth process rather than the API Key. Click on Learn More in the OAuth section of the Developer Console web page to learn about using OAuth with Apple iOS.

To create oAuth credentials for iOS:

Create new Client ID / Installed Application / iOS
Mike Meinz
  • 506
  • 3
  • 9
  • Thanks for your reply. I've been trying to do it but I have another problem now. please wait a bit more. – raimtoon Nov 08 '14 at 15:06
  • Any solution, tmrex7? It's 2019, and still buggy. Not working with API key, not working with Oauth. Shame... – err Dec 27 '18 at 19:31
0

I know it sounds a bit elementary, but I solved this same problem by going back into Google developer, creating a whole new project, new API key, and then it worked. Google quirk??

John W
  • 1
  • 1
  • You may be hitting the case where your [API access was disabled after 90 days of inactivity](https://stackoverflow.com/a/58794029/396967). – kynan Nov 11 '19 at 00:25