PHPackages                             hardworm/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. hardworm/webmaster.api

ActiveLibrary[API Development](/categories/api)

hardworm/webmaster.api
======================

Yandex Webmaster Api v4.1 library

1.4.0(4y ago)109.7k↓50%3MPL-2.0PHPPHP &gt;=7.4.0

Since Feb 9Pushed 3y ago2 watchersCompare

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

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

Yandex Webmaster Api v4.1 Library
=================================

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

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

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

[](#installation)

### Composer

[](#composer)

add into composer.json

```
{
    "require": {
        ...
        "hardworm/webmaster.api": "1.4.*"
        ...
    }
}
```

or

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

```

Also required prior to placing the package on packagist.org

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

### Manual

[](#manual)

Clone repository and require webmasterApi.php

Usage
-----

[](#usage)

### How to use example:

[](#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:

[](#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.

    1. Read doc on
    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)
    3. Use static method getAccessToken to get access token
    4. Create webmasterApi object with static method webmasterApi::initApi

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

4. Enjoy!

### Methods

[](#methods)

- `addHost`
- `addOriginalText`
- `addQueueRecrawl`
- `addSitemap`
- `checkVerification`
- `curlOpts`
- `dataToString`
- `delete`
- `deleteHost`
- `deleteOriginalText`
- `deleteSitemap`
- `errorCritical`
- `get`
- `getAccessToken`
- `getApiUrl`
- `getDiagnostics`
- `getHostInfo`
- `getHostOwners`
- `getHostSitemaps`
- `getHostSummary`
- `getHostUserSitemaps`
- `getHosts`
- `getIndexingHistory`
- `getIndexingSamples`
- `getOriginalTexts`
- `getPopularQueries`
- `getQueueRecrawl`
- `getQuotaRecrawl`
- `getSearchUrlHistory`
- `getSearchUrlSamples`
- `getSearchUrlEventHistory`
- `getSearchUrlEventHistorySamples`
- `getSqiHistory`
- `getStateRecrawlQueue`
- `getUserID`
- `initApi`
- `post`
- `verifyHost`

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 54.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 ~157 days

Recently: every ~229 days

Total

7

Last Release

1714d ago

PHP version history (3 changes)1.0.1PHP &gt;=5.3.0

1.2.1PHP &gt;=5.4.0

1.4.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6283ce4ce03bc3474fb59768486d9dd21579bb1efe66eb56a46e7635d3191db0?d=identicon)[hardworm](/maintainers/hardworm)

---

Top Contributors

[![DmitriyPopov](https://avatars.githubusercontent.com/u/4005843?v=4)](https://github.com/DmitriyPopov "DmitriyPopov (31 commits)")[![hardworm](https://avatars.githubusercontent.com/u/2413912?v=4)](https://github.com/hardworm "hardworm (10 commits)")[![G1K](https://avatars.githubusercontent.com/u/12802312?v=4)](https://github.com/G1K "G1K (8 commits)")[![shabashoff](https://avatars.githubusercontent.com/u/17660131?v=4)](https://github.com/shabashoff "shabashoff (2 commits)")[![Philosoft](https://avatars.githubusercontent.com/u/296326?v=4)](https://github.com/Philosoft "Philosoft (2 commits)")[![AloneCoder](https://avatars.githubusercontent.com/u/1390917?v=4)](https://github.com/AloneCoder "AloneCoder (1 commits)")[![idealcms](https://avatars.githubusercontent.com/u/22996446?v=4)](https://github.com/idealcms "idealcms (1 commits)")[![a2u](https://avatars.githubusercontent.com/u/1529979?v=4)](https://github.com/a2u "a2u (1 commits)")[![edim24](https://avatars.githubusercontent.com/u/6409091?v=4)](https://github.com/edim24 "edim24 (1 commits)")

---

Tags

apiyandexwebmaster

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[yandex/geo

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

117309.0k3](/packages/yandex-geo)

PHPackages © 2026

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