Skip to main content

Exporting analytics with API

Exporting your analytics data to CSV gives you the flexibility to dive deeper into your app’s performance metrics, customize reports, and analyze trends over time. With the Adapty API, you can easily pull detailed analytics into a CSV format, making it convenient to track, share, and refine your data insights as needed.

Getting started with the API for analytics export

With the analytics export API, you can, for example:

  1. Analyze MRR from Marketing Campaigns: Measure the impact of last year's marketing campaigns in the USA to see which ones brought in the highest revenue, with weekly tracking. Use the Retrieve analytics data method for this.

  2. Track Cohort Retention Over Time: Follow retention by cohort to spot drop-off points and compare cohorts over time, revealing trends and key moments where engagement strategies could boost retention. Limited to App Store, a specific product, and the USA. Use the Retrieve cohort data method for this.

  3. Evaluate Conversion Rates Across Channels: Analyze conversion rates for key acquisition channels to see which are most effective in driving first-time purchases. This helps prioritize marketing spend on high-performing channels. Use the Retrieve conversion data method for this.

  4. Review Churn Rate: Monitor how quickly users are unsubscribing to uncover churn patterns or gauge the success of retention efforts, focusing on France and a specific product. Use the Retrieve funnel data method for this.

  5. Assess LTV by User Segment: Identify the lifetime value of different user segments to understand which groups bring in the highest revenue over time. Focus on high-value segments like long-term subscribers, and use the results to refine acquisition strategies. Use the Retrieve LTV data method for this.

  6. Check Retention by Country: Look at retention rates by region to find high-engagement markets and guide localization or regional strategies. Use the Retrieve retention data method for this.

Authorization

  • Base URL: https://api-admin.adapty.io

  • Authorization header: API requests must be authenticated by including your secret API key as an Authorization header.

    1. In the Authorization -> Auth type field, choose API Key.
    2. In the Value field, enter the API Key in format Api-Key {secret_token} to each request, for example, Api-Key secret_live_BEHrYLTr.ce5zuDEWz06lFRNiaJC8mrLtL8fUwswD. You can find your secret API key in Adapty Dashboard -> App Settings -> General tab API -> API keys section. This key is secret, so be careful not to share it publicly.
  • Content-Type header: The API expects the request to use the Content-Type header set to application/json.

  • Adapty-Tz header: (optional) Set the timezone to define how the data is grouped and displayed. Use the IANA Time Zone Database format (e.g., Europe/Berlin).

  • Body: The API expects the request to use the body as JSON.

Retrieve analytics data

Retrieves analytics data for insights on user behavior and performance metrics to further use in charts.

Endpoint

https://api-admin.adapty.io/api/v1/client-api/metrics/analytics/

Method

POST

Parameters

NameTypeRequiredDescription
chart_idString

define which char you need.

Possible values are:

  • revenue
  • mrr
  • arr
  • arppu
  • subscriptions_active
  • subscriptions_new
  • subscriptions_renewal_cancelled
  • subscriptions_expired
  • trials_active
  • trials_new
  • trials_renewal_cancelled
  • trials_expired
  • grace_period
  • billing_issue
  • refund_events
  • refund_money
  • non_subscriptions
  • arpu
  • installs
filtersMetricsFilters objectAn object containing filtration parameters. See details below this table.
period_unitStringSpecify the time interval for aggregating analytics data, to view results grouped by selected periods, such as days, weeks, months, etc. Possible values are:
  • day
  • week
  • month
  • quarter
  • year
segmentationStringSets the basis for segmentation. See which segmentation is available for different chats in teh Segmentatiuon table below this table
formatStringSpecify the export file format. Available options are:
  • json
  • csv

Segmentation

Different charts can use different types of segmentation:

For ARPU (click to expand)
  • country
  • store
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • attribution_source
  • period
For revenue, MRR, ARR, active subscriptions, and active trials (click to expand)
  • country
  • store
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • attribution_source
  • store_product_id
  • paywall_id
  • audience_id
  • placement_id
  • duration
  • renewal_status
  • period
  • offer_category
  • offer_type
  • offer_id
