chartbeat

 

snapshots

Page history last edited by billy chasen 9 mos ago

About this call


 

A snapshot of what the real-time "pages" API call was at a given time.  This is used to show old real-time data.

 

Format


 

http://chartbeat.com/dashapi/snapshots/?api=pages&host=[host]&timestamp=[timestamp]&apikey=[apikey] 
  • api - Required.  Only option is pages for now.

  • host - Required.  The domain name to get the snapshot for.

  • timestamp - Required.  Unix timestamp.  The time of the snapshot.  Snapshots are taken every five minutes.

  • apikey - Required.  An api key generated here that gives access to this call.

  • jsonp - Optional.  Give the name of a function to wrap the return data in. Learn more here

 

Example


 

http://chartbeat.com/dashapi/snapshots/?api=pages&host=chartbeat.com&timestamp=1233739200&apikey=abc123
 

Example return:

 

Returns the same variables as the "pages" call.  Please refer to it here.  Also returns two extra variables.

 

{ "pages_timestamp": "02/04/2009 04:10 pm", "historical": true }

 

  • pages_timestamp - The date and time of the snapshot.

  • historical - returns true.  Used to distinguish it as historical data. 

Comments (0)

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