What Google Search Console for Python does
google-searchconsole is a Python wrapper for the Google Search Console Search Analytics Query API. It handles credentials and authentication, lets you build queries as objects rather than posting nested JSON, and returns results as clean JSON or pandas DataFrames. It is built on Google's own API client and follows the design of the google-analytics package by debrouwere. Using it requires a Google Developers Console project with the Search Console API enabled.
Setup runs through pip install from the GitHub repository, then an OAuth client ID created in the Google Developers Console as an Other Application type, with client secrets downloaded as JSON. Credentials can be reused from a stored file or generated through an interactive OAuth2 flow. From there you traverse accounts and webproperties, run queries by date range and dimension filters, and pull output into Python or Excel.
Key features
- OAuth2 and stored credentials
- Authenticate with stored credential files or run the OAuth2 flow interactively to generate fresh credentials.
- Query objects over nested JSON
- Build queries by date range and dimension with a query object instead of posting large nested JSON payloads.
- Dimension filters on queries
- Apply filters while executing a query, with the available filter types documented on the project site.
- Selectable search types
- Specify which search type data to retrieve when running a query against the Search Analytics API.
- Account hierarchy traversal
- Traverse accounts and their webproperties, with the permission level for each property reported.
- pandas DataFrame exports
- Return results as pandas DataFrames for analysis in Python, or as clean JSON for use in Excel.
- Built on Google API client
- Runs on top of Google's own API client library for the Search Console API.
- unittest test suite
- The project ships a test suite written against Python's built in unittest framework.
- Install from GitHub
- Installed with pip directly from the repository URL, with documentation hosted on GitHub Pages.
How it works
- Install the package with pip from the GitHub repository URL.
- Create a project in the Google Developers Console and enable the Search Console API.
- Create an OAuth client ID of the Other Application type and download the client secrets JSON.
- Authenticate, optionally saving credentials to a file to avoid repeating the flow.
- Build a query object with date ranges, dimensions and filters, then read JSON or DataFrame output.
Plans and pricing
Distributed free under the MIT licence, with no paid tier or hosted service listed.
Integrations and platforms
Works with
- Google Search Console Search Analytics API
- Google Developers Console
- Google API Python client
- pandas
- Excel
Available as
- API
Repository facts
- Repositoryjoshcarty/google-searchconsole
- LanguagePython
- Stars256
- Forks75
- LicenceMIT
- Created2017-12-28
- Last commit2025-11-15
- Open issues2
- analytics
- api
- api-client
- python
- seo
Services and details
Does SEO work itself
YesFree plan or free tools
YesAPI or MCP server
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company joshcarty
- Website: github.com/joshcarty/google-searchconsole
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.