Can you get Screen Time in Shortcuts or automations?

Updated

Not directly. Apple's Shortcuts app doesn't include an action that returns your Screen Time total or per-app usage, on iPhone or Mac. Apps can only show Screen Time data through Apple's privacy-restricted developer framework, which displays reports inside the app but doesn't hand the numbers to Shortcuts. What you can automate is a reminder to log your usage, actions that change focus or settings, and on a Mac, a script that reads the data.

What Shortcuts can and can't do with Screen Time

Can't:

Can:

Apple's developer forums confirm the limitation from the other side: developers asking how to read a user's total screen time are pointed to a report extension that renders inside their own app rather than returning raw numbers (thread). Some third-party apps offer their own "get screen time" shortcut actions, but users report their figures don't always match Apple's report (discussion).

A simple logging automation (iPhone)

This gets you a running log with almost no effort:

  1. Open Shortcuts and create a new shortcut.
  2. Add Ask for Input with the prompt "Yesterday's screen time in minutes".
  3. Add Current Date, and Format Date set to a short date.
  4. Add Text combining the date and the number, separated by a comma.
  5. Add Append to Note (or Append to Text File in iCloud Drive) to save the line.
  6. In the Automation tab, create a Time of Day automation for each morning that runs this shortcut, set to run immediately if your iOS version allows.

Each morning, check yesterday in Settings > Screen Time (switch to Day and step back one day), type the minutes, and the line is saved. The text file opens as a CSV in a spreadsheet.

On a Mac: read the data with a script

On macOS, Screen Time data lives in system databases you can read once Terminal has Full Disk Access. A shell script with sqlite3 can export per-app, per-day usage, and you can schedule it, or run it from a Shortcuts Run Shell Script action. Screen Time CSV export has the query. Limits: the data format is undocumented and changes between macOS versions, and recent versions move much of it to Biome.

Why there's no Screen Time action

Apple treats usage data as sensitive. Screen Time data syncs between your devices end-to-end encrypted, and third-party apps only get it through a framework that keeps raw numbers inside a sandboxed report. A Shortcuts action that hands the numbers to any shortcut would bypass that design. See who can see your Screen Time.

Common questions

Can a widget show my Screen Time instead?

Yes. Apple's Screen Time widget shows today's usage on the Home Screen. It's display-only and can't feed Shortcuts. See Screen Time widget on iPhone.

Can an automation block an app after 1 hour?

Use Time Allowances (App Limits on iOS 26 and earlier) in Screen Time for that. Shortcuts can't measure usage, so it can't enforce a time-based limit reliably.

Where Screen Time History helps

Screen Time History is a Mac app that saves every day of Screen Time automatically from the day it's installed, including your iPhone when Share Across Devices is on, with a per-app, per-day export, so no manual logging or scripts are needed.


Screen Time History · Privacy · Not affiliated with Apple.