PHPackages                             eyecatchup/webmaster-tools-data - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eyecatchup/webmaster-tools-data

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eyecatchup/webmaster-tools-data
===============================

An easy way to automate downloading of data tables from Google Webmaster Tools

1052.1k72[11 issues](https://github.com/eyecatchup/php-webmaster-tools-downloads/issues)[3 PRs](https://github.com/eyecatchup/php-webmaster-tools-downloads/pulls)PHP

Since Mar 4Pushed 9y ago23 watchersCompare

[ Source](https://github.com/eyecatchup/php-webmaster-tools-downloads)[ Packagist](https://packagist.org/packages/eyecatchup/webmaster-tools-data)[ RSS](/packages/eyecatchup-webmaster-tools-data/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

GWTdata: Download website data from Google Webmaster Tools as CSV.
==================================================================

[](#gwtdata-download-website-data-from-google-webmaster-tools-as-csv)

Introduction
------------

[](#introduction)

This project provides an easy way to automate downloading of data tables from Google Webmaster Tools and tries to provide a PHP alternative to the Python script available here , for downloading CSV files from Google Webmaster Tools.

Unlike the python script (or a perfect clone), this solution does NOT require an extra client library or zend package be installed in order to run. Also it has some advanced functionality.

### Features

[](#features)

Since the official download list (used by the python script) returns download URLs for 1.) Top Search Queries and 2.) Top Pages only, but via the web interface there're much more downloads available, i extended the GWTdata class, so you can now download website data for:

- TOP\_PAGES
- TOP\_QUERIES
- CRAWL\_ERRORS
- CONTENT\_ERRORS
- CONTENT\_KEYWORDS
- LATEST\_BACKLINKS
- INTERNAL\_LINKS
- EXTERNAL\_LINKS
- SOCIAL\_ACTIVITY

### Update notice

[](#update-notice)

In case you want to automate downloading **crawl errors**, please go here: [https://github.com/eyecatchup/GWT\_CrawlErrors-php](https://github.com/eyecatchup/GWT_CrawlErrors-php)

Usage
-----

[](#usage)

This document explains how to automate the file download process from Google Webmaster Tools by showing examples for using the php class GWTdata.

### Get started

[](#get-started)

To get started, the steps are as follows:

- Download the php file gwtdata.php.
- Create a folder and add the gwtdata.php script to it.

### Example 1 - `DownloadCSV()`

[](#example-1---downloadcsv)

To download CSV data for a single domain name of choice, the steps are as follows:

- In the same folder where you added the gwtdata.php, create and run the following PHP script.
    *You'll need to replace the example values for "email" and "password" with valid login details for your Google Account and for "website" with a valid URL for a site registered in your GWT account.*

```
