No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7f41bda Apr 13, 2017


Yandex Webmaster Api v3 Library



add into composer.json

    "require": {
        "yandex/webmaster.api": "dev-master"


php composer.phar require yandex/webmaster.api "dev-master"

Also required prior to placing the package on

    "repositories": [
            "type": "vcs",
            "url": ""


Clone repository and require webmasterApi.php


###How to use example:

  1. Before use this code go to and add new client

  2. Create file "example/config.php" by copy "config.example.php". Add client ID and secret code here to use example

###How to use webmasterApi class:

  1. Add client on page. Don't forget to set up correct return url

  2. For test you can get temporary Access Token (read comments to method webmasterApi::getAccessToken )

  3. If you want to get correct Access Token, you must create authorization code. 2.1 Read doc on 2.2 Locate your client to[yourclient_id] 2.3 Use static method getAccessToken to get access token 2.4 Create webmasterApi object with static method webmasterApi::initApi

You can see example/.auth.php to see how it working

  1. Enjoy!

Methods addHost, addOriginalText, addSitemap, checkVerification, curlOpts, dataToString, delete, deleteHost, deleteOriginalText, deleteSitemap, errorCritical, get, getAccessToken, getApiUrl, getHostInfo, getHostOwners, getHostSitemaps, getHostSummary, getHostUserSitemaps, getHosts, getIndexingHistory, getOriginalTexts, getPopularQueries, getTicHistory, getUserID, initApi, post, verifyHost