python-youtube-api
python-youtube-api copied to clipboard
Traceback caused when fetching comments from video because of "items"
On multiple machines I've been getting this error when using the fetch comment feature from a video url:
Traceback (most recent call last):
File "main.py", line 58, in
Anyone else getting this problem or have figured it out?
I got the same problem, and here is the Youtube API response : {'error': {'message': 'Access Not Configured. YouTube Data API has not been used in project 67650486589 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=6xxxxx9 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.', 'code': 403, 'errors': [{'message': 'Access Not Configured. YouTube Data API has not been used in project 6xxxxxxxxxxxx9 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=6xxxxx89 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.', 'extendedHelp': 'https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=6xxxxxx89', 'domain': 'usageLimits', 'reason': 'accessNotConfigured'}]}}
You need to enable your project (credentials) on the Youtube console
I got the same problem, and as @MoezBHH said, we need to enable the "YouTube Data API v3" in the site https://console.developers.google.com/apis:
menu ->> APIs & Services ->> library ->> search for "YouTube Data API v3" ->> enable
wait for a while and retry your code 😉