googleapis.com

The Search Console API provides access to both Search Console data (verified users only) and to public information on an URL basis (anyone)

🔑 oauth2 11 endpoints analyticsmedia
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (10 total)

mcp-toolbox-sdk-python ✓ Official
pip install mcp-toolbox-sdk-python
python-storage ✓ Official
pip install python-storage
python-aiplatform ✓ Official
pip install python-aiplatform
python-genai ✓ Official
pip install python-genai
js-genai ✓ Official
npm install js-genai
go-genai ✓ Official
go get github.com/googleapis/go-genai
sdk-platform-java ✓ Official
# Maven: see https://github.com/googleapis/sdk-platform-java
java-genai ✓ Official
# Maven: see https://github.com/googleapis/java-genai
dotnet-genai ✓ Official
# See https://github.com/googleapis/dotnet-genai
gax-java ✓ Official
# See https://github.com/googleapis/gax-java
curl examples
Lists the user's Search Console sites.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://searchconsole.googleapis.com/webmasters/v3/sites
Retrieves information about specific site.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://searchconsole.googleapis.com/webmasters/v3/sites/{siteUrl}
Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://searchconsole.googleapis.com/webmasters/v3/sites/{siteUrl}/sitemaps
Endpoints (11 total)
GET
/webmasters/v3/sites
Lists the user's Search Console sites.
GET
/webmasters/v3/sites/{siteUrl}
Retrieves information about specific site.
GET
/webmasters/v3/sites/{siteUrl}/sitemaps
Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this…
GET
/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
Retrieves information about a specific sitemap.
POST
/v1/urlInspection/index:inspect
Index inspection.
POST
/v1/urlTestingTools/mobileFriendlyTest:run
Runs Mobile-Friendly Test for a given URL.
POST
/webmasters/v3/sites/{siteUrl}/searchAnalytics/query
Query your data with filters and parameters that you define. Returns zero or …
PUT
/webmasters/v3/sites/{siteUrl}
Adds a site to the set of the user's sites in Search Console.
PUT
/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
Submits a sitemap for a site.
DELETE
/webmasters/v3/sites/{siteUrl}
Removes a site from the set of the user's Search Console sites.
DELETE
/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
Deletes a sitemap from the Sitemaps report. Does not stop Google from crawlin…
At a glance
Total SDKs10
Languages6
Endpoints11
Authoauth2
Categories2
https://searchconsole.googleapis.com