Automating PageSpeed Insights is usually a calendar problem dressed as an API problem. The first step is moving the promise off someone’s Friday reminder; the second is deciding whether you own the API key yourself.

From calendar ritual to schedule

Most agencies do not start with a cron job. They start with a habit: paste the homepage into pagespeed.web.dev, screenshot mobile, drop it in Slack, repeat next week if nobody is on holiday. That habit works until the client count rises or a deploy lands on a day nobody ran the check. Automation means the same URLs get a dated run whether or not someone remembered. It does not mean deleting PSI from the kit for one-off investigations.

Write down the ritual you have today before you change tools: who runs checks, which URLs, how often, where artefacts land. Then pin that set (or a saner money-page set) on a schedule. Run in parallel for a few weeks so you can see what the calendar was missing. Retire the reminder only after the schedule has proven itself.

DIY API automation vs a product

Google publishes a PageSpeed Insights API you can call with a key. A small script can hit a URL list and store JSON. That path is honest for a single site or a personal project. At agency scale it becomes key management, quota maths, retries when Google returns errors, storage of history, and a UI clients can open without SSH. Those are product problems. Apogee Watcher exists so you schedule PSI-family runs without holding the key yourself for every client host.

If you are weighing DIY, read PageSpeed Insights API limits for the quota and multi-site arithmetic. Do not invent comfort from a free UI that never showed you a key. Google publishes quota limits; check current docs before you design a schedule around a number you saw on a forum.

Ops footguns to expect

What “done” looks like

The calendar reminder for obligatory portfolio checks is gone. PSI remains for spot checks and public links. History lives in one place with organisations and roles. When something regresses, you open a dated lab series first, then dig with diagnostics if you need a waterfall. See PSI vs scheduled monitoring for the decision split, and replacing manual PSI checks for the migration narrative.

A minimal automation plan

  1. List money URLs and strategies (mobile/desktop) per client.
  2. Choose a cadence you can defend in a SOW.
  3. Put them on a schedule (product or carefully scoped DIY).
  4. Run parallel with the old calendar ritual for two to four weeks.
  5. Fix access issues (Cloudflare allowlists, auth) as they appear.
  6. Retire obligatory manual PSI runs for the pinned set.
  7. Keep PSI for spot checks forever.

That plan is deliberately boring. Boring is how portfolios stay watched.

Keep humans in the loop

Automation removes obligatory clicking. It does not remove interpretation. Someone still decides whether an alert is a real regression, an access issue, or a third-party incident. Write that triage step down. Otherwise you have replaced a calendar ritual with an ignored inbox.