| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

toppages

Page history last edited by Nathan Potter 11 years, 5 months 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/live/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/live/toppages/?host=chartbeat.com&limit=10&apikey=abc123
 

 

Example return:

 

 [
{
"i": "My Webpage title",
"path": "domain.com/location/of/page.html",
"visitors": 14
},
{
"i": "About Us",
"path": "domain.com/about",
"visitors": 7
},
{
"i": "Contact Us",
"path": "domain.com/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. Hosts added prior to 3/30/12 may not contain the domain in the path, contact support@chartbeat.com to have it added.
  • visitors - The number of visitors currently on the page.

 

Comments (0)

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