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

Request url Methods Parameters GET fields[]

Properties of an impression

An impression contains the following information:

  • ID (int, system field)
  • timestamp (datetime, system field)
  • ip (ip-address)
  • user-agent (string, the user-agent)
  • referer
  • 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 impressions in an account.

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

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":"2004-12-08 11:19:30",

Searching for impressions 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:

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

Further reading