IWebmasterApi.GetCrawlSettings
Namespace: Microsoft.Bing.Webmaster.Api
IWebmasterApi.GetCrawlSettings Method
Get crawl settings
Syntax
CrawlSettings GetCrawlSettings(
string siteUrl
)
Parameters
Return Value
Crawl settings
Examples
XML request sample
GET /webmaster/api.svc/pox/GetCrawlSettings?siteUrl=http://example.com&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: 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=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: 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]
}
}
See Also
Show: