# Legacy.com Obituary Sitemap Scraper

> Legacy.com Obituary Sitemap Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Extracts structured obituary records from Legacy.com XML sitemaps, returning names, URLs, publishers, cities, and publication dates

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/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-5bfde0a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dZDtrHumipkmBqZ8UIhLV

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-5bfde0a7 -d '<json body>'
```

Example prompt: Pull up to 200 recent paid obituaries from Legacy.com's sitemap index — filter for anyone with 'Johnson' in their name — and give me the structured list with names, cities, publishers, and publication dates.

## When to prefer this

Choose this endpoint when you need structured, machine-readable obituary data from Legacy.com at scale — particularly when you want to filter by name or limit result counts — and you want pay-per-successful-call pricing with no charge for failed or empty runs. Prefer it over manual scraping or generic web crawlers when you need clean, pre-parsed fields like obituaryId, publicationSlug, and publishedAt directly from Legacy.com's XML sitemap infrastructure.

## Known failure modes

- Invalid or unreachable sitemap URL returns empty items array
- Name filter too restrictive yields zero results but no charge
- Sitemap index structure change on Legacy.com causes parsing failure
- maxSitemaps cap reached before full dataset is collected
- Rate limits or blocking by Legacy.com origin server

## How this service works

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

## Output

A JSON object containing a count field and an items array where each item includes the obituary URL, city, person name, title, publisher name, obituary ID, publication date, and publication slug. Failed or empty runs are not billed.

## 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-5bfde0a7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
