
Witness an Increase in your ROI
Unlock higher rankings, quality traffic, and amplified conversions through tailored award-winning SEO strategies.
Listen up, Google Search Console API users! Google Webmasters want you to know something, and it’s rather serious. Google announced on Twitter today that it will stop its Search Console API support for batch HTTP and JSON-RPC requests.
Google had already alerted Search Console API users in 2018 that it will discontinue support for HTTP and JSON-RPC requests in the future.
Developers still use HTTP and JSON-RPC requests
Google had decided to stop support for these requests by March 25, 2019. However, the timeline had to be extended because they had observed many developers continuing to use the HTTP and JSON-RPC requests in their code. Google feels this may be due to its customers not being notified of the discontinuation of these features from 2018.
Message to Developers
Google has a message for all developers that use the Search Console API to fetch metrics. Although the scripts may have been written a few years ago, Google wants you to take some time out and dig into your code. You are expected to find any HTTP and JSON-RPC requests being made in your scripts and re-structure the code implementation.
How to find JSON-RPC requests in code?
To locate JSON-RPC requests in your scripts, you need to look for this piece of code:
Javascript code
You need to replace this with the JSON-REST client library. After the proper implementation, your code snippet should look something like this:
Javascript code
How to find HTTP batch requests in code?
To locate HTTP Batch requests, search your script for any heterogeneous batch requests made. This would look something like:
Javascript code
These HTTP heterogeneous batch requests will soon be discontinued.
Google suggests using homogeneous batch requests instead. After the proper implementation of code, your script should look something like this:
Javascript code
For more Programming language-specific code changes, visit Google’s official migration guide.
Key Learning
- There are a lot of developers using scripts to fetch data from Google Search Console API.
- Many SEO agencies and organizations use the API to create frequent reports for their clients. There are also dashboards, tracking, and automation tools built upon the Search Console API. If your code consists of any HTTP or JSON-RPC requests, the automation tools will fail to read through them.
- We would advise you to look into your code and adhere to the migrations recommended by Google. Make sure you are using the new JSON-REST and Homogeneous requests to fetch metrics from Google Search Console API.