Export (0) Print
Expand All
Expand Minimize

IWebmasterApi.GetQueryPageDetailStats

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.GetQueryPageDetailStats Method

Get detailed statistics for specific query and page

Syntax

List<DetailedQueryStats> GetQueryPageDetailStats(
string siteUrl,
string query,
string page
)

Parameters

siteUrl
Type: System.String
Site url

query
Type: System.String
Query

page
Type: System.String
Page url

Return Value

Position, impressions and clicks count for the keyword and page.

Remarks

The data will be updated every week.

Examples

XML request sample

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

<ArrayOfDetailedQueryStats xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<DetailedQueryStats>
<Clicks>15</Clicks>
<Date>2011-09-16T00:00:00-07:00</Date>
<Impressions>100</Impressions>
<Position>5</Position>
</DetailedQueryStats>
</ArrayOfDetailedQueryStats>

JSON request sample

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


{
"d":[
{
"__type":"DetailedQueryStats:#Microsoft.Bing.Webmaster.Api",
"Clicks":15,
"Date":"\/Date(1316156400000-0700)\/",
"Impressions":100,
"Position":5
}]
}

See Also

Show:
© 2014 Microsoft