Export (0) Print
Expand All
Expand Minimize

IWebmasterApi.GetFeedDetails

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.GetFeedDetails Method

Get feed details for sitemap indices

Syntax

List<Feed> GetFeedDetails(
string siteUrl,
string feedUrl
)

Parameters

siteUrl
Type: System.String
Site url

feedUrl
Type: System.String
Sitemap index url

Return Value

List of feeds contained by sitemap index.

Examples

XML request sample

GET /webmaster/api.svc/pox/GetFeedDetails?siteUrl=http://example.com&feedUrl=http://example.com%2fsitemap.xml&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: 438
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:02.0049635-07:00</LastCrawled>
<Status>Success</Status>
<Submitted>2011-09-16T16:02:02.0049635-07:00</Submitted>
<Type>Sitemap</Type>
<Url>http://example.com</Url>
<UrlCount>1023</UrlCount>
</Feed>
</ArrayOfFeed>

JSON request sample

GET /webmaster/api.svc/json/GetFeedDetails?siteUrl=http://example.com&feedUrl=%22http%3a%5c%2f%5c%2fexample.com%5c%2fsitemap.xml%22&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: 259
Content-Type: application/json; charset=utf-8


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

See Also

Show:
© 2015 Microsoft