question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing youtubePartner.v1.json API definition

See original GitHub issue

In documentation for Content ID API, there are examples mentioning youtubePartner service / API, but doesn’t work

https://developers.google.com/youtube/partner/upload_claim_sample#obtain-services

Code example

# credentials: google.oauth2.credentials.Credentials
# these credentials are valid, can access `youtube/v3` API and load data with these

googleapiclient.discovery.build("youtubePartner", "v1", credentials=credentials)

Stack trace

File "/usr/local/lib/python3.9/site-packages/googleapiclient/discovery.py", line 398, in _retrieve_discovery_doc
    raise UnknownApiNameOrVersion("name: %s  version: %s" % (serviceName, version))
googleapiclient.errors.UnknownApiNameOrVersion: name: youtubePartner  version: v1

Note

Also cannot locate the file in repository https://github.com/googleapis/google-api-python-client/tree/main/googleapiclient/discovery_cache/documents

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
partheacommented, Sep 1, 2021

I’ve confirmed that the docs at https://developers.google.com/youtube/partner/upload_claim_sample#obtain-services have been updated to include static_discovery=False.

2reactions
partheacommented, Aug 31, 2021

Thanks for confirming @MichalVasut. I’ve proposed an improvement to the docs via internal cl/394006151. I’ll keep this issue open until the docs are updated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

YouTube Data API - Errors | Google Developers
This error indicates that the user has an unlinked Google Account, which means that the user has a Google Account but does not...
Read more >
Youtube Partner API is missing · Issue #2815 - GitHub
Problem While other language clients of google like PHP, or Python do support Youtube Partner API, Node does not, forcing us to make...
Read more >
How to get content owner info for particular video via YouTube ...
Is there a way to get content owner information (attribution) for particular video via YouTube Partner API? For example, this video: http://www.youtube.com/ ...
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 >
youtube - Go Packages
Package youtube provides access to the YouTube Data API v3.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found