Clicky API v4 released
In addition to the new wordpress plugin, today we're also releasing version 4 of our analytics API. We've got some really great new features outlined below. Full documentation is here.
The two big features for us are segmentation, and being able to specify a individual items. With these, and everything else, we feel the API is much stronger than v3.
We're releasing one today as a sneak peak. This is something that those of you with lots of sites may find quite useful. It's called "sites". (We're really creative). Pass it your username and password, and it will return to you all of the sites in your account, including their domain name, nickname, site_id, sitekey, sitekey_admin, and database server.
For example, here's a pretend account I just registered.
http://api.getclicky.com/api/account/sites?username=awesomeaccount&password=awesomepassword
And with PHP output:
http://api.getclicky.com/api/account/sites?username=awesomeaccount&password=awesomepassword&output=php
0 comments | Oct 30 2009 3:18am
- Segmentation data!
Example: Summary data + top countries and web browsers for visitors from twitter.com over the last 7 days
- Data for individual items (e.g. a specific country or search term). Note, this is different than the existing "filter" parameter, which is a wildcard (i.e., slow) match. This is an exact match string and hence very quick.
Example: Daily hits from google.com
- Hourly data for supported data types (visitors and actions)
Example: hourly data for both visitors and actions over the last 7 days
- Option to specify only the fields you want returned for type=visitors-list. This is a big one because we have a number of users who export their entire visitors-list every day. They may only want a few fields, but had to get all of them no matter what. If this applies to you, this new option will vastly speed up the response time for visitors-list queries.
Example: Only return IP, session ID, landing page, location, and browser
- Proper error responses. It's hard to believe that up until now, a bad request would just return completely empty. How helpful of us! Now, if there are any problems with your request, an error will be output.
Example: Forgetting the required "type" parameter. XML PHP JSON
- The XML parent element has been changed from "items" to the more standard "response". This parent element also has a new attribute, "status", whose value will either be "ok" or "fail". If it is "fail", there is an error with your request. The XML document will then have just one element, "error", whose value will be the error message. For PHP and JSON, which both return arrays, the array will only have one item, whose key will be "error" and whose value will be the error message.
- We've added a ton of inline examples throughout the documentation, so instead of perhaps being confused about what a certain feature does, you can just click a link and instantly see an example.
The two big features for us are segmentation, and being able to specify a individual items. With these, and everything else, we feel the API is much stronger than v3.
We like APIs. They're neat.
We're going to be adding some more APIs in the near future that let you get information about your account, as well as the ability to write data to Clicky, instead of just reading from it. For example, registering new sites, updating site preferences, creating goals, etc.We're releasing one today as a sneak peak. This is something that those of you with lots of sites may find quite useful. It's called "sites". (We're really creative). Pass it your username and password, and it will return to you all of the sites in your account, including their domain name, nickname, site_id, sitekey, sitekey_admin, and database server.
For example, here's a pretend account I just registered.
http://api.getclicky.com/api/account/sites?username=awesomeaccount&password=awesomepassword
And with PHP output:
http://api.getclicky.com/api/account/sites?username=awesomeaccount&password=awesomepassword&output=php
Happy Halloween weekend!
Don't drink too much! We'll see you in November.
0 comments | Oct 30 2009 3:18am

Recent Comments
The new EU KEBORD law should be coming in to effect soon, controlling and prohibiting ... Simon Nicklin, May 23 2012 hi iam boy and eager to become friends , with you if you want my love saeed, May 23 2012 Very good on my Galaxy tab! doctormauri73, Apr 01 2012 too bad... force close on checkrom evolution on galaxy s2 pierement, Mar 31 2012 Finally!! Thank you! Daymon, Mar 28 2012 Hi Guys. I haven't been able to access your website all day, and just wondered what ... Alison, Mar 28 2012 My biggest site is on 30 and would rather it was done on a weekday! Weekend is the ... Lee, Mar 27 2012 It's not going to affect tracking in any way, your stats will just unavailable for ... Sean (Clicky), Mar 27 2012 I installed the apk multiple times but I can't see it in the widget section on Android ... Thomas Sileo, Mar 27 2012 Can you give any indication on when my database server will be down ..... 30 minutes ... When?, Mar 27 2012