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.

webmasters V3 API down 
googleapiclient.errors.UnknownApiNameOrVersion: name: webmasters version: v3

See original GitHub issue

Environment details

OS macOS: 10.15.4 
Python version: python 3.8.1
 pip version: pip 19.0.3
 google-api-python-client version: 1.12.1

Code example

from googleapiclient.discovery import build
 service = build(
        'webmasters',
        'v3',
        credentials=credentials
    )

Stack trace 
googleapiclient.errors.UnknownApiNameOrVersion: name: webmasters version: v3

While trying to get data from Search Console API we get this error UnknownApiNameOrVersion.

URL on web is also down 404  That's an error

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
DanReiacommented, Nov 11, 2021

@busunkim96 I will give searchconsole v1 a go, thank you for your help!

1reaction
partheacommented, Nov 8, 2021

Please update to google-api-python-client version 2.x in order to use static discovery artifacts which are included with the library.

The following should work on google-api-python-client version 2.x


from googleapiclient.discovery import build
service = build('webmasters','v3')
Read more comments on GitHub >

github_iconTop Results From Across the Web

python - UnknownApiNameOrVersion("name: %s version: %s ...
The log shows error originating from webmasters build function mentioned below. from googleapiclient.discovery import build import requests from ...
Read more >
Google Search Console API issue
googleapiclient.errors.UnknownApiNameOrVersion: name: webmasters version: v3. The error happens on this line of code:.
Read more >
name: webmasters version: v3 · Issue #1042 · googleapis ...
Hi Team,. While trying to get data from Search Console API and get this error UnknownApiNameOrVersion. I tried the discovery API and it...
Read more >
Johannes Kunze on Twitter: "Hey @JohnMu & @googlewmc, it ...
@googlewmc, it looks like there is a problem with the GSC API ... UnknownApiNameOrVersion: name: webmasters version: v3 · Issue #1042 ·.
Read more >
Search Console API - Google Developers
The Search Console API provides programmatic access to the most popular reports and actions in your Search Console account. Query your search analytics, ......
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