# Legacy.com Obituary Sitemap Scraper (x402)

> Legacy.com Obituary Sitemap Scraper (x402) is a paid API for AI agents from x402.186-241-26-229.sslip.io, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Scrapes Legacy.com XML sitemaps to return structured obituary records including name, URL, city, publisher, and publication date, billed only on successful non-empty runs.

## Facts

- Endpoint: POST https://x402.186-241-26-229.sslip.io/v1/legacy?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/legacy-com-obituary-sitemap-scraper-x402-26d3d013
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_whMTUa_heKmW9Jso5m8B3

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 legacy-com-obituary-sitemap-scraper-x402-26d3d013 -d '<json body>'
```

Example prompt: Pull up to 50 obituaries from the Legacy.com recent paid-obituary sitemap where the name contains 'Johnson', checking up to 5 sitemap documents.

## When to prefer this

Choose this endpoint when you need structured, machine-readable obituary records from Legacy.com without building your own sitemap parser. It is ideal for genealogy lookups, monitoring recent death notices, or finding obituary URLs by name — and the pay-only-on-success model makes it low-risk for exploratory queries.

## Known failure modes

- Invalid or unreachable sitemap URL returns an error or empty result with no charge
- nameContains filter too specific yields zero items and no charge
- maxSitemaps set too low misses recent entries
- Legacy.com changes sitemap structure breaking parsing
- Network timeout on large sitemap indexes
- Rate limiting or blocking by Legacy.com

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of matched records and an array of items, each containing the obituary URL, deceased person's name, city, title, publisher name, obituary ID, publication date, and publication slug. Returns an empty items array (and no charge) if no records are found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "maxItems": {
   "type": "integer",
   "default": 100,
   "minimum": 0,
   "description": "Maximum dataset rows across all sitemap URLs. Set 0 for no item cap; maxSitemaps still limits the crawl."
  },
  "startUrls": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "One or more public Legacy.com XML sitemap or sitemap-index URLs. The prefilled recent paid-obituary index includes titles and publication dates; publication-specific and general obituary sitemaps also work."
  },
  "maxSitemaps": {
   "type": "integer",
   "default": 10,
   "maximum": 100,
   "minimum": 1,
   "description": "Maximum XML documents to read, including sitemap indexes. The recent paid-obituary index currently points to several URL sets."
  },
  "nameContains": {
   "type": "string",
   "default": "",
   "description": "Optional case-insensitive text filter on the name in sitemap metadata or the obituary URL slug. It does not query Legacy.com's search pages."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "url": null,
    "city": null,
    "name": null,
    "title": null,
    "publisher": null,
    "obituaryId": null,
    "publishedAt": null,
    "publicationSlug": null
   }
  ],
  "product": "legacy"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/legacy-com-obituary-sitemap-scraper-x402-26d3d013/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.186-241-26-229.sslip.io](https://www.zero.xyz/host/x402.186-241-26-229.sslip.io/llms.txt)
