IWebmasterApi.GetPageQueryStats(String, String) Method

Definition

Get detailed traffic statistics for specific site's page

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

Parameters

siteUrl
String
page
String

Returns

List<QueryStats>
Attributes

Examples

XML request sample

GET /webmaster/api.svc/pox/GetPageQueryStats?siteUrl=http://example.com&page=http://example.com%2furl1.html&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: 388
Content-Type: application/xml; charset=utf-8

<ArrayOfQueryStats xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<QueryStats>
<AvgClickPosition>18</AvgClickPosition>
<AvgImpressionPosition>17</AvgImpressionPosition>
<Clicks>15</Clicks>
<Date>2011-09-16T00:00:00-07:00</Date>
<Impressions>100</Impressions>
<Query>query</Query>
</QueryStats>
</ArrayOfQueryStats>

JSON request sample

GET /webmaster/api.svc/json/GetPageQueryStats?siteUrl=http://example.com&page=%22http%3a%5c%2f%5c%2fexample.com%5c%2furl1.html%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: 194
Content-Type: application/json; charset=utf-8


{
"d":[
{
"__type":"QueryStats:#Microsoft.Bing.Webmaster.Api",
"AvgClickPosition":18,
"AvgImpressionPosition":17,
"Clicks":15,
"Date":"/Date(1316156400000-0700)/",
"Impressions":100,
"Query":"query"
}]
}

Remarks

The data will be updated every week.

Applies to