如何通过API或手动方式从Branch.io导出积分数据?
How to Export Credit Data from Branch.io (API & Manual Methods)
I’ve tackled this exact issue with Branch.io credit data exports before, so here’s a breakdown of working solutions based on your attempts:
API Options
- Date-range filtering for the Credits API: The
https://api.branch.io/v1/creditsendpoint does support date range parameters, even if it’s not super prominent in the docs. You can usestart_dateandend_datewith either YYYYMMDD format or ISO 8601 timestamps. Example request:https://api.branch.io/v1/credits?branch_key=<your_branch_key>&identity=<dev_id>&start_date=20180501&end_date=20180528 - Enable credit events in Data Export API: The default Data Export API doesn’t include credit-related events, but you can request Branch support to enable this for your account. Once enabled, events like
credit_awardedandcredit_redeemedwill be added to your exportable event list alongside the ones you mentioned (eo_install,eo_open, etc.).
Manual CSV Export
Branch’s dashboard doesn’t have a direct "download credit data" button, but you can use the Custom Reports feature to pull this data:
- Navigate to Analytics > Custom Reports in your Branch dashboard
- Create a new report, and select event types like
credit_awardedorcredit_redeemed - Add dimensions you need (e.g.,
identityfor user IDs,timestampfor dates,credit_amountfor the value) - Generate the report, then export it as a CSV file
Last Resort: Contact Branch Support
If you need historical data that’s hard to pull via the above methods, reach out to Branch’s support team (via the "Support" button in the dashboard). They can often assist with one-time exports of your credit data or help troubleshoot any API access issues.
内容的提问来源于stack exchange,提问作者Rajiv
相关产品推荐
相关产品推荐

