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

Masjid key · Statistics: read

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 · queryrequired

    The store platform: ios or android.

Returns

The figures.

  • objectapp_stats

    Always app_stats.

  • platformios | android

    The store platform.

  • daysnumber

    The window of the figures, in days: always 30.

  • restrictedboolean

    Your app is restricted: no figure is read.

  • downloadsnumber | null

    Devices that installed the app.

  • versionsobject | null

    The app versions in use; null when restricted.

    Show child attributes (2)
    • totalnumber

      Devices reporting a version.

    • byVersionobject

      Devices per app version.

  • liveUsersnumber | null

    People in the app now.

  • sessionsobject[]

    Per day, over the window.

    Show child attributes (2)
    • datestring

      The day.

    • countnumber

      The count that day.

  • pageViewsobject[]

    Per day, over the window.

    Show child attributes (2)
    • datestring

      The day.

    • countnumber

      The count that day.

  • countriesobject[]

    Visitors per country.

    Show child attributes (2)
    • countrystring | null

      ISO 3166-1 alpha-2.

    • countnumber

      Visitors.

  • languagesobject[]

    Visitors per device language.

    Show child attributes (2)
    • languagestring | null

      The device language.

    • countnumber

      Visitors.

  • pagesobject[]

    Views per app page.

    Show child attributes (3)
    • idstring

      The id of the app page.

    • titlestring | null

      Its title.

    • countnumber

      Views.

GET /v1/masjid/stats/app
curl "https://hub.masjidbox.com/v1/masjid/stats/app?platform=ios" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · MasjidAppStats
{
  "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
  }
}