Raw clicks
const url = 'https://restapi.affattr.com/v1/report/raw/clicks?time_format=rfc3339';const options = { method: 'POST', headers: {'API-KEY': '<API-KEY>', 'Content-Type': 'application/json'}, body: '{"adid":["example"],"app_id":[123],"click_id":["example"],"gaid_adid":["example"],"order":["-created_at"],"package_name":["example"],"pagination":{"limit":1000,"offset":0},"partner_id":[1],"pub_click_id":["example"],"time_format":"rfc3339","time_window":{"from_not_include":false,"from_rfc3339":"2026-11-01T00:00:00Z","to_include":false,"to_rfc3339":"2026-11-02T00:00:00Z"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://restapi.affattr.com/v1/report/raw/clicks?time_format=rfc3339' \ --header 'API-KEY: <API-KEY>' \ --header 'Content-Type: application/json' \ --data '{ "adid": [ "example" ], "app_id": [ 123 ], "click_id": [ "example" ], "gaid_adid": [ "example" ], "order": [ "-created_at" ], "package_name": [ "example" ], "pagination": { "limit": 1000, "offset": 0 }, "partner_id": [ 1 ], "pub_click_id": [ "example" ], "time_format": "rfc3339", "time_window": { "from_not_include": false, "from_rfc3339": "2026-11-01T00:00:00Z", "to_include": false, "to_rfc3339": "2026-11-02T00:00:00Z" } }'Clicks of the tracking links of the applications, by created_at of the click. Agency key: filter[applications] with exactly one application of the agency, the clicks of its partners only.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Format of the dates of the answer
Agency key only: the application, exactly one
Agency key only: partners of the agency, all of them by default
Request Body required
Section titled “Request Body required ”Request
object
Advertising id (IDFA) of the click.
Applications by id. Empty together with package_name: every application of the key.
Example
[ 123]Click ids.
Advertising id (GAID) of the click.
Sort fields, a name or “-name” for descending; any other value is 400. Fields: created_at, click_id, app_id, partner_id, campaign_id, site_id, pub_click_id. Default: created_at.
Example
[ "-created_at"]Applications by package name.
Page of the answer.
object
Rows in the page: 10 when pagination is absent, 1000 when limit is 0, at most 10000.
Example
1000Rows to skip.
Example
0Partners by id.
Click ids of the partner.
Format of the dates of the answer: rfc3339 (default) or proto ({“seconds”,“nanos”}). Also accepted as a query parameter.
Window by created_at of the click (impression). Required.
object
Exclude the start of the window. By default it is included.
Example
falseWindow start, RFC 3339. Without a zone the time is UTC, a date alone is its midnight UTC. Absent, unparsable or in the future: now.
Example
2026-11-01T00:00:00ZInclude the end of the window. By default it is excluded.
Example
falseWindow end, RFC 3339, same rules as from_rfc3339. Absent, unparsable or in the future: now.
Example
2026-11-02T00:00:00ZResponses
Section titled “ Responses ”Clicks
object
object
Time of the click, UTC.
GAID the ad network passed in the tracking link.
object
0 unknown, 2 dialup, 3 cable/DSL, 4 corporate, 5 cellular, 6 Wi-Fi.
ISO 3166-1 alpha-2.
IDFA the ad network passed in the tracking link.
Query parameters of the tracking link as received.
object
object
Tracking link the click came by.
Example
{ "clicks": [ { "created_at": "2026-11-01T10:00:00.123Z", "geo": { "connection_type": 0, "country": "DE" } } ]}Bad request
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}No credentials (answered with 403 until default-deny is enabled)
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Invalid credentials or no access
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}Internal server error
object
What went wrong. 403 always says “Access denied”.
Id of the request, to quote to support.
Example
{ "error": "Access denied", "request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"}