REST API v4: GET impressions (Marketing Suite)

Each emailing is tracked, which allows Copernica to provide you with emailing statistics. Impressions are one of these statistics. You can retrieve all impressions for an account by sending an HTTP GET call to the following URL:


The parameters for this method can be set to retrieve the statistics from a certain period. The following optional parameters are available:

  • begintime: The timestamp after which the impressions must have occurred (YYYY-MM-DD HH:MM:SS format).
  • endtime: The timestamp before which the impressions must have occurred (YYYY-MM-DD HH:MM:SS format).

Returned fields

The method returns a JSON object with several impressions. For each impression the following information is available:

  • ID: The ID of the impression.
  • mailing: The ID of the mailing.
  • timestamp: The timestamp of the impression.
  • ip: The IP where the impression occurred from.
  • useragent: User agent string of the machine the impression occurred from.
  • device: The type of device the impression came from ('desktop','tablet','mobile','unknown').
  • destination: The ID of the destination that caused an impression.

JSON example

A single impression might look something like this:

   "timestamp":"2014-10-09 13:41:46",
   "useragent":"Mozilla\/5.0 (Ubuntu; X11; Linux x86_64; rv:8.0) Gecko\/20100101 Firefox\/8.0",

PHP example

This script demonstrates how to use this API method:

// dependencies

// change this into your access token
$api = new CopernicaRestAPI("your-access-token", 4);

// execute the call

This example requires the REST API class.

More information