I can’t access the YouTube API via javascript (although in fact I started doing it via php (with a different key), but a similar error occurs there)

  1. I created an application in the developer console and an API key for it (browser, without domain binding).
  2. Connected YouTube Data API v3.
  3. Created HTML (copied from this example).

But I get this error as an answer:

[ { "error": { "code": 403, "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.", "data": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." } ] }, "id": "gapiRpc" } ]

Tell me, what am I doing wrong, or at least in which direction to dig?

    1 answer 1

    Access not defined (not configured).
    You need to check again the keys, client_id , client_secret and their implementation in the json file, if you use it.
    Next, check what is specified in access to "Public API access", if you are not using a specific domain, then specify the ip-addresses, in particular 127.0.0.1 and the port, if necessary.

    Although ... the question was asked long ago and the author has already found a solution.