Export (0) Print
Expand All
Expand Minimize

IWebmasterApi.GetQueryPageStats

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.GetQueryPageStats Method

Get detailed traffic statistics for specific query

Syntax

List<QueryStats> GetQueryPageStats(
string siteUrl,
string query
)

Parameters

siteUrl
Type: System.String
Site url

query
Type: System.String
Query

Return Value

List of pages shown on the SERP for the specified keyword.

Remarks

The data will be updated every week.

Examples

XML request sample

GET /webmaster/api.svc/pox/GetQueryPageStats?siteUrl=http://example.com&query=query1&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: 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/GetQueryPageStats?siteUrl=http://example.com&query=%22query1%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: 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"
}]
}

See Also

Show:
© 2014 Microsoft