Locating public death notices and biographical records across the United States is a common necessity for genealogists, probate attorneys, historical researchers, and data analysts. Manual research on obituary databases consumes hours of repetitive searching, copying, and organizing. When tracking multiple individuals across different jurisdictions, gathering structured data like dates of birth and death, full biographical text, next-of-kin mentions, and burial locations quickly becomes inefficient.
The Legacy.com Obituary Scraper automates this workflow by extracting rich, structured obituary records directly from Legacy.com—the largest online obituary archive in the US. The actor parses public JSON-LD metadata and web pages into machine-readable datasets without requiring logins or browser automation.
What Data Can You Extract from Legacy.com?
Legacy.com aggregates notices published by funeral homes, newspapers, and families across the country. The scraper accesses obits.legacy.com to output structured fields for every matched entry, including:
-
Biographical details:
name,givenName,familyName,birthDate,deathDate, and derivedage. -
Geographic data:
cityandstate(2-letter US state codes derived from address information). -
Full textual content:
headline, shortdescription,genre,articleSection, and the completeobituaryTextwith paragraph formatting intact. -
Media and engagement:
photoUrl(main image),galleryPhotoUrls(full photo gallery arrays), andguestBookVisitscounts. -
System metadata:
obituaryId, canonicalsourceUrl,datePublished,dateCreated,dateModified, andscrapedAt.
Empty or unrecorded fields are omitted rather than filled with null placeholders, keeping your exported datasets clean.
Three Flexible Scraping Modes
The scraper offers three core operating modes to handle different data collection requirements:
1. Keyword and Name Search (search)
Search across Legacy.com's public index using names or free-text keywords via the searchQuery field. You can combine this search with date constraints (dateRangeFrom and dateRangeTo) using standard ISO YYYY-MM-DD formatting, or filter specifically by keyword using containsKeyword.
{
"mode": "search",
"searchQuery": "Patricia Miller",
"dateRangeFrom": "2026-01-01",
"dateRangeTo": "2026-12-31",
"maxItems": 30
}
2. State-Level Monitoring (browseByState)
Because the underlying search engine does not feature a native state dropdown, browseByState scans the most recent obituaries (controlled by maxPages, which processes 10 items per page) and filters for entries where the address matches your specified US state code.
{
"mode": "browseByState",
"state": "TX",
"maxItems": 50,
"maxPages": 20
}
3. Direct URL Retrieval (byUrl)
When you already have a predefined list of specific Legacy.com obituary pages (e.g., https://www.legacy.com/legacy/osea-ocasio), supply them directly in the obituaryUrls array to extract full structured details without running broader searches.
{
"mode": "byUrl",
"obituaryUrls": [
"https://www.legacy.com/legacy/osea-ocasio",
"https://www.legacy.com/legacy/karen-todd"
]
}
Practical Use Cases for Structured Obituary Data
Genealogy and Family History
Family historians often face roadblocks when tracking extended family branches. By querying specific family names alongside date filters, researchers can extract full obituary narratives containing names of surviving relatives, maiden names, places of birth, and burial locations at scale.
Legal, Probate, and Asset Management
Estate administrators, probate researchers, and asset tracing teams require official notices of death to verify status, locate potential beneficiaries, and settle claims. The scraper provides canonical links (sourceUrl) alongside publication dates for record-keeping.
Academic and Demographic Analysis
Researchers studying mortality trends, demographic shifts, or cultural memorialization practices can pull large sample sizes from specific states to analyze language patterns, longevity metrics, and historical records.
Step-by-Step Guide: Running the Scraper
Getting started with the scraper on Apify requires no programming background or local software setup:
- Open the Actor: Navigate to the Legacy.com Obituary Scraper on the Apify Store.
-
Select Operating Mode: Choose between
search,browseByState, orbyUrlin themodesetting. -
Configure Search Parameters:
- If searching by name or phrase, enter your terms in
searchQuery. - Set geographical criteria by providing a two-letter state abbreviation in
state. - Constrain timelines using
dateRangeFromanddateRangeTo(e.g.,2026-01-01).
- If searching by name or phrase, enter your terms in
-
Set Scraping Limits: Define
maxItems(e.g., 50) andmaxPages(e.g., 10) to control how deeply the actor scans recent listings. - Run the Actor and Export: Click Start. When complete, export your structured dataset in JSON, CSV, Excel, or XML directly from the Apify console, or integrate via API and webhooks.
Transparent Pay-Per-Event Pricing
The Legacy.com Obituary Scraper uses a transparent Pay-Per-Event billing model, and the platform usage (server uptime) of each run is billed separately. The events you pay for are run starts and extracted data:
-
Actor Start (
apify-actor-start): $0.005 charged once per run (based on memory allocation, minimum one event). -
Result (
apify-default-dataset-item): $0.005 per extracted obituary record on the standard FREE tier.
Apify's higher discount tiers reduce the per-result price:
- BRONZE: $0.00433 per result
- SILVER: $0.00367 per result
- GOLD / PLATINUM / DIAMOND: $0.003 per result
Extracting 1,000 complete obituary records on the base tier costs just $5.00 in result charges, plus the single start event fee and the run's platform usage.
Technical Details and Capabilities
- Pure HTTP Execution: The actor works directly over HTTP and requires no logins, cookies, or browser overhead.
-
Proxy Support: A direct connection is attempted first, engaging the optional
proxyConfigurationonly if necessary. -
Detail Fallback: If an individual detail page is temporarily inaccessible on the obituary platform, the actor preserves core listing metadata (
name,deathDate,photoUrl,snippet, andsourceUrl) rather than discarding the result. -
US Coverage: Optimized specifically for public US obituary listings served via
obits.legacy.com.
Whether you are automating probate research, conducting demographic studies, or assembling deep genealogical archives, the Legacy.com Obituary Scraper provides a fast, structured, and cost-effective data extraction pipeline.
Ready to try it yourself? Run *Legacy.com Obituary Scraper** on the Apify Store -- no setup required.*
Prices quoted above are this Actor's published pay-per-event rates on the Apify Store, read from the Apify platform API on 2026-09-11. Check the Actor page for the current rates.
Top comments (0)