Hi! I believe you're doing SEO for yourself or a client for which you need to get these serp statistics from Google on a timely basis? I had this same issue and the practise we've been following is manually typing the key phrases into Google and creating an excel sheet with the relevant information in order to execute this report.
However, a few days back I decided that this needs to be automated and no longer done manually as its a task that's not worth the time. Hence I've created a JavaScript file with certain parameters that will fetch the data that I want and open it in another tab in a html table format. It worked the first day, for around 63 key ohrases which gave me the results of page numbers, page ranks for 100 search results.
Now when I try the code, I'm getting an error which seems to be due to my IP being blocked by Google probably cause of this bot like behavior of my script.
Anyone has a work around for this?