IWebmasterApi.GetQueryPageDetailStats(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get detailed statistics for specific query and page
public:
System::Collections::Generic::List<Microsoft::Bing::Webmaster::Api::Interfaces::DetailedQueryStats ^> ^ GetQueryPageDetailStats(System::String ^ siteUrl, System::String ^ query, 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.DetailedQueryStats> GetQueryPageDetailStats (string siteUrl, string query, string page);
abstract member GetQueryPageDetailStats : string * string * string -> System.Collections.Generic.List<Microsoft.Bing.Webmaster.Api.Interfaces.DetailedQueryStats>
Public Function GetQueryPageDetailStats (siteUrl As String, query As String, page As String) As List(Of DetailedQueryStats)
Parameters
- siteUrl
- String
- query
- String
- page
- String
Returns
- Attributes
Examples
XML request sample
GET /webmaster/api.svc/pox/GetQueryPageDetailStats?siteUrl=http://example.com&query=query1&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: 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=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: 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
}]
}
Remarks
The data will be updated every week.