UnknownApiNameOrVersion: name: youtube version: v3
See original GitHub issue- OS macOS: 10.15.4
- Python version:
python 3.7.7
- pip version:
pip 19.0.3
google-api-python-client
version:1.8.2
Code example
from googleapiclient.discovery import build
build('youtube', "v3", developerKey="developer_key")
Stack trace
googleapiclient.errors.UnknownApiNameOrVersion: name: youtube version: v3
Hello,
While trying to get data from YouTube Data API get this error UnknownApiNameOrVersion. Looks like youtube v3 api dont have discovery v2 url.
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:9 (3 by maintainers)
Top Results From Across the Web
googleapiclient.errors.UnknownApiNameOrVersion: name: ...
Returns: An authorized youtube API V3 service object. ... analytics = initialize_analyticsreporting() if __name__ == '__main__': main().
Read more >googleapiclient.errors.UnknownApiNameOrVersion: name ...
I have been trying for youtube content api and tried with the following code def main(): credentials = ServiceAccountCredentials.from_json_keyfile_name( ...
Read more >googleapiclient.errors.UnknownApiNameOrVersion Example
UnknownApiNameOrVersion taken from open source projects. ... The serviceName and version are the names from the Discovery service. Args: serviceName: string ...
Read more >Python on App Engine Code Samples | YouTube Data API
The following Python code samples demonstrate how to use App Engine to make YouTube Data API (v3) calls. You can download these code...
Read more >discovery.py
from googleapiclient.errors import UnknownApiNameOrVersion ... raise UnknownApiNameOrVersion("name: %s version: %s" % (serviceName,. version)).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Quick update: the change that caused this issue is being rolled back.
Hi all - the server theory is correct. The version of the library you are using should not matter. The discovery document is fetched from https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest (which is unfortunately down right now).
If you’re experiencing unreliability you may want to temporarily download the document and use
build_from_document
.I’ll file a bug internally to make sure folks know this is down.
Thanks for the report!