Google Search Console API guide

search.google.com

Use Google Search Console to review search performance, check URL indexing, and submit sitemaps for properties you manage.

Actions and inputs

webmasters list-sites

List the Search Console properties you can access.

searchanalytics query

Retrieve search performance metrics for a property over a date range.

Inputs property, start date, end date, optional dimensions

url-inspection inspect-batch

Check indexing status for multiple URLs on a property.

Inputs property, URLs, optional daily request limit

webmasters submit-sitemap

Submit a sitemap for a property you manage.

Inputs property, sitemap URL

Submitted Search Console sitemap

Create

Submit a sitemap for a property you manage.

Inputs property, sitemap URL

Read

Check the submitted sitemap's processing status and reported errors.

Inputs property, sitemap URL

Update

Resubmit the sitemap after updating its file on your site.

Inputs property, existing sitemap URL

Delete

Remove the sitemap submission from Search Console without deleting the file from your site.

Inputs property, sitemap URL