IWebmasterApi.GetCrawlSettings(String) Method

Definition

Get crawl settings

public:
 Microsoft::Bing::Webmaster::Api::Interfaces::CrawlSettings ^ GetCrawlSettings(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 Microsoft.Bing.Webmaster.Api.Interfaces.CrawlSettings GetCrawlSettings (string siteUrl);
abstract member GetCrawlSettings : string -> Microsoft.Bing.Webmaster.Api.Interfaces.CrawlSettings
Public Function GetCrawlSettings (siteUrl As String) As CrawlSettings

Parameters

siteUrl
String

Returns

Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetCrawlSettings?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: 246
Content-Type: application/xml; charset=utf-8

<CrawlSettings xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<AjaxEnabled>true</AjaxEnabled>
<CrawlRate>BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUF</CrawlRate>
</CrawlSettings>

JSON request sample

GET /webmaster/api.svc/json/GetCrawlSettings?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: 143 Content-Type: application/json; charset=utf-8

{ "d": { "__type":"CrawlSettings:#Microsoft.Bing.Webmaster.Api", "AjaxEnabled":true, "CrawlRate":[5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5] } }

Remarks

Applies to