# Which external services could break your page?

Find external scripts, forms and browser requests. Use your page-watch pass to follow changes and verifiable domain expiry.

PageAudit · Updated 2026-11-07

## Step 1. Start with the free inventory

Audit the page and open Dependencies. The inventory shows the addresses found, where they appeared and the observation date. Reading the saved result does not charge for another collection. In the API, read GET /api/audits/:id/dependencies with your audit credential. In MCP, use audit_dependencies. The script below follows the API path; it needs Node 18 or newer and no package.

```js
// Lists the external services PageAudit found on a page.
// Usage: node page-dependencies.mjs https://example.com/
const origin = "https://pageaudit.online";
const page = process.argv[2] ?? "https://example.com/";
// The guest credential owns the audit: its saved result can be read again.
const guest = await fetch(`${origin}/api/guest`, { method: "POST" });
const { token } = await guest.json();
const response = await fetch(`${origin}/api/audit`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ url: page, guest_token: token }),
});
const audit = await response.json();
if (response.status === 402 || response.status === 429) {
  console.warn("No free PageAudit audits left today. Try again tomorrow.");
} else if (!response.ok) {
  console.error(`PageAudit answered ${response.status}: ${audit.error}`);
  process.exitCode = 1;
} else {
  let next = `${origin}/api/audits/${audit.id}/dependencies`;
  while (next) {
    const read = await fetch(next, { headers: { "X-Guest-Token": token } });
    if (!read.ok) throw new Error(`Inventory answered ${read.status}`);
    const { inventory } = await read.json();
    for (const item of inventory.items) {
      console.log(`${item.hostname}: ${item.relationship}`);
    }
    next = inventory.next;
    if (!next) console.log(`External dependencies: ${inventory.total}`);
  }
}
```

## Step 2. Include what the browser loaded

Run the free lab test and reopen the inventory. Browser requests add files loaded by JavaScript and their observed HTTP status. HTML and browser evidence stay distinct. The test covers this page load; it does not exercise every checkout or signed-in journey.

## Step 3. Use a watch for continuing work

Enable the page watch with a Starter, Pro or Agency pass. The same pass includes registration, DNS and CNAME checks, before/after history and notices. Browser tests follow the page's audits and the existing PageSpeed quota. Domains enter the refresh queue every six hours. In the API, use POST /api/tabs/:id/dependencies with enabled: true. In MCP, use watch_dependencies. The operation reuses the pass and never buys another automatically.

## Step 4. Decide with the source and coverage

When the registry publishes expiry, the watch sends reminders at 30, 15 and 7 days. An unavailable source or missing date stays unknown. Expiry and DNS failure call for review and action by the operator; they do not prove account takeover. Payment keeps collection, comparison and notices running after the audit. We have not measured token savings for an equivalent task. References: https://www.iana.org/rdap and https://developers.google.com/speed/docs/insights/v5/about.

[Audit a page](https://pageaudit.online/)

[Which external services could break your page?](https://pageaudit.online/guides/external-dependencies)
