Google has provided programmatic access to the search queries data in Webmaster Tools with ‘Python’. The Python script for downloading search query data was brought by Google in December 2011 and now has new download options that make the data download highly more useful.

With this open source Python script from the webmaster-tools-downloads project, webmasters can now access their search queries data in CSV format. Google has clarified that the search queries data is not currently available via the Webmaster Tools API, and is being considered for the next API update. Here is the example Google gives as to how the search queries downloader Python script can be used to download search queries data and then upload it to a Google Spreadsheet in Google Docs.

“Example usage of the search queries downloader Python script:

  1. If Python is not already installed on your machine, download and install Python.
  2. Download and install the Google Data APIs Python Client Library.
  3. Create a folder and add the script to the newly created folder.
  4. Copy the script to the same folder as and edit it to replace the example values for “website,” “email” and “password” with valid values for your Webmaster Tools verified site.
  5. Open a Terminal window and run the script by entering "python" at the Terminal window command line: python
  6. Visit Google Docs to see a new spreadsheet containing your search queries data.”


Webmasters can set up these scripts to be run daily or monthly and can archive it for longer periods too. With search query chart data downloads, webmasters have access to information not easily available before. While viewing search query data, the chart in the user interface shows impression and click data per day. Prior to this, the detail has only been available if one hovered over a dot in the chart. But now, the detailed chart data available for download provides a greater understanding of the data.


Navneet Kaushal is the Editor-in-Chief of PageTraffic Buzz. A leading search strategist, Navneet helps clients maintain an edge in search engines and the online media. Navneet is also the CEO of SEO Services company PageTraffic which is one of the leading search marketing company in Asia.