When we shipped the Apogee Watcher WordPress plugin, the first customer surface was deliberate: device pairing, site-scoped reads, and Tracked pages. That path fits editors who live in wp-admin. It does not fit a five-line deploy hook, or a nightly script that should pull overview scores for one client origin and stop.
Watcher API closes that gap, and it ships on Free and every paid plan (api_read). You create long-lived Watcher API keys under Account → Watcher API, call /api/v1 with a Bearer token, and optionally enqueue lab tests under a default 20% share of monthly quota. Google PageSpeed Insights credentials stay in Watcher, so scripts never paste a Google key, and a key issued for site A cannot read site B.
What that means in practice: how Watcher API differs from the Google PageSpeed Insights API, how to create a key, which scopes matter, how the API test share works, and how WordPress Run test uses the same enqueue path.
Watcher API on Free and every paid plan
Apogee Watcher already schedules lab runs, stores history, and alerts across organisations. Watcher API lets your own tools talk to that system of record without opening the UI for every check. You keep the same multi-tenant sites and quotas; you add Bearer access for the scripts that should stay outside wp-admin.
| Capability | What you get |
|---|---|
| Watcher API keys | Long-lived Bearer tokens, one site per key, plaintext shown once at create |
| Scopes | site:read (required), optional alerts read, pages write, tests enqueue |
| Reads | Overview, pages, stored results, alerts under /api/v1/sites/{site_id}/… |
| Test jobs | POST …/test-jobs to enqueue; GET …/test-jobs/{job_id} to poll |
| API test share | Default 20% of monthly plan tests for API and WordPress Run test; Admins can raise it |
| Watcher API usage | Daily authenticated REST call counts on the Watcher API page (last 14 days) |
Keys live under Account → Watcher API in the app (/admin/api-keys). Managers and organisation Admins create and revoke them when the plan includes api_read. That feature is on Free as well as paid tiers, so connecting a script does not require an Agency automation package. Step-by-step UI copy also lives in Watcher API keys.
This is still automated web performance monitoring: schedules, budgets, and history stay in Watcher. The API adds a controlled door for scripts and CI. It is not a parallel free PageSpeed Insights farm inside every deploy pipeline.
Watcher API vs the Google PageSpeed Insights API
Search for a website performance monitoring api or a pagespeed monitoring api and you will meet three different jobs that share vocabulary.
Google PageSpeed Insights API: call Google directly with a Google developer key; you store scores yourself; you own retries, quota, and multi-tenant isolation.
Browser Web Performance API / API uptime tools: measure navigation timing in the page, or watch whether your HTTP APIs are up. Useful, and not the same as portfolio lab monitoring.
Watcher API keys: authenticate to Watcher’s REST API so you can read what Watcher already collected and, with the enqueue scope, ask Watcher to run another lab test under your plan.
| Job | Google PageSpeed Insights API | Watcher API |
|---|---|---|
| Who holds the Google credential | Your script or server | Watcher |
| Multi-site agency isolation | You build it | Watcher API keys; site A cannot read site B |
| Stored history, budgets, alerts | You build it | Already in Watcher |
| Enqueue a lab run | Direct Google call (your quota) | test-jobs under plan quota + API share |
| Fits WordPress editors | Rarely | Device pairing + optional Run test |
| Plan gate for keys | Your Google project | Free and every paid Watcher plan (api_read) |
If you are wiring a single Laravel app to Google yourself, keep how to add PageSpeed Insights monitoring in your Laravel setup open. That path is raw Google (or our open-source package) before portfolio SaaS matters. Watcher API belongs to the portfolio stage, when PageSpeed Insights versus automated monitoring already favours schedules and history over one-off Google calls from every script.
How to create a Watcher API key
Creating a key is intentionally short so secrets stay in your vault, not in a long wizard.
Sign in to the Watcher app.
Open Account → Watcher API.
Choose Create API key.
Pick the site, a short name, and scopes (read is required; add alerts, pages write, or test enqueue only when the script needs them).
Copy the full key immediately and store it in your secrets manager. Watcher stores a hash and a prefix only.
Authenticate with:
Authorization: Bearer <your-site-api-key>
against https://apogeewatcher.com/api/v1/sites/{site_id}/…. The {site_id} in the path must match the site the key was issued for. Revoke the key from the Active keys table when the script is retired or a secret may have leaked.
Default scopes on create favour read and alerts. Opt in to site:tests:enqueue only for deploy hooks that should spend test quota. Opt in to site:pages:write only for tools that adjust Tracked pages in bulk. Narrow scopes make revoke and audit simpler when a contractor leaves or a CI secret rotates.
Scopes and endpoints you can call
Think of scopes as the smallest permission set that still lets the script finish its job.
| Scope | Allows |
|---|---|
site:read | Overview, pages, stored results (required on every key) |
site:alerts:read | Open alerts for the site |
site:pages:write | Batch include or pause tracked pages |
site:tests:enqueue | Queue on-demand tests (POST …/test-jobs) |
A typical first call after create looks like this:
curl -sS -H "Authorization: Bearer $WATCHER_SITE_KEY" \
"https://apogeewatcher.com/api/v1/sites/$SITE_ID/overview"
From there you can list pages, pull stored results, or read alerts under the same site prefix. Reads do not consume monthly PageSpeed Insights test quota, but they do appear on the API usage table on the Watcher API page (authenticated REST calls per day for the organisation). That is usually enough for a deploy dashboard that only needs the latest overview before anyone spends a test.
That REST meter is not the same as Results → Site API Usage, which counts Google PageSpeed Insights runs. Agencies that mix CI polls with scheduled monitoring need both: one answers how often scripts called Watcher, the other how many lab tests you spent. Plan caps and topbar test meters are documented under Site API usage and quotas. For which lab and field numbers belong in a retainer narrative, see key metrics in web performance monitoring.
On-demand tests and the API test share
With site:tests:enqueue, a script can ask Watcher to run a lab test the same way a Manager would from the app, without opening the UI.
curl -sS -X POST \
-H "Authorization: Bearer $WATCHER_SITE_KEY" \
-H "Content-Type: application/json" \
-d '{"page_id":123,"strategies":["mobile"]}' \
"https://apogeewatcher.com/api/v1/sites/$SITE_ID/test-jobs"
Expect 202 with a poll URL when the enqueue is accepted. Poll with GET …/test-jobs/{job_id} (read scope) until the job reports pending, completed, or failed. Polling does not spend another test.
Every accepted enqueue still counts toward the organisation’s monthly test limit. Integration-triggered runs (Watcher API keys and WordPress Run test) are further limited by the API test share: by default 20% of monthly plan tests in the current anniversary window. Organisation Admins can raise that share (1–100%) from the Watcher API page. Manual Run Test in the app and the normal scheduler are not limited by the share; they still consume the monthly plan quota.
That split is deliberate. Scripts and CMS buttons should not empty the month’s budget before scheduled portfolio coverage finishes. If a deploy hook needs more headroom, raise the share once rather than handing every integration the full plan.
Over share returns a machine-readable 429. Over plan quota returns the same family of errors you already see when the UI refuses another run. Treat both as signals to trim enqueue frequency or raise plan or share, not as retries in a tight loop.
WordPress Run test on the same path
The official plugin remains the editor-facing client. Device pairing is still the right connect flow for WordPress, so do not paste a Watcher API key into wp-admin when the plugin can pair. Keys belong in CI secrets and custom clients; the plugin already has a safer grant path.
What changed for operators who already connected is the missing button. With plugin v0.3.4 (reconnect or refresh scopes so the install receives site:tests:enqueue), Tracked pages can offer Run test per included page. That control calls the same test-jobs endpoint, shows remaining plan tests and remaining API share from overview, and deep-links to the Watcher result when you want the full lab report.
The portfolio story stays coherent either way:
Pair WordPress for day-to-day evidence in wp-admin.
Use Watcher API keys for CI, internal tools, and non-WordPress clients.
Keep schedules and organisation reporting in Watcher.
WordPress.org listing can still lag self-hosted updates, so treat Watcher’s plugin ZIP and update endpoint as the current path until the directory listing catches up. Install and update steps stay as documented on the plugin release post and in Connect the WordPress plugin. After you update to v0.3.4, reconnect once if Run test does not appear, so the integration picks up site:tests:enqueue.
What is on all plans now, and what stays later
| Capability | Plans | Notes |
|---|---|---|
| Watcher API reads + Watcher API keys | Free and paid (api_read) | Managers/Admins create keys |
| WordPress device pairing | Free and paid (wordpress_integration) | Prefer pairing over pasting keys into WP |
| Enqueue via API or WordPress Run test | Free and paid (same quota + share) | Needs site:tests:enqueue |
| Org-wide service accounts, webhooks, advanced automation package | Agency+ (api_access) | Not this release |
| Hosted MCP | Later | Entitlement exists; not shipped here |
Agency api_access and MCP stay out of this announcement on purpose. API keys solve the common script and CI case without waiting for a larger automation package. Org-wide service accounts and hosted MCP remain separate entitlements when those workflows need them.
If you only need one-off Google calls inside a single codebase, stay on the Laravel or open-source path until portfolio isolation matters. When you already run Watcher for many client origins, Watcher API is the thin REST door into that portfolio. Same stance as the WordPress plugin: keep your deploy tooling, add Watcher evidence.
FAQ
Is Watcher API only on paid plans?
No. Watcher API keys and authenticated reads use api_read, which is on Free and every paid plan. Enqueue still spends the same monthly test quota (and the API test share) as the rest of the product.
Are Watcher API keys the same as a Google PageSpeed Insights API key?
No. A Watcher API key authenticates to Watcher’s /api/v1 routes. Watcher still holds the Google credential and spends your Watcher plan tests when a lab run is enqueued.
Should I put a Watcher API key in the WordPress plugin?
No. Use device pairing for the official plugin. API keys are for scripts, CI, and custom clients. Run test in WordPress uses the paired integration’s enqueue scope after reconnect.
Can one key access every site in my organisation?
No. Each key is bound to one Watcher site. Issue separate keys per origin (or per script that should only see one client).
Do overview and alert reads burn monthly test quota?
No. Reads count on the Watcher API usage table only. Enqueued lab strategies count toward monthly tests and, when triggered via API or WordPress Run test, toward the API test share.
What is the difference between Site API Usage and API usage on Watcher API?
Site API Usage (under Results) counts Google PageSpeed Insights runs. API usage on the Watcher API page counts authenticated calls to Watcher’s REST API. Both matter; they answer different questions.
Who can raise the API test share above 20%?
Organisation Admins, from the API test share section on the Watcher API page.
Try Watcher API on your plan
If you already run Watcher across client sites, open Account → Watcher API, create a read-scoped key for one non-production site, and call overview from a local shell before you wire CI. Confirm the site id in the path matches the key, then add enqueue only when a deploy hook should spend share. If you are still choosing a monitoring layer, start on Free: Watcher API and WordPress pairing are included, with the same honest quota window as the rest of the product.
Cost of waiting is familiar: deploy hooks that skip evidence, or a shared Google key that surprises you mid-month. Watcher API on every plan, with Watcher API keys and a default 20% API share, keeps scripts useful without emptying the schedule clients already depend on. Create the key when the next deploy needs a same-day lab check you can point at.
References
Watcher API keys (Apogee Watcher docs)
Site API usage and quotas (Apogee Watcher docs)
Connect the WordPress plugin (Apogee Watcher docs)
PageSpeed Insights vs Automated Monitoring: When Manual Checks Aren't Enough
How to add PageSpeed Insights monitoring in your Laravel setup
PageSpeed Insights API (Google)