PHP Classes

PHP Webmaster Tools API: Access Google Webmaster Tools API for given sites

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 1,160 All time: 3,268 This week: 74Up
Version License PHP version Categories
webmaster-tools-api 1.0.23BSD License4Web services, SEO


This class can access Google Webmaster Tools API version 3 for given sites.

It uses OAuth 2.0 to obtain authorization from a user of a Webmaster Tools account that has permissions to access statistics and other services of associated to given sites.

Currently it can get the list of statistic data available for download like a site top searched pages or the top search keywords that lead traffic to a site.

The class can also get the top searched pages list and return it sorted by clicks or impressions, as well filter it to return only URLs that match a given pattern.

A separate class is provided to present a Web forms based user interface to configure and show the list of top searched pages.

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos is available for providing paid consulting. Contact Manuel Lemos .
Classes: 45 packages by
Country: Portugal Portugal
Age: 55
All time rank: 1
Week rank: 4 Down1 in Portugal Portugal Equal


Remarketing and retargeting system
Show advertising based the users Google search

  Files folder image Files  
File Role Description
Files folder imageconfiguration (1 file)
Files folder imagevar (2 directories)
Accessible without login Plain text file access_top_pages.php Example Example script to retrieve the top site pages with more search visits
Plain text file top_pages.php Class Use case class to retrieve site top pages
Plain text file web_master_tools.php Class WebmasterTools access class

  Files folder image Files  /  configuration  
File Role Description
  Plain text file configuration.php Class Configuration class

  Files folder image Files  /  var  
File Role Description
Files folder imagelogs (1 file)
Files folder imagetokens (1 file)

  Files folder image Files  /  var  /  logs  
File Role Description
  Accessible without login Plain text file .cvsignore Data CVS ignore files list

  Files folder image Files  /  var  /  tokens  
File Role Description
  Accessible without login Plain text file .cvsignore Data CVS ignore file 7KB
Downloadwebmaster-tools-api-2017-02-07.tar.gz 5KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP HTTP protocol client Download .zip .tar.gz Send HTTP requests to the Webmaster Tools API Required
PHP Forms Class with HTML Generator and JavaScript Validation Download .zip .tar.gz Present the user interface to configure the options to retrieve the top searched pages Conditional
PHP OAuth Library Download .zip .tar.gz Authorize the access to the Webmaster Tools API on behalf of a given user Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,268
This week:74Up
 User Ratings  
 All time