Getting information about external links to the site
Returns examples of external links to site pages.
Request format
GET https://api.webmaster.yandex.net/v4/user/{user-id}/hosts/{host-id}/links/external/samples
? [offset=<int32>]
& [limit=<int32>]
|
Type: |
|
Type: |
|
Offset in the list. The minimum value is 0. Default value: 0. |
|
Page size (1-100). Default value: 10. |
Response format
Examples
JSONXML
{ "count": 1, "links": [ { "source_url": "https://other-example.com/page/", "destination_url": "https://example.com/page1/", "discovery_date": "2019-01-01", "source_last_access_date": "2019-01-01", }, ... ] }
<Data> <count>1</count> <link> <source_url>https://other-example.com/page/</source_url> <destination_url>https://example.com/page1/</destination_url> <discovery_date>2019-01-01</discovery_date> <source_last_access_date>2019-01-01</source_last_access_date> </link> ... </Data>
Name |
Required |
Type |
Description |
|
Yes |
|
The number of example links available. |
|
Yes |
|
The URL of the page that contains the link to the site. |
|
Yes |
|
The target page URL (where the link points to). |
|
Yes |
|
The date when the link was detected. |
|
Yes |
|
The date when the robot last visited the target page. |
Response codes
To view the response structure in detail, click the reason.
Code |
Reason |
Description |
200 |
OK |
|
403 |
The ID of the user who issued the token differs from the one specified in the request. In the examples below, JSON
XML
|
|
404 |
Site management rights are not verified. JSON
XML
|
Related information
Type: int64
. User ID. Required when calling all Yandex.Webmaster API resources. To get it, use the GET /v4/user method.
Type: host id (string)
. The site ID. To get it, use the GET /v4/user/{user-id}/hosts method.
Offset in the list. The minimum value is 0. Default value: 0.
Page size (1-100). Default value: 10.
Required
Yes
Type
string
Description
The URL of the page that contains the link to the site.
Required
Yes
Type
url
Description
The target page URL (where the link points to).
Required
Yes
Type
Date
Description
The date when the link was detected.
Required
Yes
Type
Date
Description
The date when the robot last visited the target page.
Description
Error code.
Description
Error message.
Description
ID of the user who allowed access.
Description
ID of the requested site.
Required
Yes
Type
int64
Description
The number of example links available.