Find top search queries and search position in google search results

Every website owner wants their website to show up on search engine results and almost everyone wants to know what are his most trending search queries or keywords and at what position do they show up.

Here is a solution to find out top keywords for your domain and its impression and clicks along with the position of search results on a particular date. One can use this to improve search performance and also to identify how search traffic changes over time, where they are coming from, which pages have highest impressions and click-through rates through Google Search Engine.

Here are the steps to be followed to use this service:

  1. Install the python client library
  2. Open sample directory and copy both clients_secrets.json and search_analytics_api_sample.py to your application folder path
  3. Create a project in Google Developer Console and enable Search Console API
  4. In the Credentials screen, create a new credential of type OAuth 2 ClientID for Application Type: Other. Copy the Client ID and Secret values which are generated.
  5. Replace the client Id and client secret in clients_secrets.json with the credentials just created.
  6. Now run search_analytics_api_sample.py with this command :

python search_analytics_api_sample.py http://ravindranaik.com 2016-05-01 2016-05-15″

 

 

Sample Output

Available dates:
Keys                              Clicks         Impressions                 CTR            Position
2016-05-01                       22823.0            373911.0     0.0610385893969        8.1829472789
2016-05-02                       16075.0            299718.0     0.0536337490574       8.14173322924
2016-05-03                       18794.0            337759.0      0.055643224903       8.07772405769
2016-05-04                       31894.0            468076.0     0.0681385074219        7.4104611217
2016-05-05                       34392.0            482919.0      0.071216912153       7.20689805123
2016-05-06                       35650.0            484353.0     0.0736033430164       7.11683214515
2016-05-07                       33994.0            465812.0     0.0729779395979       6.91755472165
2016-05-08                       27328.0            413007.0     0.0661683700276       7.22172747677
2016-05-09                       16637.0            297302.0     0.0559599329974       8.01876206685
2016-05-10                       19167.0            332607.0     0.0576265682923       7.87882696395
2016-05-11                       35358.0            499888.0      0.070731843933       7.11701821208
2016-05-12                       35952.0            486583.0      0.073886675038       6.80677294521
2016-05-13                       34417.0            480777.0      0.071586203167       6.86552185317
2016-05-14                       32029.0            457187.0     0.0700566726525       6.92575904389
2016-05-15                       27071.0            415973.0     0.0650787430915       7.27105605412

 

Thanks for dropping by !!! Feel free to comment to this post or you can also drop me an email at naik899@gmail.com

Leave a Reply

Your email address will not be published. Required fields are marked *