---
metadata:
  - name: generator
    content: Diplodoc Platform v5.44.0
alternate:
  - https://yandex.ru/dev/webmaster/doc/en/reference/host-id-summary.md
  - https://yandex.ru/dev/webmaster/doc/ru/reference/host-id-summary.md
keywords:
  - s
  - i
  - t
  - e
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/webmaster/doc/en/llms.txt


# Getting site statistics

Returns general information about site indexing.
## Request format

```
GET https://api.webmaster.yandex.net/v4/user/{[user-id](*user-id)}/hosts/{[host-id](*host-id)}/summary
```

#|
||
`user-id`
|
<!-- source: en/_includes/popups.md -->
Type: `int64`. User ID. Required when calling all Yandex.Webmaster API resources. To get it, use the [GET /v4/user](https://yandex.ru/dev/webmaster/doc/en/reference/user.md) method.
<!-- endsource: en/_includes/popups.md -->
||
||
`host-id`
|
<!-- source: en/_includes/popups.md -->
Type: `host id (string)`. The site ID. To get it, use the [GET /v4/user/{user-id}/hosts](https://yandex.ru/dev/webmaster/doc/en/reference/hosts.md) method.
<!-- endsource: en/_includes/popups.md -->
||
|#

## Response format

### Example

> 
> {% list tabs %}
> 
> - JSON
> 
>   
>   ```javascript
>   {
>     "sqi": 1,
>     "excluded_pages_count": 1,
>     "searchable_pages_count": 1,
>     "site_problems": {
>       "[FATAL](*fatal)": 1
>     }
>   }
>   ```
>   
> 
> - XML
> 
>   
>   ```xml
>   <Data>
>       <sqi>1</sqi>
>       <excluded_pages_count>1</excluded_pages_count>
>       <searchable_pages_count>1</searchable_pages_count>
>       <site_problems>
>           <[FATAL](*fatal)>1<FATAL>
>       </site_problems>
>   </Data>
>   ```
> 
> {% endlist %}
> 
> #|
> || **Parameter** | **Required** | **Type** | **Description** ||
> || `sqi` | Yes | `int32` | [Site quality index](https://yandex.ru/support/webmaster/site-quality-index.html?lang=en). ||
> || `excluded_pages_count` | Yes | `int64` | The number of excluded pages. ||
> || `searchable_pages_count` | Yes | `int64` | Number of pages in search. ||
> || `site_problems` | Yes | `int32` | For the number of issues found on the site, grouped by severity, see [Error severity](https://yandex.ru/dev/webmaster/doc/en/reference/host-id-summary.md#severity-table). ||
> |#

<!-- source: en/_includes/reference/site-problem-severity-enum.md -->
### Issue categories on the site (SiteProblemSeverityEnum) {#severity-table}

#|
||
**Indicator** | **Description** | **Note**
||
||
`FATAL`
|
Fatal errors. Checks the server connection, site availability for indexing, security and compliance with [Yandex guidelines](https://yandex.ru/company/rules/optimization/).
|
This may lead to excluding individual pages or the entire site from search results.

We recommend monitoring these errors and fixing them as soon as possible.
||
||
`CRITICAL`
|
Critical issues. Checks the presence and validity of the SSL certificate, the number of broken internal links, and the server response time.
||
||
`POSSIBLE_PROBLEM`
|
Possible issues. Checks the [Sitemap](https://yandex.com/support/webmaster/controlling-robot/sitemap.html) and [robots.txt](https://yandex.com/support/webmaster/controlling-robot/robots-txt.html) file validity, settings for displaying non-existent files, the number of duplicate pages, the presence of redirects, annoying ads, and so on.
|
May affect the quality and speed of site indexing.
||
||
`RECOMMENDATION`
|
Recommendations. Usually includes suggestions for improving the site's ranking in search results. | Use them to improve the site's ranking in search results.
||
|#
<!-- endsource: en/_includes/reference/site-problem-severity-enum.md -->

## Response codes

To view the response structure in detail, click the reason.

#|
||
**Code** | **Reason** | **Description**
||
||
200 | OK | 
||
||
403
|
[INVALID_USER_ID](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md#invalid-user-id) | The ID of the user who issued the token differs from the one specified in the request. In the examples below, `{user_id}` shows the correct `uid` of the OAuth token owner.

{% list tabs %}

- JSON

  ```json 
  {   
    "error_code": "INVALID_USER_ID",   
    "available_user_id": 1,   
    "error_message": "Invalid user id. {user_id} should be used."
  }
  ```

- XML

  ```xml
  <Data>     
      <[error_code](*error_code)>INVALID_USER_ID</error_code>     
      <[available_user_id](*available_user_id)>1</available_user_id>     
      <[error_message](*error_message)>Invalid user id. {user_id} should be used.</error_message>
  </Data>
  ```

{% endlist %}
||
||
404
|
[HOST_NOT_FOUND](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md#host-not-found) | The site is not in the list of the user's sites.

{% list tabs %}

- JSON

  ```javascript
  {   
      "error_code": "HOST_NOT_FOUND",   
      "host_id": "http:ya.ru:80",   
      "error_message": "explicit error message"
  }
  ```

- XML

  ```xml 
  <Data>     
      <[error_code](*error_code)>HOST_NOT_FOUND</error_code>     
      <[host_id](*host_id)>http:ya.ru:80</host_id>     
      <[error_message](*error_message)>explicit error message</error_message>
  </Data>
  ```

{% endlist %}
||
||
404
|
[HOST_NOT_LOADED](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md#host-not-loaded) | The site data isn't uploaded to Yandex.Webmaster yet.

{% list tabs %}

- JSON

  ```json 
  {   
      "error_code": "HOST_NOT_LOADED",   
      "host_id": "http:ya.ru:80",   
      "error_message": "some string" 
  }
  ```

- XML

  ```xml
  <Data>   
      <[error_code](*error_code)>HOST_NOT_LOADED</error_code>     
      <[host_id](*host_id)>http:ya.ru:80</host_id>   
      <[error_message](*error_message)>some string</error_message>
  </Data>
  ```

{% endlist %}
||
||
404
|
[HOST_NOT_VERIFIED](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md#host-not-verif) | Site management rights are not verified.

{% list tabs %}

- JSON

  ```json
  {   
      "error_code": "HOST_NOT_VERIFIED",   
      "host_id": "http:ya.ru:80",   
      "error_message": "some string"
  }
  ```

- XML

  ```xml 
  <Data>   
      <[error_code](*error_code)>HOST_NOT_VERIFIED</error_code>     
      <[host_id](*host_id)>http:ya.ru:80</host_id>   
      <[error_message](*error_message)>some string</error_message>
  </Data>
  ```

{% endlist %}
||
|#

### Related information

- [Error codes and statuses](https://yandex.ru/dev/webmaster/doc/en/reference/errors.md)




[*user-id]: Type: `int64`. User ID. Required when calling all Yandex.Webmaster API resources. To get it, use the [GET /v4/user](https://yandex.ru/dev/webmaster/doc/en/reference/user.md) method.

[*host-id]: Type: `host id (string)`. The site ID. To get it, use the [GET /v4/user/{user-id}/hosts](https://yandex.ru/dev/webmaster/doc/en/reference/hosts.md) method.

[*fatal]: ### Issue categories on the site (SiteProblemSeverityEnum) {#severity-table}

#|
||
**Indicator** | **Description** | **Note**
||
||
`FATAL`
|
Fatal errors. Checks the server connection, site availability for indexing, security and compliance with [Yandex guidelines](https://yandex.ru/company/rules/optimization/).
|
This may lead to excluding individual pages or the entire site from search results.

We recommend monitoring these errors and fixing them as soon as possible.
||
||
`CRITICAL`
|
Critical issues. Checks the presence and validity of the SSL certificate, the number of broken internal links, and the server response time.
||
||
`POSSIBLE_PROBLEM`
|
Possible issues. Checks the [Sitemap](https://yandex.com/support/webmaster/controlling-robot/sitemap.html) and [robots.txt](https://yandex.com/support/webmaster/controlling-robot/robots-txt.html) file validity, settings for displaying non-existent files, the number of duplicate pages, the presence of redirects, annoying ads, and so on.
|
May affect the quality and speed of site indexing.
||
||
`RECOMMENDATION`
|
Recommendations. Usually includes suggestions for improving the site's ranking in search results. | Use them to improve the site's ranking in search results.
||
|#

[*error_code]: **Description**

Error code.

[*available_user_id]: **Description**

ID of the user who allowed access.

[*host_id]: **Description**

ID of the requested site.

[*error_message]: **Description**

Error message.