For ARRPU (click to expand)
  • country
  • store
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • attribution_source
  • store_product_id
  • paywall_id
  • audience_id
  • placement_id
  • duration
  • renewal_status
  • period
For new subscriptopns, new trials, and refund events (click to expand)
  • country
  • store
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • attribution_source
  • store_product_id
  • paywall_id
  • audience_id
  • placement_id
  • duration
  • offer_category
  • offer_type
  • offer_id
For expired subscriptions and expired trials (click to expand)
  • country
  • store
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • attribution_source
  • store_product_id
  • paywall_id
  • audience_id
  • placement_id
  • duration
  • cancellation_reason
For cancelled subscriptipn renewals, cancelled trials, grace periods, billing issues, money refunds, and non-subscription purchases (click to expand)
  • country
  • store
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • attribution_source
  • store_product_id
  • paywall_id
  • audience_id
  • placement_id
  • duration
For installs (click to expand)
  • country
  • store
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • attribution_source

MetricsFilters object

Filtration criteria differe for different chats. Please see below the variants:

For ARPU and installs (click to expand)
NameTypeRequiredDescription
datearray of String values(data)Enter the date or time period for which you want to retrieve chart data.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
For cancelled trials, expired trials, grace period, billing issues, cancelled subscription renewals, expired subscriptions (click to expand)
NameTypeRequiredDescription
datearray of String values(data)Enter the date or period for which you want to retrieve chart data.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
store_product_idarray of String valuesUnique identifier of a product from the app store. You can see this ID in the Products section of the Adapty Dashboard.
durationarray of StringSpecify the subscription duration. Possible values are:
  • Weekly
  • Monthly
  • 2 months
  • 3 months
  • 6 months
  • Annual
  • Lifetime
  • Uncategorized
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
For all other charts (click to expand)
NameTypeRequiredDescription
datearray of String values(data)Enter the date or period for which you want to retrieve chart data.
compare_datearray of String values(data)If comparing two dates or periods, enter the earlier one here and the later one in the date parameter.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
store_product_idarray of String valuesUnique identifier of a product from the app store. You can see this ID in the Products section of the Adapty Dashboard.
durationarray of StringSpecify the subscription duration. Possible values are:
  • Weekly
  • Monthly
  • 2 months
  • 3 months
  • 6 months
  • Annual
  • Lifetime
  • Uncategorized
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
offer_categoryarray of String valuesSpecify the offer categories you want to retrieve data for. Possible values are:
  • introductory
  • promotional
  • winback
offer_typearray of String valuesSpecify the offer types you want to retrieve data for. Possible values are:
  • free_trial
  • pay_as_you_go
  • pay_up_front
.
offer_idarray of String valuesSpecify the specific offers you want to retrieve data for.

Request example

Example request (click to expand)

Below is an example request for measuring the impact of last year's marketing campaigns in the USA to see which ones brought in the highest revenue, with weekly tracking.

