Skip to content

Raw clicks

POST
/v1/report/raw/clicks
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.

time_format
string
Allowed values: rfc3339 proto

Format of the dates of the answer

filter[applications]
Array<integer>

Agency key only: the application, exactly one

filter[partners]
Array<integer>

Agency key only: partners of the agency, all of them by default

Request

Media type application/json
object
adid

Advertising id (IDFA) of the click.

Array<string>
app_id

Applications by id. Empty together with package_name: every application of the key.

Array<integer>
Example
[
123
]
click_id

Click ids.

Array<string>
gaid_adid

Advertising id (GAID) of the click.

Array<string>
order

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.

Array<string>
Example
[
"-created_at"
]
package_name

Applications by package name.

Array<string>
pagination

Page of the answer.

object
limit

Rows in the page: 10 when pagination is absent, 1000 when limit is 0, at most 10000.

integer
Example
1000
offset

Rows to skip.

integer
Example
0
partner_id

Partners by id.

Array<integer>
pub_click_id

Click ids of the partner.

Array<string>
time_format

Format of the dates of the answer: rfc3339 (default) or proto ({“seconds”,“nanos”}). Also accepted as a query parameter.

string
Allowed values: rfc3339 proto
time_window
required

Window by created_at of the click (impression). Required.

object
from_not_include

Exclude the start of the window. By default it is included.

boolean
Example
false
from_rfc3339

Window start, RFC 3339. Without a zone the time is UTC, a date alone is its midnight UTC. Absent, unparsable or in the future: now.

string
Example
2026-11-01T00:00:00Z
to_include

Include the end of the window. By default it is excluded.

boolean
Example
false
to_rfc3339

Window end, RFC 3339, same rules as from_rfc3339. Absent, unparsable or in the future: now.

string
Example
2026-11-02T00:00:00Z

Clicks

Media type application/json
object
clicks
Array<object>
object
app_id
integer
campaign_id
string
campaign_name
string
click_id
string
created_at

Time of the click, UTC.

string format: date-time
creative_id
string
gaid

GAID the ad network passed in the tracking link.

string
geo
object
city
string
connection_type

0 unknown, 2 dialup, 3 cable/DSL, 4 corporate, 5 cellular, 6 Wi-Fi.

integer
Allowed values: 0 2 3 4 5 6
country

ISO 3166-1 alpha-2.

string
isp
string
region
string
idfa

IDFA the ad network passed in the tracking link.

string
ip
string
network_id
string
network_name
string
original_params

Query parameters of the tracking link as received.

object
key
additional properties
string
partner_name
string
pub_click_id
string
site_id
string
subs
object
sub1
string
sub2
string
sub3
string
sub4
string
sub5
string
tracker_id
string
tracker_name
string
uri

Tracking link the click came by.

string
user_agent
string
Example
{
"clicks": [
{
"created_at": "2026-11-01T10:00:00.123Z",
"geo": {
"connection_type": 0,
"country": "DE"
}
}
]
}

Bad request

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

No credentials (answered with 403 until default-deny is enabled)

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Invalid credentials or no access

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Internal server error

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}