Skip to content

Request data

Request data are the rows the aggregated reports are built of: installs, in-app events, clicks, impressions, conversions, subscription events. The methods are POST /v1/report/raw/*, see the RequestData section of the Reporting & Events API reference. To receive the rows as hourly files in your bucket instead, see Cloud export.

DataMethodWindow byFlat rows
Installs/v1/report/raw/installsaffise_event_timestamp of the install row (its first_open_time); flat: time_fieldyes
In-app events/v1/report/raw/eventsaffise_event_timestamp; flat: time_fieldyes
Clicks/v1/report/raw/clickscreated_at of the click—
Impressions/v1/report/raw/impressionscreated_at of the impression—
Conversions/v1/report/raw/conversionscreated_at of the conversion—
Subscription events/v1/report/raw/subscriptionsreceived_at of the webhook—

The events include the install rows (affise_event_name = Install). Conversions and subscriptions are not open to an agency key, see Partner API.

FieldDescription
app_id, package_nameApplications by id or package name; both empty — all applications of the key. For an agency key the application is filter[applications], these are ignored.
time_windowTime window, see Raw report window. Required, except installs and events with devices_search: then the window is taken from the installs of the device found.
pagination{"offset": 0, "limit": 1000}. Without pagination — 10 rows; limit: 0 — 1000 rows; at most 10000.
orderFields to sort by, a - in front for descending: ["-received_at"]. Only the fields listed below are accepted; any other value is 400.
time_formatrfc3339 (default) or proto, see Date format.
row_formatInstalls and events: nested (default) or flat, see Flat rows.
time_fieldrow_format=flat only: the field the window applies to, see Flat rows.
fieldsrow_format=flat only: the fields of the rows, see Flat rows.
filtersEach report has its own: devices_search, partner_id, event_names, non_organic_only, click_id, blocked_reason and so on, see the request model of the method.

A request must complete within 60 seconds: for a large application page with a smaller limit or narrow the window. At most 3 requests per second per key.

With row_format=flat installs and events come in rows: one flat object per install or event, keyed by the names of Raw data fields. The nested answer (info, events) stays the default.

FieldDescription
time_fieldInstalls: affise_event_timestamp (default), received_at or updated_at. Events: affise_event_timestamp (default) or received_at; updated_at is 400. What each means: Time.
fieldsThe fields of the rows; all of them when empty. An unknown name is 400. With fields every field asked for is in every row, an empty one too (an empty time as null); without it empty and zero fields are left out.
non_organic_onlyOnly installs (events of installs) whose current attribution is non-organic. For nested events it is ignored.

time_field other than the default or fields without row_format=flat is 400.

Specifics of the flat rows:

  • partner_id and click_partner_id are shown as in the aggregated reports: a sub-partner as its top parent, an external pid as its partner. partner_id in the filter is matched the same way.
  • In an event row partner_id, customer_user_id, is_re_install, product_id and the google_* fields are those of the latest state of its install; the other fields are those of the event as received.
  • Event names are shown under the client event names of the application, if set; event_names takes the shown names.
  • For an agency key the fields hidden from agencies are left out, even if asked for in fields; see the Agency column of Raw data fields.

Fields order accepts, by report. A name sorts ascending, -name descending; a field not in the list is 400.

ReportFieldsDefault
installsreceived_at, created_at, updated_at, affise_event_timestamp, first_open_time, affise_device_id, random_user_id; flat also app_idreceived_at, affise_event_timestamp; flat: time_field
eventsreceived_at, created_at, updated_at, affise_event_timestamp, first_open_time, affise_device_id, random_user_id, affise_event_id, affise_event_name; flat also app_idreceived_at, affise_event_timestamp; flat: time_field
clicks, impressionscreated_at, click_id, app_id, partner_id, campaign_id, site_id, pub_click_idcreated_at
conversionscreated_at, id, conversion_type, event_time, inapp_event_time, app_id, partner_id, payouts, affise_device_idcreated_at
subscriptionsreceived_at, updated_at, event_time, started_at, expires_at, app_id, product_id, customer_user_id, transaction_id, original_transaction_idreceived_at

Flat rows are always sorted by the keys of a row last — app_id, affise_device_id, random_user_id (events also affise_event_id, affise_event_name) — so the order is total.

The authoritative list is the description of order in the request model of each method in the reference.

Page a window with offset: 0, limit, 2 × limit… until a page is shorter than limit. Keep the window, the filters and order the same for all pages.

  • Flat rows: the order is total, so the pages of a window neither repeat nor lose rows. In an updated_at window a row keeps its place even if the install is updated again between the pages.
  • Rows are written in batches up to 60 seconds after received_at: a window ending at the current time may still grow. End the window a few minutes in the past, or page it again later.
  • Do not use the time of the last row as the start of the next window: with time_field=updated_at a row comes in its latest state and its updated_at may be later than the end of the window. See Incremental export.

Flat installs received in one day, five fields, 1000 rows per page:

curl -X POST https://restapi.affattr.com/v1/report/raw/installs \
-H 'API-KEY: <key>' -H 'Content-Type: application/json' \
-d '{"app_id":[123],"row_format":"flat","time_field":"received_at",
"fields":["affise_device_id","random_user_id","partner_id","received_at","updated_at"],
"time_window":{"from_rfc3339":"2026-11-01T00:00:00Z","to_rfc3339":"2026-11-02T00:00:00Z"},
"pagination":{"offset":0,"limit":1000}}'
{"rows":[{"affise_device_id":"5e0c7a52-6a7d-4c4b-9a1e-0b6f1f4b2d10","random_user_id":"c1d3e0aa-27a9-4b0e-8f5c-61d7c0f1a2b3","partner_id":17,"received_at":"2026-11-01T00:00:03Z","updated_at":"2026-11-03T08:12:45.123456789Z"}]}

Installs updated (reattributed included) in one hour:

curl -X POST https://restapi.affattr.com/v1/report/raw/installs \
-H 'API-KEY: <key>' -H 'Content-Type: application/json' \
-d '{"app_id":[123],"row_format":"flat","time_field":"updated_at",
"time_window":{"from_rfc3339":"2026-11-03T08:00:00Z","to_rfc3339":"2026-11-03T09:00:00Z"},
"pagination":{"offset":0,"limit":1000}}'

Purchase events by the time we received them, the second page:

curl -X POST https://restapi.affattr.com/v1/report/raw/events \
-H 'API-KEY: <key>' -H 'Content-Type: application/json' \
-d '{"app_id":[123],"row_format":"flat","time_field":"received_at","event_names":["Purchase"],
"time_window":{"from_rfc3339":"2026-11-01T00:00:00Z","to_rfc3339":"2026-11-02T00:00:00Z"},
"pagination":{"offset":1000,"limit":1000}}'

Rows of the report in one array: info (installs), events, rows (flat installs and events), clicks, impressions, conversions, subscriptions. Empty and zero fields are omitted (flat rows with fields — see above). Integers (64-bit included) and enumerations are JSON numbers, money is a decimal number, json fields are strings holding JSON. Timestamps are RFC 3339 strings in UTC (time_format=proto — {"seconds","nanos"} objects).

An install is identified by affise_device_id + random_user_id (a reinstall gets a new random_user_id), an event by affise_device_id + random_user_id + affise_event_id (id in the nested answer). With several applications in one request add app_id.