The Search Console API provides programmatic access to much of the functionality of Google Search Console. Use the API to view, add, or remove properties and sitemaps, run advanced queries for Google Search results data for the properties that you manage in Search Console, and test individual pages.
This API is exposed as an HTTP REST service that you can call directly, or using one of our client libraries (recommended).
You must have appropriate access (owner, full, read) to any Google Search Console account that you wish to access using the API.