All clicks in an account can be retrieved with the /clicks method.

Request url Methods Parameters GET fields[]

Properties of a click

A click contains the following information:

  • ID (int, system field, cannot be edited)
  • link (url, the link that was clicked)
  • timestamp (datetime, system field)
  • ip (ip-address, cannot be edited)
  • user-agent (string, the user-agent)
  • referer (cannot be edited)
  • emailing (int, id of the emailing)
  • destination (int, id of the destination)
  • profile (int, id of the profile)
  • subprofile (int, id of the subprofile)

GET Request

Request information about the clicks in an account.

The fields[] parameter can be included in the request URL to constrain the number of returned clicks.

Example output

Upon a successful request, you will receive a message similar to the example below.

HTTP/1.1 200 OK
Date: Mon, 10 Feb 2014 12:25:37 GMT
Server: Apache/2.2.22(Ubuntu)
X-Powered-By: PHP/5.3.10 - 1ubuntu3.9
Content-Length: 2059
Content-Type: application/json

            "timestamp":"2014-01-06 16:47:31",
            "user-agent":"Firefox 26.0,
             Linux (Ubuntu)",

Searching for clicks with the GET request

By providing the fields[] GET parameter the results can be filtered. The field on which can be filtered is timestamp. The datetime format we use is YYYY-MM-DD HH:MM:SS and can look like 2014-08-01 10:40:31. With these GET parameters the url of a call could look like this:

/clicks?fields[]=timestamp==2014-01-01 10:40:31&access_token=...

Further reading