IWebmasterApi.GetUrlTrafficInfo
Collapse the table of content
Expand the table of content

IWebmasterApi.GetUrlTrafficInfo

Namespace: Microsoft.Bing.Webmaster.Api

IWebmasterApi.GetUrlTrafficInfo Method

Get index traffic details for single page

Syntax

UrlTrafficInfo GetUrlTrafficInfo(
string siteUrl,
string url
) 

Parameters

siteUrl
Type: System.String
Site Url

url
Type: System.String
Url for which information will be returned.

Return Value

Remarks

"domain:" prefix can be used to get information for domain. For example: domain:bing.com

Examples

XML request sample

GET /webmaster/api.svc/pox/GetUrlTrafficInfo?siteUrl=http://example.com&url=example.com&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: 255
Content-Type: application/xml; charset=utf-8

<UrlTrafficInfo xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Clicks>10</Clicks>
<Impressions>100</Impressions>
<IsPage>false</IsPage>
<Url>example.com</Url>
</UrlTrafficInfo>

JSON request sample

GET /webmaster/api.svc/json/GetUrlTrafficInfo?siteUrl=http://example.com&url=%22example.com%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: 128
Content-Type: application/json; charset=utf-8


{
"d":
{
"__type":"UrlTrafficInfo:#Microsoft.Bing.Webmaster.Api",
"Clicks":10,
"Impressions":100,
"IsPage":false,
"Url":"example.com"
}
}

See Also

Show:
© 2016 Microsoft