Returns a page of clicks.
1 |
GET https://api.maileon.com/1.0/reports/clicks |
1 |
GET https://api.maileon.com/1.0/reports/clicks/count |
Attributes
Parameter | Default | Description |
from_date | If provided, only the clicks after or equal (including) the given date will be returned. The value of from_date must be a numeric value representing a point in time milliseconds after January 1, 1970 00:00:00 | |
to_date | If provided, only the clicks before (excluding) the given date will be returned. The value of to_date must be a numeric value representing a point in time milliseconds afterJanuary 1, 1970 00:00:00 | |
mailing_id | Multivalued parameter to filter the clicks by mailings. Each value must correspond to a mailing id. | |
ids | Multivalued parameter to filter the results by contacts. Each value must correspond to a contact id. | |
emails | Multivalued parameter to filter the results by email addresses. | |
eids | Multivalued parameter to filter the results by external ids. Each value must correspond to a contacts external id | |
format | Filters the clicks by format. Possible values are: html / text. | |
link_id | Multivalued parameter to filter the clicks by links. Each value must correspond to a link id. | |
link_url | Filters the clicks by link url. | |
link_tag | Multivalued parameter to filter the clicks by tags associated to the links. | |
social_network | Multivalued parameter to filter the clicks by the social networks where they occurred. | |
device_type | Multivalued parameter to filter the clicks by device type. Possible values for device_type are: UNKNOWN / COMPUTER / TABLET / MOBILE | |
embed_email_client_infos | false | If the set to true, available email client details will be appended to each click. |
embed_link_tags | false | If the set to true, the tags for the clicked link will be contained in the response. |
exclude_anonymous_clicks | true | Supported values: true / false. If set to true, the clicks that cannot be mapped to contacts because of permission types or because unsubscriptions are omitted in the results. |
standard_field | Multivalued parameter to query the value of a standard contact field. | |
custom_field | Multivalued parameter to query the value of a custom contact field. | |
embed_transaction_id | false | If the set to true, the attribut “transaction_id” of a transaction will be returned that caused this click, if available. If this setting is set to true, it will add a ‘transaction_id’ element to the result. |
embed_contact_hash | false | If the set to true, anonymized contacts will be annotated with a random number that is the same for a contact within each sendout. With this flag, it is possible to calculate unique clicks from all clicks, even if contacts are unsubscribed and therefore anonymized. If in two clicks of the same sendout the contact hash is the same, then the same contact clicked twice. In different mails the same contact hash might occur on a click but will most probably not belong to the same (anonymized) contact. If this setting is set to true, it will add a ‘contact_hash’ element to the result. |
page_index | 1 | The index of the result page. The index must be greater or equal to 1. |
page_size | 100 | The maximum count of items in the result page. If provided, the value of page_size must be in the range 1 to 1000. |
Example
1 2 3 4 |
GET https://api.maileon.com/1.0/reports/clicks?page_index=3&page_size=1000&exclude_anonymous_clicks=false&embed_email_client_infos=true Authorization: Basic XXXXXXXXXXXXXXX Accept: application/vnd.maileon.api+xml; charset=utf-8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
Status: 200 OK Content-Type: application/vnd.maileon.api+xml Link: ... X-Pages: ... X-Items: ... <!--?xml version="1.0" encoding="UTF-8"--> <clicks> <click> <contact anonymous="true"></contact> <timestamp>2013-01-14 19:00:31</timestamp> <mailing_id>3385</mailing_id> <link_id>121252</link_id> <link_url>http://www.xqueue.com</link_url> <format>html</format> <device_type>MOBILE</device_type> <link_tags> <link_tag>tag2</link_tag> <link_tag>xqueue</link_tag> </link_tags> <client> <os_name>ANDROID2</os_name> <os_group>ANDROID</os_group> <browser>MOBILE_SAFARI</browser> <browser_group>SAFARI</browser_group> <browser_type>MOBILE_BROWSER</browser_type> <user_agent nil="true"></user_agent> <rendering_engine>WEBKIT</rendering_engine> </client> </click> ... </clicks> |