{
"filters": {
"date": [
"2022-01-01",
"2022-12-31"
],
"country": [
"us"
],
"attribution_channel": [
"social_media_influencers"
],
"period_unit": "week",
"segmentation": "attribution_campaign"
}

Retrieve cohort data

Retrieves cohort data for tracking user groups over time.

Endpoint

https://api-admin.adapty.io/api/v1/client-api/metrics/cohort/

Method

POST

Parameters

NameTypeRequiredDescription
filtersMetricsFilters objectAn object containing filtration parameters. See details below this table.
period_unitStringSpecify the time interval for aggregating analytics data, to view results grouped by selected periods, such as days, weeks, months, etc. Possible values are:
  • day
  • week
  • month
  • quarter
  • year
period_typeString

Analyze data by renewals or by days. For a detailed description, see Tracking by renewals or by days.

Possible values are:

  • renewals
  • days
value_typeStringSpecify how values are displayed. Possible values are:
  • absolute: as a percentage of the total
  • relative: as a percentage from the start, starting at 100% for renewal periods.
value_fieldStringSpecify the type of values displayed. Possible values are:
  • revenue
  • arppu
  • arpu
  • arpas
  • subscribers
  • subscriptions
accounting_typeStringThe accounting method used. Possible values are:
  • revenue
  • proceeds
  • net_revenue
renewal_daysArray of IntegersThis is a list of days since the app was installed for the cohort type period_type=days. Default:
  • 0
  • 3
  • 7
  • 14
  • 28
  • 31
  • 61
  • 92
  • 183
  • 336
  • 550
  • 731
formatStringSpecify the export file format. Available options are:
  • json
  • csv

MetricsFilters object

NameTypeRequiredDescription
datearray of String values(data)Enter the date or period for which you want to retrieve chart data.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
store_product_idarray of String valuesUnique identifier of a product from the app store. You can see this ID in the Products section of the Adapty Dashboard.
durationarray of StringSpecify the subscription duration. Possible values are:
  • Weekly
  • Monthly
  • 2 months
  • 3 months
  • 6 months
  • Annual
  • Lifetime
  • Uncategorized
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
offer_categoryarray of String valuesSpecify the offer categories you want to retrieve data for. Possible values are:
  • introductory
  • promotional
  • winback
offer_typearray of String valuesSpecify the offer types you want to retrieve data for. Possible values are:
  • free_trial
  • pay_as_you_go
  • pay_up_front
.
offer_idarray of String valuesSpecify the specific offers you want to retrieve data for.

Request example

Example request (click to expand)

The example below shows how to track retention by cohort to spot drop-off points, revealing trends and key moments where engagement strategies could boost retention. Limited to App Store, a specific product, and the USA.

{
"filters": {
"date": [
"2024-04-01",
"2024-09-30"
],
"store": [
"app_store"
],
"country": [
"us"
],
"store_product_id": [
[
"monthly.premium.599"
]
],
},
"period_unit": "month",
"period_type": "renewals",
"value_type": "absolute",
"value_field": "subscriptions"
}

Retrieve conversion data

Retrieves conversion data to analyze user actions and measure the effectiveness of marketing efforts over time.

Endpoint

https://api-admin.adapty.io/api/v1/client-api/metrics/conversion/

Method

POST

Parameters

NameTypeRequiredDescription
filtersMetricsFiltersAn object containing filtration parameters. See details below this table.
period_unitStringSpecify the time interval for aggregating analytics data, to view results grouped by selected periods, such as days, weeks, months, etc. Possible values are:
  • day
  • week
  • month
  • quarter
  • year
segmentationStringSets the basis for segmentation. Possible values are:
  • app_id
  • period
  • renewal_status
  • cancellation_reason
  • store_product_id
  • country
  • store
  • purchase_container_id
  • paywall_id
  • audience_id
  • placement_id
  • attribution_source
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • duration
  • default
formatStringSpecify the export file format. Available options are:
  • json
  • csv

MetricsFilters object

NameTypeRequiredDescription
datearray of String values(data)Enter the date or period for which you want to retrieve chart data.
compare_datearray of String values(data)If comparing two dates or periods, enter the earlier one here and the later one in the date parameter.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
store_product_idarray of String valuesUnique identifier of a product from the app store. You can see this ID in the Products section of the Adapty Dashboard.
durationarray of StringSpecify the subscription duration. Possible values are:
  • Weekly
  • Monthly
  • 2 months
  • 3 months
  • 6 months
  • Annual
  • Lifetime
  • Uncategorized
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
offer_categoryarray of String valuesSpecify the offer categories you want to retrieve data for. Possible values are:
  • introductory
  • promotional
  • winback
offer_typearray of String valuesSpecify the offer types you want to retrieve data for. Possible values are:
  • free_trial
  • pay_as_you_go
  • pay_up_front
.
offer_idarray of String valuesSpecify the specific offers you want to retrieve data for.

Request example

Example request (click to expand)

The example below shows how to get conversion rates for key acquisition channels to see which are most effective in driving first-time purchases. This helps prioritize marketing spend on high-performing channels.

{
"filters": {
"date": [
"2023-01-01",
"2023-12-31"
],
"store": [
"app_store",
"play_store"
],
"country": [
"US",
"CA"
],
"attribution_source": [
"appsflyer"
],
"attribution_channel": [
"social_media",
"search"
]
},
"period_unit": "month",
"date_type": "purchase_date",
"segmentation": "attribution_channel"
}

Retrieve funnel data

Retrieves funnel data to track user progression through specific stages of a conversion process.

Endpoint

https://api-admin.adapty.io/api/v1/client-api/metrics/funnel/

Method

POST

Parameters

NameTypeRequiredDescription
filtersMetricsFiltersAn object containing filtration parameters. See details below this table.
period_unitStringSpecify the time interval for aggregating analytics data, to view results grouped by selected periods, such as days, weeks, months, etc. Possible values are:
  • day
  • week
  • month
  • quarter
  • year
show_value_asStringSpecify how values are displayed. Possible values are:
  • absolute: as a percentage of the total
  • relative: as a percentage from the start, starting at 100% for renewal periods.
  • both
segmentationStringSets the basis for segmentation. Possible values are:
  • app_id
  • period
  • renewal_status
  • cancellation_reason
  • store_product_id
  • country
  • store
  • purchase_container_id
  • paywall_id
  • audience_id
  • placement_id
  • attribution_source
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • duration
  • default
formatStringSpecify the export file format. Available options are:
  • json
  • csv

MetricsFilters object

NameTypeRequiredDescription
datearray of String values(data)Enter the date or period for which you want to retrieve chart data.
compare_datearray of String values(data)If comparing two dates or periods, enter the earlier one here and the later one in the date parameter.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
store_product_idarray of String valuesUnique identifier of a product from the app store. You can see this ID in the Products section of the Adapty Dashboard.
durationarray of StringSpecify the subscription duration. Possible values are:
  • Weekly
  • Monthly
  • 2 months
  • 3 months
  • 6 months
  • Annual
  • Lifetime
  • Uncategorized
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
offer_categoryarray of String valuesSpecify the offer categories you want to retrieve data for. Possible values are:
  • introductory
  • promotional
  • winback
offer_typearray of String valuesSpecify the offer types you want to retrieve data for. Possible values are:
  • free_trial
  • pay_as_you_go
  • pay_up_front
.
offer_idarray of String valuesSpecify the specific offers you want to retrieve data for.

Request example

Example request (click to expand)

The example below shows how to monitor how quickly users are unsubscribing to uncover churn patterns or gauge the success of retention efforts, focusing on France and a specific product.

{
"filters": {
"date": [
"2022-01-01",
"2022-12-31"
],
"compare_date": [
"2023-01-01",
"2023-12-31"
],
"country": [
"fr"
],
"store_product_id": [
[
"monthly.premium.599"
]
],
},
"period_unit": "month",
"segmentation": "renewal_status"
}

Retrieve Lifetime Value (LTV) data

Retrieves LTV data to assess the long-term revenue potential of customers over their engagement period.

Endpoint

https://api-admin.adapty.io/api/v1/client-api/metrics/ltv/

Method

POST

Parameters

NameTypeRequiredDescription
filtersMetricsFiltersAn object containing filtration parameters. See details below this table.
period_unitStringSpecify the time interval for aggregating analytics data, to view results grouped by selected periods, such as days, weeks, months, etc. Possible values are:
  • day
  • week
  • month
  • quarter
  • year
period_typeStringPossible values are:
  • renewals
  • days
segmentationStringPossible values are:
  • day
  • week
  • month
  • year
  • country
  • product
  • paywall
  • paywalls_group
  • audience
  • placement
  • duration
  • store
formatStringSpecify the export file format. Available options are:
  • json
  • csv

MetricsFilters object

NameTypeRequiredDescription
datearray of String values(data)Enter the date or period for which you want to retrieve chart data.
compare_datearray of String values(data)If comparing two dates or periods, enter the earlier one here and the later one in the date parameter.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
store_product_idarray of String valuesUnique identifier of a product from the app store. You can see this ID in the Products section of the Adapty Dashboard.
durationarray of StringSpecify the subscription duration. Possible values are:
  • Weekly
  • Monthly
  • 2 months
  • 3 months
  • 6 months
  • Annual
  • Lifetime
  • Uncategorized
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
offer_categoryarray of String valuesSpecify the offer categories you want to retrieve data for. Possible values are:
  • introductory
  • promotional
  • winback
offer_typearray of String valuesSpecify the offer types you want to retrieve data for. Possible values are:
  • free_trial
  • pay_as_you_go
  • pay_up_front
.
offer_idarray of String valuesSpecify the specific offers you want to retrieve data for.

Request example

Example request (click to expand)

The example below shows how to identify the lifetime value of different user segments to understand which groups bring in the highest revenue over time. Focus on high-value segments like long-term subscribers, and use the results to refine acquisition strategies.

{
"filters": {
"date": [
"2023-01-01",
"2023-12-31"
],
"store": [
"app_store"
],
"country": [
"us"
],
"store_product_id": [
"premium_subscription"
],
"attribution_source": [
"appsflyer"
],
"attribution_status": [
"organic"
],
"attribution_channel": [
"social_media"
]
},
"period_unit": "month",
"period_type": "renewals",
"segmentation": "audience"
}

Retrieve retention data

Retrieves the retention data to analyze the ability of a product to keep users engaged over time.

Endpoint

https://api-admin.adapty.io/api/v1/client-api/metrics/retention/

Method

POST

Parameters

NameTypeRequiredDescription
filtersMetricsFiltersAn object containing filtration parameters. See details below this table.
period_unitStringSpecify the time interval for aggregating analytics data, to view results grouped by selected periods, such as days, weeks, months, etc. Possible values are:
  • day
  • week
  • month
  • quarter
  • year
segmentationStringSets the basis for segmentation. Possible values are:
  • app_id
  • period
  • renewal_status
  • cancellation_reason
  • store_product_id
  • country
  • store
  • purchase_container_id
  • paywall_id
  • audience_id
  • placement_id
  • attribution_source
  • attribution_status
  • attribution_channel
  • attribution_campaign
  • attribution_adgroup
  • attribution_adset
  • attribution_creative
  • duration
  • default
use_trialboolean
formatStringSpecify the export file format. Available options are:
  • json
  • csv

MetricsFilters object

NameTypeRequiredDescription
datearray of String values(data)Enter the date or period for which you want to retrieve chart data.
compare_datearray of String values(data)If comparing two dates or periods, enter the earlier one here and the later one in the date parameter.
storearray of String valuesFilter by the app store where the purchase was made. Possible values include app_store, play_store, stripe, and any custom store ID. If using a custom store, enter its ID as set in the Adapty Dashboard.
countryarray of String valuesFilter by the 2-letter country code where the purchase took place, using ISO 3166-1 standard codes.
store_product_idarray of String valuesUnique identifier of a product from the app store. You can see this ID in the Products section of the Adapty Dashboard.
durationarray of StringSpecify the subscription duration. Possible values are:
  • Weekly
  • Monthly
  • 2 months
  • 3 months
  • 6 months
  • Annual
  • Lifetime
  • Uncategorized
attribution_sourcearray of String valuesThe source integration for attribution. Possible options:
  • adjust
  • airbridge
  • apple_search_ads
  • appsflyer
  • branch
  • custom
attribution_statusarray of String valuesIndicates if the attribution is organic or non-organic. Possible values are:
  • organic
  • non-organic
  • unknown
attribution_channelarray of String valuesMarketing channel that led to the transaction.
attribution_campaignarray of String valuesMarketing campaign that brought the transaction.
attribution_adgrouparray of String valuesAttribution ad group that brought the transaction.
attribution_adsetarray of String valuesAttribution ad set that led to the transaction.
attribution_creativearray of String valuesSpecific visual or text elements in an ad or campaign tracked to measure effectiveness (e.g., clicks, conversions).
offer_categoryarray of String valuesSpecify the offer categories you want to retrieve data for. Possible values are:
  • introductory
  • promotional
  • winback
offer_typearray of String valuesSpecify the offer types you want to retrieve data for. Possible values are:
  • free_trial
  • pay_as_you_go
  • pay_up_front
.
offer_idarray of String valuesSpecify the specific offers you want to retrieve data for.

Request example

Example request (click to expand)

The example below shows how to view retention rates by region to identify high-engagement markets and guide localization or regional strategies

{
"filters": {
"date": [
"2023-04-01",
"2023-06-30"
],
"period_unit": "month",
"segmentation": "country",
"use_trial": false
}