Skip to main content

Get partner raw data API

Written by Natalya Yefimenko

You can get raw data about clicks, installs, events, and conversions via API based on your app to make further use of it. Raw statistics provides granular, unaggregated data that enables more in-depth analysis, customization, and integration with other systems.


Before you begin

Get clicks

Headers: API-KEY

Params:

  • filter[applications] (integer) - App ID, e.g.: 123 REQUIRED

  • filter[partners] (integer) - Sub partner ID, e.g.: 1206

  • pagination.limit (uint) - limit

  • pagination.offset (uint) - offset

  • time_window.from_rfc3339 (string) - e.g.: 2022-01-01 REQUIRED

  • time_window.from.seconds (uint) - timestamp - higher priority than from_rfc3339

  • time_window.from_not_include bool - if checked "time > from" else "time >= from"

  • time_window.to_rfc3339 (string) - example: 2022-01-01

  • time_window.to.seconds (uint) - timestamp - higher priority than to_rfc3339

  • non_organic_only (boolean) - e.g.: true

Response example:

{
"clicks": [
{
"click_id": "ab17849d-be30-4f1e-9972-433bac3e00e3",
"created_at": {
"seconds": 1789708633
},
"subs": {},
"geo": {
"country": "IN",
"region": "Kerala",
"city": "Kasaragod",
"isp": "?"
},
"ip": "2001:df0:b240:445b:c5b7:a4c:a607:a9eb",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36",
"app_id": 7277,
"pub_click_id": "{clickid}",
"original_params": {
"clickid": "{clickid}",
"pid": "123"
}

Get impressions

Headers: API-KEY

Params:

  • filter[applications] (integer) - App ID, e.g.: 123 REQUIRED

  • filter[partners] (integer) - Sub partner ID, e.g.: 1206

  • pagination.limit (uint) - limit

  • pagination.offset (uint) - offset

  • time_window.from_rfc3339 (string) - e.g.: 2022-01-01 REQUIRED

  • time_window.from.seconds (uint) - timestamp - higher priority than from_rfc3339

  • time_window.from_not_include bool - if checked "time > from" else "time >= from"

  • time_window.to_rfc3339 (string) - example: 2022-01-01

  • time_window.to.seconds (uint) - timestamp - higher priority than to_rfc3339

  • non_organic_only (boolean) - e.g.: true

​Response example:

{
"impressions": [
{
"click_id": "90ccd206-a514-4739-bf15-0220a352a1c0",
"created_at": {
"seconds": 1790242795
},
"subs": {},
"geo": {
"country": "BY",
"region": "Horad Minsk",
"city": "Minsk",
"isp": "?"
},
"ip": "178.122.XXX.XX",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36",
"app_id": 311,
"pub_click_id": "{clickid}",
"original_params": {
"clickid": "{clickid}",
"pid": "8123"
}

Get installs

Headers: API-KEY

Params:

  • filter[applications] (integer) - App ID, e.g.: 123 REQUIRED

  • filter[partners] (integer) - Sub partner ID, e.g.: 1206

  • pagination.limit (uint) - limit

  • pagination.offset (uint) - offset

  • time_window.from_rfc3339 (string) - e.g.: 2022-01-01 REQUIRED

  • time_window.from.seconds (uint) - timestamp - higher priority than from_rfc3339

  • time_window.from_not_include bool - if checked "time > from" else "time >= from"

  • time_window.to_rfc3339 (string) - example: 2022-01-01

  • time_window.to.seconds (uint) - timestamp - higher priority than to_rfc3339

  • non_organic_only (boolean) - e.g.: true

Response example:

{
"info": [
{
"device": {
"affise_device_id": "c500cf99-2734-537f-c544-cf9927345302",
"random_user_id": "d3d271a7-ead9-72f3-30b6-2d6b8b5d8f00",
"first_open_time": {
"seconds": 1789713021
},
"app_id": 7123,
"affise_pkg_app_name": "com.abc.xxx",
"partner_id": 995,
"device_parameters": {
"platform": "android",
"device_name": "moto g57 power",
"device_type": "smartphone",
"os_version": "17",
"android_id": "c544cf990004537f",
"gaid_adid": "b6eff0c2-bc80-4585-9264-fa0db3a73a81",
"referrer": "referrer=1bfee4c0-a267-4014-8fc8-b5f4b3f5df2b&affise_siteid=%7Baff_id%0D&clickid=300o3b4oe11f41c7ob0e81775oc3a27158od84fb23018bb&pid=2895"
},
"click_affise": {
"click_id": "1bfee4c0-a267-4414-8fc8-b5f4b3f5df0b",
"created_at": {
"seconds": 1789712971
},
"subs": {},
"geo": {
"country": "IN",
"region": "Kerala",
"city": "Kasaragod",
"isp": "?"
},
"ip": "2001:df0:b200:445b:21d2:546a:9c24:ce90",
"user_agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Mobile Safari/537.36",
"app_id": 7277,
"pub_click_id": "370o3b4oe11f41c7ob0e81775oc3a27158od84fb23018bb",
"site_id": "{aff_id}",
"original_params": {
"affise_siteid": "{aff_id}",
"affise_sub_siteid": "",
"clickid": "370o3b4oe11f41c7ob0e81775oc3a27158od84fb23018bb",
"pid": "2895"
}
},
"timezone_dev": "UTC+0530",
"language": "en_IN"
},
"uuid": "b33579de-01a0-1000-9ad8-60ae7bb0bec0",
"timestamp": {
"seconds": 1789713022
},
"geo": {
"country": "IN",
"region": "Kerala",
"isp": "?"
},
"ip": "2001:df0:b240:405b:21d2:546a:9c24:ce90",
"created_at": {
"seconds": 1789713050
},
"received_at": {
"seconds": 1789713022
}
}
]
}

Get events

Headers: API-KEY

Params:

  • filter[applications] (integer) - App ID, e.g.: 123 REQUIRED

  • filter[partners] (integer) - Sub partner ID, e.g.: 1206

  • pagination.limit (uint) - limit

  • pagination.offset (uint) - offset

  • time_window.from_rfc3339 (string) - e.g.: 2022-01-01 REQUIRED

  • time_window.from.seconds (uint) - timestamp - higher priority than from_rfc3339

  • time_window.from_not_include bool - if checked "time > from" else "time >= from"

  • time_window.to_rfc3339 (string) - example: 2022-01-01

  • time_window.to.seconds (uint) - timestamp - higher priority than to_rfc3339

  • non_organic_only (boolean) - e.g.: true

Response example:

{
"events": [
{
"info": {
"device": {
"affise_device_id": "c544cf99-0034-537f-c544-cf9927345302",
"random_user_id": "d3d001a7-ead9-72f2-30b6-2d6b8b5d8f01",
"first_open_time": {
"seconds": 1789713021
},
"app_id": 123,
"affise_pkg_app_name": "com.abx.xxx",
"partner_id": 2895,
"device_parameters": {
"platform": "android",
"device_name": "moto g57 power",
"device_type": "smartphone",
"os_version": "17",
"android_id": "c544cf992734537f",
"gaid_adid": "b6eff0c2-bc00-4585-9264-fa4db3a73a81",
"referrer": "referrer=2bfee0c0-a267-4414-8fc8-b5f4b3f5df2b&affise_siteid=%7Baff_id%7D&clickid=375o3b4oe11f41c7ob0e81775oc3a27158od84fb23018bb&pid=2895"
},
"click_affise": {
"click_id": "2bfee0c0-a267-4414-8fc8-b5f4b3f5df2b",
"created_at": {
"seconds": 1789712971
},
"subs": {},
"geo": {
"country": "IN",
"region": "Kerala",
"city": "Kasaragod",
"isp": "?"
},
"ip": "2001:df0:b240:445b:21d2:546a:9c24:ce90",
"user_agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Mobile Safari/537.36",
"app_id": 7277,
"pub_click_id": "370o3b4oe11f41c7ob0e81775oc3a27158od84fb23018bb",
"site_id": "{aff_id}",
"original_params": {
"affise_siteid": "{aff_id}",
"affise_sub_siteid": "",
"clickid": "375o3b4oe11f41c7ob0e81775oc3a27008od84fb23018bb",
"pid": "123"
}
},
"timezone_dev": "UTC+0530",
"language": "en_IN"
},
"uuid": "b33579de-01a0-1000-9ad8-60ae7bb0bec0",
"timestamp": {
"seconds": 1789713022
},
"geo": {
"country": "IN",
"region": "Kerala",
"isp": "?"
},
"ip": "2001:df0:b240:445b:21d0:546a:9c24:ce90",
"created_at": {
"seconds": 1789713050
},
"received_at": {
"seconds": 1789713022
}
},
"created_at": {
"seconds": 1789713050
},
"id": "b33579de-01a0-1000-9ad8-60ae7bb3bec0",
"name": "Install",
"timestamp": {
"seconds": 1789713021
},
"first_for_user": true
},

Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].

Did this answer your question?