IWebmasterApi.GetChildrenUrlTrafficInfo
Namespace: Microsoft.Bing.Webmaster.Api
IWebmasterApi.AddBlockedUrl Method
Get index traffic details for directory
Syntax
List<UrlTrafficInfo> GetChildrenUrlTrafficInfo( string siteUrl, string url, ushort page )
Parameters
siteUrl
Type: System.String
Site url
url
Type: System.String
Directory (parent) url
page
Type: System.UInt16
Page number
Return Value
List of traffic information objects
Examples
XML request sample
GET /webmaster/api.svc/pox/GetChildrenUrlTrafficInfo?siteUrl=http://example.com&url=example.com&page=0&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: 302 Content-Type: application/xml; charset=utf-8 <ArrayOfUrlTrafficInfo xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <UrlTrafficInfo> <Clicks>10</Clicks> <Impressions>100</Impressions> <IsPage>false</IsPage> <Url>example.com</Url> </UrlTrafficInfo> </ArrayOfUrlTrafficInfo>
JSON request sample
GET /webmaster/api.svc/json/GetChildrenUrlTrafficInfo?siteUrl=http://example.com&url=%22example.com%22&page=0&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: 130
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: