Getting information about a site


Gets information about the current state of site indexing.

Request format

Send a GET request to the address of the user site resource:


Path parameters

Name Required Type Default value Description
user-id Yes int64 The user ID.
host-id Yes host id Site ID.

Response format

If successful, the server returns 200 OK and information about the site (if the site is verified).


  "host_id": "",
  "verified": true,
  "ascii_host_url": "",
  "unicode_host_url": "",
  "main_mirror": {
    "host_id": "http:xn--d1acpjx3f.xn--p1ai:80",
    "ascii_host_url": "http://xn--d1acpjx3f.xn--p1ai/",
    "unicode_host_url": "http://яндекс.рф/",
    "verified": false
  "host_data_status": "NOT_INDEXED",
  "host_display_name": ""
Name Required Type Description
host_id Yes host id Site ID.
ascii_host_url Yes string ASCII URL of the site.
unicode_host_url Yes string UTF-8 URL of the site.
verified Yes boolean Whether the site is verified.
main_mirror No The site's main mirror, if there is one.
host_data_status No ApiHostDataStatus Information about the site (shown if the site is verified).
host_display_name No string The site name to display.

The status of site indexing (ApiHostDataStatus)

Source Description
NOT_INDEXED The site hasn't been indexed yet.
NOT_LOADED The site data hasn't been loaded to Yandex.Webmaster yet.
OK The site has been indexed and data is available in Yandex.Webmaster.


403 Forbidden

The user ID for the token doesn't match the one specified in the request. In the examples below, {user_id} is the correct uid for the owner of the OAuth token.

  "error_code": "INVALID_USER_ID",
  "available_user_id": 1,
  "error_message": "Invalid user id. {user_id} should be used."
Parameter Description
error_code Error code.
available_user_id ID of the user who allowed access.
error_message Error message.

404 Not Found

The site isn't in the list of the user's sites, or rights to the site haven't been verified.

  "error_code": "HOST_NOT_FOUND",
  "host_id": "",
  "error_message": "explicit error message"
Parameter Description
error_code Error code.
host_id The ID of the requested site.
error_message Error message.