PHPackages                             alexreznikov/webmaster.api - 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. [API Development](/categories/api)
4. /
5. alexreznikov/webmaster.api

ActiveLibrary[API Development](/categories/api)

alexreznikov/webmaster.api
==========================

Yandex Webmaster Api v3 library

2.0(5y ago)024MPL-2.0PHPPHP &gt;=5.3.0

Since Sep 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alexeyreznikov/webmaster.api)[ Packagist](https://packagist.org/packages/alexreznikov/webmaster.api)[ Docs](https://github.com/yandex/webmaster.api)[ RSS](/packages/alexreznikov-webmasterapi/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

Yandex Webmaster Api v3 Library
===============================

[](#yandex-webmaster-api-v3-library)

- [Installation](#installation)
    - [Composer](#composer)
    - [Manual](#manual)
- [Usage](#usage)

Installation
------------

[](#installation)

### Composer

[](#composer)

add into composer.json

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

or

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

```

Also required prior to placing the package on packagist.org

```
    ...
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/yandex/webmaster.api"
        }
    ]
    ...
```

### Manual

[](#manual)

Clone repository and require webmasterApi.php

Usage
-----

[](#usage)

\###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 [https://oauth.yandex.ru/authorize?response\_type=code&amp;client\_id=\[yourclient\_id\]](https://oauth.yandex.ru/authorize?response_type=code&client_id=%5Byourclient_id%5D)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

4. 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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~244 days

Total

4

Last Release

2064d ago

Major Versions

1.1.1 → 2.02020-09-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1020f05a74ad2771771dfc21866c34fe8e38a2e52cfe05d60295e9a5cc3557b?d=identicon)[alexreznikov](/maintainers/alexreznikov)

---

Top Contributors

[![DmitriyPopov](https://avatars.githubusercontent.com/u/4005843?v=4)](https://github.com/DmitriyPopov "DmitriyPopov (30 commits)")[![G1K](https://avatars.githubusercontent.com/u/12802312?v=4)](https://github.com/G1K "G1K (8 commits)")[![a2u](https://avatars.githubusercontent.com/u/1529979?v=4)](https://github.com/a2u "a2u (1 commits)")[![alexeyreznikov](https://avatars.githubusercontent.com/u/870214?v=4)](https://github.com/alexeyreznikov "alexeyreznikov (1 commits)")[![AloneCoder](https://avatars.githubusercontent.com/u/1390917?v=4)](https://github.com/AloneCoder "AloneCoder (1 commits)")[![edim24](https://avatars.githubusercontent.com/u/6409091?v=4)](https://github.com/edim24 "edim24 (1 commits)")

---

Tags

apiyandexwebmaster

### Embed Badge

![Health badge](/badges/alexreznikov-webmasterapi/health.svg)

```
[![Health](https://phpackages.com/badges/alexreznikov-webmasterapi/health.svg)](https://phpackages.com/packages/alexreznikov-webmasterapi)
```

###  Alternatives

[yandex/geo

PHP-library for interactions with geo-coding Yandex.Maps

117309.0k3](/packages/yandex-geo)[hardworm/webmaster.api

Yandex Webmaster Api v4.1 library

109.7k](/packages/hardworm-webmasterapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
