语言

IWebmasterApi.GetDeepLink(String, String) Method

Definition

Caution

use GetDeepLinkBlocks

Get deep links for specific algo url

public:
 System::Collections::Generic::List<Microsoft::Bing::Webmaster::Api::Interfaces::DeepLink ^> ^ GetDeepLink(System::String ^ siteUrl, System::String ^ url);
[System.Obsolete("use GetDeepLinkBlocks", true)]
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebGet(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest)]
public System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.DeepLink> GetDeepLink(string siteUrl, string url);
abstract member GetDeepLink : string * string -> System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.DeepLink>
Public Function GetDeepLink (siteUrl As String, url As String) As List(Of DeepLink)

Parameters

siteUrl
String
url
String

Returns

Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetDeepLink?siteUrl=http://example.com&url=http://example.com%2fhome.php&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: 277
Content-Type: application/xml; charset=utf-8

<ArrayOfDeepLink xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<DeepLink>
<Position>0</Position>
<Title>Foo</Title>
<Url>http://example.com</Url>
<Weight>Normal</Weight>
</DeepLink>
</ArrayOfDeepLink>

JSON request sample

GET /webmaster/api.svc/json/GetDeepLink?siteUrl=http://example.com&url=%22http%3a%5c%2f%5c%2fexample.com%5c%2fhome.php%22&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: 126
Content-Type: application/json; charset=utf-8


{
"d":[
{
"__type":"DeepLink:#Microsoft.Bing.Webmaster.Api",
"Position":0,
"Title":"Foo",
"Url":"http://example.com",
"Weight":2
}]
}

Remarks

Applies to