Account API
The Account API takes your username and password and returns to you a list of all sites in your account, including hostname, nickname, site ID, sitekey,
admin sitekey, timezone, and a few basic stats (visitors online and visitors 'today').
This is useful for automated processes you have setup to, for example, extract data from the
Analytics API. If your processes refresh their data every day by grabbing the output from this API then they will always be up to date when you add new sites, delete sites, edit existing ones, reset site keys, etc.
Default output is XML but you can request json or serialized PHP instead.
Send requests to
https://api.clicky.com/api/account/sites with the parameters listed below. You can use HTTPS instead of HTTP if desired.
username
Required. Your username OR email address registered with Clicky.
password
Required. Your account's password.
Important note!
This API will not be accessible if you have enabled
Sign in with Google for your account, as that feature deactivates your password.
output
Optional. Defaults to 'xml' if unspecified. Acceptable values are 'xml', 'json' or 'php'. 'php' will return as a serialized array which you just need to pass through
unserlialize() to convert into an array with your PHP script.
Example API calls
https://api.clicky.com/api/account/sites?username=bob&password=jones -- defaults to XML
https://api.clicky.com/api/account/sites?username=bob&password=jones&output=xml
https://api.clicky.com/api/account/sites?username=bob&password=jones&output=php
https://api.clicky.com/api/account/sites?username=bob&password=jones&output=json