Your masjid · Statistics
Your app figures
What your app did on one platform over the last 30 days: downloads, versions, sessions, screen views, countries, languages and pages.
Right on the key: Statistics: read for a read, edit (secret key) for a write.
Your app figures
GET/v1/masjid/stats/app
Your app's figures on one platform (platform: ios or android) over the last 30 days: downloads and versions in use, sessions, screen views, people in the app now, countries, languages and pages. A restricted organization reads restricted: true and no figure. Needs Statistics: read.
Parameters
platformios | android · queryrequiredThe store platform:
iosorandroid.
Returns
The figures.
objectapp_statsAlways
app_stats.platformios | androidThe store platform.
daysnumberThe window of the figures, in days: always 30.
restrictedbooleanYour app is restricted: no figure is read.
downloadsnumber | nullDevices that installed the app.
versionsobject | nullThe app versions in use; null when restricted.
Show child attributes (2)
totalnumberDevices reporting a version.
byVersionobjectDevices per app version.
liveUsersnumber | nullPeople in the app now.
sessionsobject[]Per day, over the window.
Show child attributes (2)
datestringThe day.
countnumberThe count that day.
pageViewsobject[]Per day, over the window.
Show child attributes (2)
datestringThe day.
countnumberThe count that day.
countriesobject[]Visitors per country.
Show child attributes (2)
countrystring | nullISO 3166-1 alpha-2.
countnumberVisitors.
languagesobject[]Visitors per device language.
Show child attributes (2)
languagestring | nullThe device language.
countnumberVisitors.
pagesobject[]Views per app page.
Show child attributes (3)
idstringThe id of the app page.
titlestring | nullIts title.
countnumberViews.
Errors
curl "https://hub.masjidbox.com/v1/masjid/stats/app?platform=ios" \
-H "Authorization: Bearer $MASJIDBOX_KEY"{
"countries": [
{
"count": 40,
"country": "GB"
}
],
"days": 30,
"downloads": 120,
"languages": [
{
"count": 35,
"language": "en"
}
],
"liveUsers": 2,
"object": "app_stats",
"pageViews": [
{
"count": 12,
"date": "2026-11-01 00:00:00"
}
],
"pages": [
{
"count": 300,
"id": "6af5c9e2bc095fbd2dc5735e",
"title": "Home"
}
],
"platform": "ios",
"restricted": false,
"sessions": [
{
"count": 12,
"date": "2026-11-01 00:00:00"
}
],
"versions": {
"byVersion": {
"1.6.2": 100
},
"total": 100
}
}