Skip to content
Get Help

Cohort API

The Cohort API lets you programmatically query and export Cohort analytics.

Read the Cohort API overview

Get export download status

GET/analytics/{job_id}

This endpoint provisions querying and exporting Cohort analytics.

Parameters

  • app_idstringqueryRequired

    Unique identifier for the Branch app of the requested data. Either appId or organization_id is required.

  • job_idstringpathRequired

    Unique identifier for the job. Obtained from the POST Export Cohort analytics API.

  • formatenumquery

    Format of the returned data: json or csv.

    csvjson

Returns

Status of aggregate export. Returns 400 and 429 on failure — see the response panel for the error shape.

Export Cohort analytics

POST/analytics

This endpoint provisions querying and exporting Cohort analytics.

Parameters

  • app_idstringqueryRequired

    Unique identifier for the Branch app of the requested data. Either appId or organization_id is required.

  • data_sourceenumRequired

    A string value representing the cohort type.

    install_cohortreengagement_cohort
  • end_datestringRequired

    The end of the interval time range represented as an ISO-8601 complete date.

  • granularity_band_countintegerRequired

    Number of time units since the cohort event to return to the user.

  • measuresarray of enumRequired

    The cohort measures to return. The limit is 3. See Measure for the complete list.

    OPENusersRetentionARPPULTVARPUrevenuePURCHASEADD_TO_CARTADD_TO_WISHLISTVIEW_CARTINITIATE_PURCHASE
  • start_datestringRequired

    The start of the interval time range represented as an ISO-8601 complete date.

  • cumulativeboolean

    If true, sum across bands so that a given band value is the sum of all preceding values plus the band value.

  • dimensionsarray of enum

    An array representing the dimensions to group by. The limit is 11. See Dimensions for the complete list.

    install_activity_attributedinstall_activity_event_nameinstall_activity_touch_typeinstall_activity_touch_data_tilde_campaign_idinstall_activity_touch_data_tilde_campaigninstall_activity_touch_data_tilde_channelinstall_activity_touch_data_tilde_featureinstall_activity_touch_data_tilde_stageinstall_activity_touch_data_tilde_tagsinstall_activity_touch_data_tilde_advertising_partner_nameinstall_activity_touch_data_dollar_3pinstall_activity_touch_data_tilde_secondary_publisher

More parameters

  • enable_install_recalculationboolean
  • filterobject
  • formatenumquery
  • granularityenum
  • limitintegerquery
  • orderedenum
  • ordered_byenum
  • per_userboolean
  • uniqueboolean

Returns

Status of aggregate export. Returns 400 and 429 on failure — see the response panel for the error shape.