Docs menu

Install and connect

Connect App Store Connect

Paste a team API key for App Store impressions, views and downloads.

On this page 9 sections

Paste a team API key to bring in read-only App Store impressions, product page views, downloads and their sources, plus usage for people who opted in. No SDK goes into the app.

Before you start

  • Add the app first: on Add site or app, choose Apple app and enter its bundle id. See add a site.
  • An App Store Connect role that can create API keys (Account Holder or Admin).
  • A Lundot role that can manage search sources.

What a team key can read

To keep the exposure small, give the key the Sales and Reports role and nothing wider, use it only for Lundot, and revoke it if you stop using Lundot.

Create the key

  1. In App Store Connect, open Users and Access, then Integrations, then App Store Connect API, and choose Team Keys.
  2. Add a key with the Sales and Reports role.
  3. Note the Issuer ID at the top of the page and the new key's Key ID.
  4. Download the .p8 file. Apple allows one download, so keep it until Lundot accepts it.

Connect

  1. In Lundot, open the app, then Settings, then Connections (or the app's Setup), and choose Connect App Store Connect.
  2. Enter the Issuer ID and Key ID, and add the Private key (.p8 file) with Choose .p8 file or by pasting its text.
  3. Tick the box that says you understand the key can read every app on the account.
  4. Choose Connect. Lundot checks the key can see your app's bundle id.

If the key fails, Lundot says why:

  • This is not an App Store Connect API key: check the issuer id, key id and .p8 file.
  • App Store Connect did not accept this key: check it was copied whole, or create a new one.
  • This key cannot read apps: create a key with the Sales and Reports role.
  • This key cannot see an app with that bundle id: check the bundle id and the key's access.
  • App Store Connect did not answer: try again in a few minutes.
  • That saved key was not found: paste the key again.

Admin step

Apple's analytics reports need an ongoing report request, which only an Admin key can create. Lundot reuses an existing request. If there is none, the card shows "One more step: an Admin starts the reports". An Account Holder or Admin does it once, in one of two ways:

  • Paste an Admin key once. Choose Start reports, fill in the Admin key's Issuer ID, Key ID and private key, and choose Start reports again. Lundot uses the key once and never stores it.
  • Ask an Admin to send the request below. Lundot checks again within a day.

The request is one HTTPS POST to the analyticsReportRequests endpoint, with access type ONGOING and your app, made with an Admin key:

curl -X POST https://api.appstoreconnect.apple.com/v1/analyticsReportRequests -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" -d '{"data":{"type":"analyticsReportRequests","attributes":{"accessType":"ONGOING"},"relationships":{"app":{"data":{"type":"apps","id":"APP_STORE_ID"}}}}}'

ADMIN_TOKEN is a short-lived token signed with the Admin key; APP_STORE_ID is the number in the app's store address.

What is stored and how it is protected

The .p8 key is encrypted and never shown again, as for other pasted keys. After saving, the card shows only the key id and issuer id. Lundot opens the key only to sign requests to Apple, each valid for 15 minutes.

Disconnect removes the link, and the key when no other app uses it; imported days stay. Lundot cannot revoke the key for you: revoke it in App Store Connect (Users and Access, under Integrations).

What Lundot reads

Four Apple analytics reports every day, each in a standard and a detailed form:

Report What it holds
App Store Discovery and Engagement Impressions, product page views and taps, by source, country and device
App Store Downloads First-time downloads, redownloads, updates and restores
App Sessions Sessions and active devices
App Store Installations and Deletions Installs and deletions

On connecting, Lundot also imports a one-time snapshot of history from 1 January 2024. It syncs twice a day; a newer version of a day replaces the older one.

Delays, small numbers and noise

  • First data within a day, then a delay. Apple finishes a day after 2 to 5 days, depending on the report; the newest days stay marked as arriving. The Store report's Freshness panel shows each report's completeness.
  • Small groups are hidden. Detailed reports leave out rows with fewer than 5 users or devices. Lundot shows the gap as "Below Apple's threshold, about N", never as zero.
  • Numbers are noised. Apple adds small random noise to detailed counts, typically within 2. Treat detailed numbers as approximate.
  • Usage covers opted-in people only. Sessions, installs and deletions come from people who share app analytics with developers, and are not produced on days with fewer than 5 such users. Those days show as not produced, not zero.
  • No search terms. The App Store does not report them.

Numbers appear on the Store report.

Errors and what to do

Message What to do
Apple no longer accepts the key Key revoked. Create a new key, choose Replace key.
The key can no longer read this app Key lost access. Check its role and account, then Replace key.
One more step: an Admin starts the reports Do the Admin step.
Stopped. Connect again with a key that works Apple stopped an unread report request after a long outage. Connect again; repeat the Admin step if asked.
Apple asked Lundot to slow down Nothing. Lundot retries.

Workspace owners get an email when a connection needs attention.

  • DocsStore report

    App Store and Google Play numbers, with the stores' delays and limits.

  • DocsConnect Google Play

    Invite Lundot's service account and paste the Cloud Storage URI.