IWebmasterApi.GetUrlLinks(String, String, Int16) Method

Definition

Get inbound links for specific site url

public:
 Microsoft::Bing::Webmaster::Api::Interfaces::LinkDetails ^ GetUrlLinks(System::String ^ siteUrl, System::String ^ link, short page);
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebGet(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest)]
public Microsoft.Bing.Webmaster.Api.Interfaces.LinkDetails GetUrlLinks (string siteUrl, string link, short page);
abstract member GetUrlLinks : string * string * int16 -> Microsoft.Bing.Webmaster.Api.Interfaces.LinkDetails
Public Function GetUrlLinks (siteUrl As String, link As String, page As Short) As LinkDetails

Parameters

siteUrl
String
link
String
page
Int16

Returns

LinkDetails
Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetUrlLinks?siteUrl=http://example.com&link=http://example.com%2furl1.html&page=0&apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com

XML response sample

HTTP/1.1 200 OK
Content-Length: 295
Content-Type: application/xml; charset=utf-8

<LinkDetails xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Details>
<LinkDetail>
<AnchorText>link</AnchorText>
<Url>http://example.com/page1.html</Url>
</LinkDetail>
</Details>
<TotalPages>3</TotalPages>
</LinkDetails>

JSON request sample

GET /webmaster/api.svc/json/GetUrlLinks?siteUrl=http://example.com&link=%22http%3a%5c%2f%5c%2fexample.com%5c%2furl1.html%22&page=0&apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com

JSON response sample

HTTP/1.1 200 OK
Content-Length: 202
Content-Type: application/json; charset=utf-8


{
"d":
{
"__type":"LinkDetails:#Microsoft.Bing.Webmaster.Api",
"Details":[
{
"__type":"LinkDetail:#Microsoft.Bing.Webmaster.Api",
"AnchorText":"link",
"Url":"http://example.com/page1.html"
}],
"TotalPages":3
}
}

Remarks

Applies to