IWebmasterApi.GetFeeds(String) Method

Definition

Return all top-level feeds for the site

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

Parameters

siteUrl
String

Returns

Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetFeeds?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: 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=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: 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
}]
}

Remarks

Applies to