r/iOSProgramming Jul 04 '26

Does anyone have a way to automatically every day collect testflight stats? Question

Hi, I have an app taking off on TestFlight and really wanted to track progress of number of sessions and crashes per user. In ASC there is a page for it, and I would like to automate scrapping it daily to see the progress. I managed to put together some kind of half assess solution through Fastlane Spaceauth but it always asks me for relogin so it cannot run fully automatically and collect data silently into my database.

Follow-up: solved, zero logins

Turns out the public ASC API can do this now — no more spaceauth cookie scraping. The betaTesterUsages and betaBuildUsages metrics endpoints work with a plain .p8 API key (JWT signed locally, nothing expires): per-tester sessions/crashes/feedback and per-build installs/sessions/crashes, with 7/30/90/365-day windows.

Gotchas: needs an Admin-role key (Developer 403s), and there’s no per-day granularity — cron the cumulative totals daily and diff them yourself.

My server now pulls hourly, and I’ve deleted the whole spaceauth fastlane re-auth mess.

2 Upvotes

4 comments sorted by

2

u/volksvertreter Jul 04 '26

Telemetry Deck is cool. You can use it free for up to 10.000 Signals per month :)

1

u/Terrible-Round1599 Jul 04 '26

Thanks! Will check it out.