Getting the history of changes to the number of external links to the site

Description

Gets the history of how the number of external links to the site changed.

Request format

Send a GET request to the operation address for the links/external/history resource for the user's site:

GET https://api.webmaster.yandex.net/v3/user/{user-id}/hosts/{host-id}/links/external/history/?indicator={indicator}

Path parameters

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

Query arguments

Name Required Type Default value Description
indicator Yes APIExternalLinksIndicator Indicates the number of external links.

Response format

If successful, the server returns 200 OK and the history of changes to the number of external links to the site:

Samples

{
  "indicators": {
    "LINKS_TOTAL_COUNT": [
      {
        "date": "2016-01-01T00:00:00,000+0300",
        "value": 1
      }
    ]
  }
}
Name Required Type Description
LINKS_TOTAL_COUNT Yes APIExternalLinksIndicator Indicates the number of external links.
Date Yes yyyy-MM-ddTHH:mm:ss,sssZ The date when the link was detected.
value Yes string Indicator value.

Errors

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_VERIFIED",
  "host_id": "http:ya.ru:80",
  "error_message": "explicit error message"
}
Parameter Description
error_code Error code.
host_id The ID of the requested site.
error_message Error message.