Skip to main content

Analytics & Reports

Request and download analytics and sales reports from App Store Connect
The analytics command group provides access to App Store analytics data and sales reports. You can request analytics reports, check their status, and download the generated data.

Overview

Analytics reports provide insights into app performance, user engagement, and sales data. The workflow involves:
  1. Creating a report request (one-time or ongoing)
  2. Checking request status and available reports
  3. Downloading report data for analysis

Sales Reports

Download sales and trends reports directly without creating a request.

Download Sales Report

Required Flags:
  • --vendor - Vendor number (or ASC_VENDOR_NUMBER env)
  • --type - Report type: SALES, PRE_ORDER, NEWSSTAND, SUBSCRIPTION, SUBSCRIPTION_EVENT
  • --subtype - Report subtype: SUMMARY, DETAILED
  • --frequency - Frequency: DAILY, WEEKLY, MONTHLY, YEARLY
  • --date - Report date (format depends on frequency)
Date Formats:
  • Daily: YYYY-MM-DD
  • Weekly: YYYY-MM-DD (Monday start or Sunday end)
  • Monthly: YYYY-MM
  • Yearly: YYYY
Optional Flags:
  • --version - Report format version: 1_0 (default), 1_1, 1_3
  • --output - Custom output path (default: sales_report_{date}_{type}.tsv.gz)
  • --decompress - Decompress to .tsv format
Examples:

Analytics Report Requests

Create Request

Create a new analytics report request to access detailed analytics data.
Required Flags:
  • --app - App ID (or ASC_APP_ID env)
  • --access-type - ONGOING for continuous access or ONE_TIME_SNAPSHOT for single request
Access Types:
  • ONGOING: Continuous access to analytics data (recommended)
  • ONE_TIME_SNAPSHOT: Single-use request for a specific time period

List Requests

View all analytics report requests for an app.
Optional Flags:
  • --request-id - Filter by specific request ID
  • --state - Filter by state: PROCESSING, COMPLETED, FAILED
  • --limit - Results per page (1-200)
  • --paginate - Fetch all pages automatically
  • --next - Pagination URL from previous response
Examples:

View Reports

Retrieve available analytics reports and instances for a request. asc analytics get still works as a deprecated compatibility alias, but asc analytics view is the canonical command.
Required Flags:
  • --request-id - Analytics report request ID
Optional Flags:
  • --instance-id - Filter by specific report instance
  • --date - Filter instances by date (YYYY-MM-DD)
  • --include-segments - Include download URLs for report segments
  • --limit - Results per page (1-200)
  • --paginate - Fetch all reports (recommended with --date)
  • --next - Pagination URL
Examples:

Download Report Data

Download analytics report data files.
Required Flags:
  • --request-id - Analytics report request ID
  • --instance-id - Report instance ID
Optional Flags:
  • --segment-id - Specific segment ID (required if multiple segments)
  • --output - Custom output path (default: analytics_report_{requestId}_{instanceId}.csv.gz)
  • --decompress - Decompress to .csv format
Examples:

Delete Request

Delete an analytics report request.
Required Flags:
  • --request-id - Request ID to delete
  • --confirm - Confirm deletion

Report Metadata

List Report Instances

List instances for a specific report.

View Report Details

Get detailed information about a specific analytics report.

View Relationships

List instance relationships for a report.

Report Segments

Large analytics reports are split into segments for download.

View Segment

Use segment IDs returned by asc analytics reports links --report-id "REPORT_ID" --paginate.

Vendor Number

Sales reports require a vendor number, which identifies your organization in App Store Connect. Finding Your Vendor Number:
  1. Sign in to App Store Connect
  2. Go to Payments and Financial Reports
  3. Your vendor number appears in the top right
Setting via Environment:

Report Formats

Sales Reports (TSV)

Sales reports are tab-separated value files compressed with gzip:
Use --decompress to extract the .tsv file for analysis.

Analytics Reports (CSV)

Analytics reports are comma-separated value files:

Common Workflows

Weekly Sales Analysis

Analytics Data Pipeline

  • Finance - Download financial reports
  • Insights - Weekly and daily insights from analytics and sales data
  • Performance - Access performance metrics and diagnostics

API Reference