Audience Endpoint¶
Returns audience data restricted by the query parameters passed in POST
request body.
Request Fields¶
<!-- POST the request body to this endpoint -->
https://uslicer.iponweb.com/API/v2/audience
Field |
Description |
---|---|
audience_rows_limit |
(optional) The maximum number of rows to be processed (the greater the
number, the higher the precision). By default API requests process
|
filters |
(optional) An array of filters with the following details
|
split_by |
An array of key field values from the filters field by which to split data.
Takes the form of |
start_date |
Sets the start of the date range from which to gather data. Supported formats:
|
end_date |
Sets the end of the date range from which to gather data. Supported formats:
|
timezone |
(optional): Time zone UTC offset in hours, where N can be any integer in
the range of |
Response Fields¶
Field |
Description |
---|---|
status |
Returns the status of the request,
|
reason |
user-friendly description of the occurred error. This field is displayed for failed requests only. |
total |
this section contains information about the entire dataset returned by the query.
|
rows |
this section contains query data results. It is an array of data rows, each containing the following fields.
|
confidence_range |
the confidence range for data (percent), presented in this section, if returned dataset is compressed. Available for every data row in the resulting dataset. |
curl Example¶
curl --data '{"slicer_name":"","project_name":"","token":"<token>","split_by":"bid_context_wrapper.user.agent.browser.name","start_date":"2019-10-18","end_date":"2019-10-31","filters":[{"name":"bid_context_wrapper.user.geo.country","value":["US","CA"],"match":"equals"},{"name":"bid_context_wrapper.user.agent.browser.name","value":["Chrome"],"match":"contains"}]}' \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
"https://uslicer.iponweb.com/API/v2/audience"
Request Example¶
{
"slicer_name": "<name: ask Account Manager>",
"project_name": "<name: ask Account Manager>",
"token": "<token>",
"split_by": [
"bid_context_wrapper.user.agent.browser.name"
],
"start_date": "2019-10-18",
"end_date": "2019-10-31",
"filters": [
{
"name": "bid_context_wrapper.user.geo.country",
"value": [
"US",
"CA"
],
"match": "equals"
},
{
"name": "bid_context_wrapper.user.agent.browser.name",
"value": [
"Chrome"
],
"match": "contains"
}
]
}
Response Example¶
{
"status": "success",
"total": {
"dates": [
"2012-03-18",
"2012-03-19",
"2012-03-20"
],
"data": [
{
"value": 664019,
"name": "unique_users"
}
],
"records_found": 5,
"confidence_range": "0.00245"
},
"rows": [
{
"name": [
"MSIE6"
],
"data": [
{
"value": 6210,
"name": "unique_users"
}
],
"confidence_range": "0.02538"
},
{
"name": [
"MSIE9"
],
"data": [
{
"value": 272940,
"name": "unique_users"
}
],
"confidence_range": "0.00383"
},
{
"name": [
"MSIEOther"
],
"data": [
{
"value": 27,
"name": "unique_users"
}
],
"confidence_range": "0.37771"
},
{
"name": [
"MSIE7"
],
"data": [
{
"value": 176570,
"name": "unique_users"
}
],
"confidence_range": "0.00476"
},
{
"name": [
"MSIE8"
],
"data": [
{
"value": 208284,
"name": "unique_users"
}
],
"confidence_range": "0.00438"
}
]
}