# ChgWatch Sitemap Diff

> ChgWatch Sitemap Diff is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Fetches a website's sitemap and returns URLs that have been added or removed since the last check, enabling change detection for web content monitoring.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/chgwatch/sitemapdiff?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chgwatch-sitemap-diff-c360d832
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ln6_l44QihfNeRkbQLEvY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chgwatch-sitemap-diff-c360d832
```

Example prompt: Check the sitemap at https://example.com/sitemap.xml and tell me which URLs have been added or removed recently, showing up to 200 results.

## When to prefer this

Use this endpoint when you need to detect which specific URLs have appeared or disappeared from a website's sitemap between checks — ideal for content monitoring, SEO audits, competitive intelligence, or triggering workflows on new page publication. Prefer this over generic web scraping when the site has a sitemap and you care specifically about URL-level additions and removals rather than content changes within pages.

## Known failure modes

- Invalid or unreachable sitemap URL returns an error or empty result
- Sitemap too large without 'max' parameter may cause truncation or timeout
- Sites with dynamically generated sitemaps may return inconsistent results
- Non-standard sitemap formats may not be parsed correctly
- Rate limiting or firewall on target site may block the fetch

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with a boolean 'ok' status, an 'added' array of newly detected URLs, a 'removed' array of URLs no longer present in the sitemap, and a 'urls_count' integer representing the total number of URLs found in the current sitemap snapshot.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "max": {
       "type": "integer",
       "description": "Max URLs to collect"
      },
      "url": {
       "type": "string",
       "description": "Site base URL or sitemap URL"
      },
      "submaps": {
       "type": "integer",
       "description": "Max child sitemaps to crawl"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "added": {
       "type": "array"
      },
      "stored": {
       "type": "boolean"
      },
      "removed": {
       "type": "array"
      },
      "baseline": {
       "type": "string"
      },
      "urls_count": {
       "type": "number"
      },
      "sitemaps_checked": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "added": [
   "https://example.com/new-post"
  ],
  "removed": [],
  "urls_count": 120
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chgwatch-sitemap-diff-c360d832/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
