0

I’m trying to use the YouTube Content ID API to retrieve metadata for all assets associated with my content owner account, including the customId field, and save the results to a CSV file. However, I’m encountering an error when building the API client with googleapiclient.discovery.build:

What I’m Trying to Do I want to:

Authenticate using OAuth 2.0 with a saved token.json (generated via google-auth-oauthlib). Call the assets.list endpoint to fetch all asset metadata, including customId, title, type, ownership, etc. Save the results to a CSV file with columns like asset_id, type, title, custom_id, etc. My account is a YouTube Partner with Content ID access, and I’m using the correct contentOwnerId.

Questions Why am I getting the Error building API client: name: youtubePartner version: v1? Is youtubePartner the correct API name for the YouTube Content ID API? How can I fix this to successfully call assets.list and retrieve customId in the metadata? Are there specific configurations or library versions needed for the youtubePartner API? If googleapiclient isn’t viable, what’s the best way to structure HTTP requests to ensure I get all asset metadata, including customId?

1
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Commented May 5 at 13:00

1 Answer 1

0

I solved it adding the param static_discovery=False when i call the build method

build(..., static_discovery=False)

I have no way to test the API because i still have no access to it, but at least i have this error no more.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.