IWebmasterApi.GetUrlLinks
Namespace: Microsoft.Bing.Webmaster.Api
IWebmasterApi.GetUrlLinks Method
Get inbound links for specific site url
Syntax
LinkDetails GetUrlLinks( string siteUrl, string link, short page )
Parameters
siteUrl
Type: System.String
Site url
link
Type: System.String
Site's page url which has inbound links
page
Type: System.Int16
Page
Return Value
LinkDetails object which contains one page of inbound links.
Examples
XML request sample
GET /webmaster/api.svc/pox/GetUrlLinks?siteUrl=http://example.com&link=http://example.com%2furl1.html&page=0&apikey=EEDECC1EA4AE341CC57365E075EBC8B6 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=EEDECC1EA4AE341CC57365E075EBC8B6 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
}
}
See Also
Show: