googleapiclient.errors.UnknownApiNameOrVersion: name: webmasters version: v3
See original GitHub issueOS 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 build(‘webmasters’, “v3”, developerKey=“developer_key”) Stack trace googleapiclient.errors.UnknownApiNameOrVersion: name: webmasters version: v3
Hi Team,
While trying to get data from Search Console API and get this error UnknownApiNameOrVersion.
I tried the discovery API and it showed the the discoveryRestUrl as
https://www.googleapis.com/discovery/v1/apis/webmasters/v3/rest
But, the same url on web is down:
Please rectify immediately.
All our reports are breaking.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:26
Top 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 >discovery.py - Google Git
from googleapiclient.errors import UnknownApiNameOrVersion. from googleapiclient.errors import ... version are the names from the Discovery service.
Read more >Source Code for Module googleapiclient.discovery
_helpers import _add_query_parameter 81 from googleapiclient. ... The serviceName and 200 version are the names from the Discovery service.
Read more >Googleapiclient.Errors.Unknownapinameorversion: Name
google/googleapipythonclient Google API Client This is the Python client library ... UnknownApiNameOrVersion: name: webmasters version: v3 build'webmasters' ...
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
So, I’m not really seeing, from this article which actions are actually required, but updating the build step to use
discovery.build('searchconsole', 'v1')
instead of the olddiscovery.build('webmasters', 'v3')
resolved the issue for me, and also seems to be actually using the oldwebmasters/v3
endpoint with therest
document:https://www.googleapis.com/discovery/v1/apis/searchconsole/v1/rest
working off of that assumption now at least.
both webmasters/v3 and searchconsole/v1 are working now. Seems better to shift to searchconsole/v1 for future consistency. Closing this now.