chartbeat

 

twitterstats

Page history last edited by billy chasen 9 mos ago

About this call


 

This call returns all twitter stats for a given domain

 

Format


 

http://chartbeat.com/dashapi/twitterstats/?host=[host]&since=[timestamp]&apikey=[apikey]

 

  • host - Required.  The domain name to get twitterstats data about.
  • since - Required.  Unix timestamp.  Returns all uptime data since this time.
  • 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/twitterstats/?host=chartbeat.com&since=1231194225&apikey=abc123

 

Example return:

 

{
"searchterm1": {
"2009-01-06": {
"counts": { "23:25": 13, "19:58": 12, "19:59": 16 }
},
"2009-01-07": {
"counts": { "5:15": 1, "11:52": 8 }
}
},
"searchterm2": {

"2009-01-06": {


"counts": { "8:25": 8, "20:51": 22, "5:49": 3 }
},
"2009-01-07": {
"counts": { "7:11": 6, "8:26": 18 }
}
}
}
 

Return variables


 

Returns an associative array, keyed on the search term and day.

 

This call returns data that it constantly receives from twitter.  The example has been truncated for easy reading.

 

  • counts - An array of times and the number of tweets that occurred at that time.

 

Comments (0)

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