IWebmasterApi.GetFeedDetails(String, String) Method

Definition

Get feed details for sitemap indices

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

Parameters

siteUrl
String
feedUrl
String

Returns

List<Feed>
Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetFeedDetails?siteUrl=http://example.com&feedUrl=http://example.com%2fsitemap.xml&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: 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=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: 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
}]
}

Remarks

Applies to