Google 网站管理员 API 身份验证

Google webmasters API authentication

我正在使用这些脚本:http://googlewebmastercentral.blogspot.co.uk/2011/12/download-search-queries-data-using.html 获取搜索结果查询但是当我 运行 脚本出现时:

第 793 行,在 ProgrammaticLogin 中 提高 BadAuthentication,'Incorrect username or password' gdata.service.BadAuthentication: 用户名或密码不正确

我的用户名和密码是正确的,但是一直出现这个错误。这是 API 不再有效还是我必须做其他事情才能让我使用 Google 网站管理员 API?

如果你能提供给我任何帮助,我将不胜感激

您查询的 API 已在几个月前弃用。您很快就可以使用 Google Search Console API, specifically, the webmasters.searchanalytics.query endpoint. See the Google API Explorer 获得更多详细信息(搜索网站管理员工具)。