API Guide

Get Analytics Campaign

This API returns a list of campaign statistics matching your Analytics campaign ID. Data is returned in the following formats: XML, JSON, CSV and Serialized.

Required headers: X-API-KEY
Optional headers: ACCEPT (json, xml, csv, serialized)
Method: GET

Endpoint URL:

https://api.250ok.com/api/1.0/emailinformant/campaign

Sample Output:

{
    "id": "16",
    "created": "2015-08-01 10:00:58",
    "firsttracked": "2015-08-01 10:00:37",
    "subject": "Email Subject 1",
    "listsize": "0",
    "tags": "<style>...</style>",
    "engagement": {
        "platforms": {},
        "devices": {},
        "clients": {},
        "overview": {}
    },
    "clients": {},
    "engagementdetail": {},
    "location": {},
    "timezone": {},
    "isp": []
}
        

Parameters

Parameter Description Acceptable Values Required
id Retrieve statistics by Analytics campaign ID. Integer Y

Error Responses

Description Code Cause
No results found. 404 We couldn't find any results matching your criteria.
Analytics ID must be specified. 404 The unique identifier of the application test is missing or invalid.
Invalid Analytics ID. 404 The Analytics ID must be numeric.
NULL 401 Your API key does not have sufficient permission to access this endpoint.