IWebmasterApi.GetCrawlIssues(String) Method

Definition

Get list of crawl issues for specific site

public:
 System::Collections::Generic::List<Microsoft::Bing::Webmaster::Api::Interfaces::UrlWithCrawlIssues ^> ^ GetCrawlIssues(System::String ^ siteUrl);
[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.UrlWithCrawlIssues> GetCrawlIssues (string siteUrl);
abstract member GetCrawlIssues : string -> System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.UrlWithCrawlIssues>
Public Function GetCrawlIssues (siteUrl As String) As List(Of UrlWithCrawlIssues)

Parameters

siteUrl
String

Returns

Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetCrawlIssues?siteUrl=http://example.com&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: 319
Content-Type: application/xml; charset=utf-8

<ArrayOfUrlWithCrawlIssues xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<UrlWithCrawlIssues>
<HttpCode>200</HttpCode>
<Issues>ContainsMalware</Issues>
<Url>http://example.com/url1.htm</Url>
<InLinks>10</InLinks>
</UrlWithCrawlIssues>
</ArrayOfUrlWithCrawlIssues>

JSON request sample

GET /webmaster/api.svc/json/GetCrawlIssues?siteUrl=http://example.com&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: 135
Content-Type: application/json; charset=utf-8


{
"d":[
{
"__type":"UrlWithCrawlIssues:#Microsoft.Bing.Webmaster.Api",
"HttpCode":200,
"Issues":32,
"Url":"http://example.com/url1.htm",
"InLinks":10
}]
}

Remarks

It may take a few days before fixed issue will disappear from this list.

Applies to