chartbeat

 

toppages

Page history last edited by billy chasen 8 mos ago

About this call


 

Toppages returns a list of pages, ordered by which ones have most visitors right now.  This call returns real-time data.

 

Format


 

http://api.chartbeat.com/toppages/?host=[host]&limit=[limit]&apikey=[apikey]

 

  • host - Required.  The domain name to get top pages for.
  • apikey - Required.  An api key generated here that gives access to this call.
  • limit - Optional.  Limit the amount of pages to this number. (Default: 10)
  • jsonp - Optional.  Give the name of a function to wrap the return data in. Learn more here

 

Example


 

http://api.chartbeat.com/toppages/?host=chartbeat.com&limit=10&apikey=abc123

 

Example return:

 

[
{
"i": "My Webpage title",
"path": "/location/of/page.html",
"visitors": 14
},
{
"i": "About Us",
"path": "/about",
"visitors": 7
},
{
"i": "Contact Us",
"path": "/contact",
"visitors": 3
}
]
 

Return variables


 

For a list of what the short variable letters stand for, please refer to this list.

 

  • i - The page title.
  • path - The URL of the page on host.
  • visitors - The number of visitors currently on the page.

 

Comments (0)

You don't have permission to comment on this page.