Google has updated the Google Search Console API to offer us sooner and more energizing knowledge, the flexibility to filter knowledge primarily based on the information filter, area property help in Sitemaps and tips on learn how to migrate the Discovery doc.
Loads of this may occasionally stem from the groundwork Google set when the corporate upgraded the API infrastructure for the Search Console API. Again them Google stated there have been “at the moment no adjustments in scope or performance” however now e are getting them.
Contemporary Information Now In The Google Search Console API
Google in September 2019 gave us fresher data for the performance reports in Google Search Console, after which in December 2019 that fresh data came to Discover reports. Properly, now the API can present you that knowledge as nicely.
Simply notice, the contemporary knowledge is “not ultimate” and while you get the ultimate set of that knowledge, the numbers can change, Google stated.
To entry this contemporary knowledge, ensure that to move the request parameter dataState with worth set to all. The information you get for this worth may also embody contemporary knowledge that isn’t but ultimate. When you want to get solely ultimate knowledge, you’ll be able to both move this parameter with worth set to ultimate or not move it in any respect and you’re going to get solely ultimate knowledge by default, Google stated.
Information Filter In The Google Search Console API
In July 2020 Google added a news filter option within the efficiency experiences in Search Console. Now you can additionally entry that knowledge within the API.
Google stated “This data is now additionally out there within the API, and you’ll entry it by setting the worth of searchType parameter within the request to information.”
Area Property Assist In Sitemaps API
I’m stunned this one took this lengthy, Google added domain property verification and views again in February 2019. Area properties allows you to arrange a brand new verified property in Search Console that it allows you to mix a number of properties in Search Console into one, to see an mixture view of the info.
The Sitemaps API now helps area properties, as different Search Console APIs already do. You possibly can question, add, and delete your sitemaps on area properties, for instance:
GET https://www.googleapis.com/site owners/v3/websites/sc-domain:instance.com/sitemaps
Discovery Doc Migration
Google stated it would drop the help within the Site owners discovery doc. Google stated for these querying the Search Console API utilizing an exterior API library, or querying the Site owners API discovery doc straight, you’ll need to replace your API calls to incorporate the next adjustments.
Here’s a display screen shot of these adjustments:
Discussion board dialogue at Twitter.