View Stats report
Copied
https://api.ocamba.com/v1/hood/reports/stats
Copied
https://api.ocamba.com/v1/hood/reports/stats
Stats provides reports on various reporting data parameters
Name
Descriptionsortstring
Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix "-" for descending).Examples:
GET /VERSION/hood/RESOURCE_NAME?sort=name → sorts per name, ascending
GET /VERSION/hood/RESOURCE_NAME?sort=-id → sorts per id descending
GET /VERSION/hood/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending
See tips for the list of sortable fields.
Example: sort=-field1,field2
pagestring
The page number indicates which set of items will be returned in the response. The format of request is "page=N,M" where 'N' (required) represents page number and 'M' (optional) is number of items per page.Examples:
N=1, M=20 → returns page 1 with 20 items
N=2, M=20 → returns page 2 with 20 items (items 21-40)
N=3 → returns page 3. The number of objects returned depends on the resource settings.
Example: page=1,10
outstring
Data format output - 'csv' (default) or 'json'.Example: out=json
fieldsstringrequired
Fields is array of dimensions and measures. You can use dimensions to categorize, segment, and reveal the details in your data. Measures contain numeric, quantitative values that you can measure. At least one measure is required.Example: active
200 - OK
Name
Descriptionactiveinteger
MeasureTotal number of active users
Example: 5246872
ad_clicksinteger
MeasureNumber of times user has clicked.
Example: 10
ad_impressionsinteger
MeasureNumber of times user has viewed an ad.
Example: 1063
ad_last_clickeddateTime
DimensionTimezone: GMT.
Example: 2022-03-20 20:45:11
ad_last_impressiondateTime
DimensionTimezone: GMT.
Example: 2022-03-20 20:45:11
ad_last_serveddateTime
DimensionTimezone: GMT.
Example: 2022-03-20 20:45:11
ad_servedinteger
MeasureNumber of times user has received an ad.
Example: 89
ad_spam_clicksinteger
Example: 0
app_namestring
DimensionHood application name created on Ocamba platform.
Example: delsystems.net
browser_idstring
DimensionThe id of the browser.
Example: 10
browser_namestring
DimensionThe name of the browser.
Example: Chrome
client_idstring
DimensionA unique identifier generated by the Ocamba platform.
Example: 17232323230987654321
container_idinteger
DimensionUnique container identifier generated on Ocamba platform.
Example: 126598752
container_namestring
DimensionContainer name created on Ocamba platform.
Example: test.demo.com
country_codestring
DimensionThe code of the geographical country.
Example: RS
country_namestring
DimensionThe name of the geographical country.
Example: Serbia
first_session_datedate
DimensionExample: 2022-01-13
lang_codestring
DimensionThe code of the user language.
Example: en
lang_namestring
DimensionThe name of the user language.
Example: English
os_idstring
DimensionThe id of the operating system.
Example: 12
os_namestring
DimensionThe name of the operating system.
Example: Android
push_clicksinteger
MeasureNumber of times user clicked on push notification.
Example: 122
push_credentialsobject
DimensionCredential object.
Example: { "endpoint":"https://fcm.googleapis.com/fcm/send/example" }
push_last_toucheddateTime
DimensionTimezone: GMT.
Example: 2022-03-20 20:45:11
push_statusstring
DimensionUser status, user can be 0 (inactive), 1 (subscribed) or 2 (unsubscribed).
Example: 1
push_subscription_timedateTime
DimensionTimezone: GMT.
Example: 2022-03-22 10:17:33
push_subscriptionsinteger
MeasureTotal number of subscriptions.
Example: 56
push_unsubscription_timedateTime
DimensionTimezone: GMT.
Example: 2022-02-17 23:11:00
push_unsubscriptionsinteger
MeasureTotal number of unsubscriptions.
Example: 56
push_wokenupsinteger
MeasureNumber of times user has received a notification.
Example: 122
retargetingobject
DimensionRetargeting object.
Example: { "retargeting":"test", "test":"value" }
tag_idstring
DimensionTag id created on Ocamba platform.
Example: 126598752
tag_namestring
DimensionTag name created on Ocamba platform.
Example: test demo
timezonestring
DimensionThe user timezone.
Example: Europe/Istanbul
total_pageviewsinteger
MeasureNumber of pageviews that user has made.
Example: 163
total_sessionsinteger
MeasureNumber of sessions that user has made.
Example: 10
tip
1 Sortable fields are: client_id, first_session_date, tag_id, tag_name, container_id, container_name, app_name, push_subscription_time, push_unsubscription_time, push_last_touched, push_credentials, push_status, retargeting, os_id, os_name, browser_id, browser_name, country_code, country_name, timezone, lang_code, lang_name, ad_last_served, ad_last_impression, ad_last_clicked, total_sessions, total_pageviews, push_wokenups, push_clicks, ad_served, ad_impressions, ad_spam_clicks, ad_clicks, push_subscriptions, push_unsubscriptions, active.
2 Filterable fields are: client_id, first_session_date, tag_id, tag_name, container_id, container_name, app_name, push_subscription_time, push_unsubscription_time, push_last_touched, push_credentials, push_status, retargeting, os_id, os_name, browser_id, browser_name, country_code, country_name, timezone, lang_code, lang_name, ad_last_served, ad_last_impression, ad_last_clicked, total_sessions, total_pageviews, push_wokenups, push_clicks, ad_served, ad_impressions, ad_spam_clicks, ad_clicks, push_subscriptions, push_unsubscriptions, active.