After much speculation over time, and finally introducing a beta, Google has officially announced the new Search Analytics API for the Google Search Console.
After launching the Search Analytics reports in the Google Search Console, many webmasters wanted a more programmatic way to access the data, so Google began working on an API for that.
Google has provided how to examples on ways to use this API.
Google’s John Mueller said on Google+:
So go get it and get your Search Analytics data in a more efficient way via the Search Analytics API.
Forum discussion at Google+.