Skip to main content

Browser - Read

Endpoint

/o?method=browser

Overview

Returns browser analytics time-series data for the selected app and period.

Authentication

Countly API supports three authentication methods:

  1. API key query parameter: api_key=YOUR_API_KEY
  2. Auth token query parameter: auth_token=YOUR_AUTH_TOKEN
  3. Auth token header: countly-token: YOUR_AUTH_TOKEN

Permissions

Requires browser Read permission.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be browser.
app_idStringYesApp ID to query.
periodStringYesStandard Countly period (for example hour, yesterday, 7days, 30days, month, or custom range).
timezoneStringNoOptional timezone override for period interpretation.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Response

Success Response

{
"2026": {
"2": {
"17": {
"0": {
"brw": 128
},
"1": {
"brw": 143
}
}
}
},
"meta": {
"browser": ["Chrome", "Safari", "Firefox"],
"browser_version": ["121.0", "17.3", "122.0"]
}
}

Response Fields

FieldTypeDescription
(root object)ObjectTime-bucketed browser metrics object.
metaObjectBrowser and browser-version metadata arrays.

Error Responses

400 Bad Request

{
"result": "Missing parameter \"api_key\" or \"auth_token\""
}

401 Unauthorized

{
"result": "User does not have right"
}

Behavior/Processing

Behavior Modes

ModeTriggerProcessing PathResponse Shape
Browser metrics readmethod=browserValidates read rights, fetches browser time object, returns time-series payload.Raw browser metrics object

Impact on Other Data

  • Read-only endpoint.

Database Collections

CollectionUsed forData touched by this endpoint
countly.membersAuthentication and permission validationReads member record by api_key or auth_token to verify read access.
countly.appsApp context validationReads app record for the requested app_id during access validation.
countly.browserBrowser metric sourceReads browser and browser-version metric documents for requested app/period.

Examples

Read browser metrics for last 7 days

/o?
api_key=YOUR_API_KEY&
method=browser&
app_id=6991c75b024cb89cdc04efd2&
period=7days

Read browser metrics for custom range

/o?
api_key=YOUR_API_KEY&
method=browser&
app_id=6991c75b024cb89cdc04efd2&
period=[1738368000000,1738972800000]

Last Updated

2026-02-17