Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

REST API: GET statistics (Publisher destination)

You can retrieve the statistics for a Publisher destination by sending an HTTP GET request to the following URL:$id/statistics?access_token=xxxx

Where the $id should be replaced with the ID of the destination.

Return value


The JSON object contains the following fields:

  • ID: ID of the destination
  • abuses: An array with a 'total' field for the abuses that this mailing received.
  • clicks: An array with a 'total' field for the clicks that this mailing received.
  • deliveries: An array with a 'total' field for the deliveries to this destination.
  • errors: An array with a 'total' field for the errors that this mailing received.
  • impressions: An array with a 'total' field for the impressions that this mailing received.
  • unsubscribes: An array with a 'total' field for the unsubscribes that this mailing received.


The JSON output will look something like this:


PHP example

This script demonstrates how to use this API method:

// dependencies

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

// execute the call

This example requires the REST API class.

More information