IWebmasterApi.GetFeeds

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.GetFeeds Method

Return all top-level feeds for the site

Syntax

List<Feed> GetFeeds(
string siteUrl
)

Parameters

siteUrl
Type: System.String
Site url

Return Value

List of feeds. The list will contain only top-level feeds: individual sitemaps and sitemap indices.

XML request sample

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

<ArrayOfFeed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Feed>
<Compressed>false</Compressed>
<FileSize>1024</FileSize>
<LastCrawled>2011-09-11T16:02:01.9729603-07:00</LastCrawled>
<Status>Success</Status>
<Submitted>2011-09-16T16:02:01.9739604-07:00</Submitted>
<Type>Sitemap</Type>
<Url>http://example.com/sitemap.xml</Url>
<UrlCount>1023</UrlCount>
</Feed>
</ArrayOfFeed>

JSON request sample

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


{
"d":[
{
"__type":"Feed:#Microsoft.Bing.Webmaster.Api",
"Compressed":false,
"FileSize":1024,
"LastCrawled":"\/Date(1315781995040-0700)\/",
"Status":"Success",
"Submitted":"\/Date(1316213995040-0700)\/",
"Type":"Sitemap",
"Url":"http:\/\/example.com\/sitemap.xml",
"UrlCount":1023
}]
}

See Also

Show: