← 返回
数据分析 Key 中文

Familysearch

Search and analyze family history using the FamilySearch API or offline GEDCOM files for genealogy, ancestors, family trees, and historical records.
使用 FamilySearch API 或离线 GEDCOM 文件搜索并分析族谱、祖先及历史记录。
keylimesoda
数据分析 clawhub v1.0.3 1 版本 100000 Key: 需要
★ 0
Stars
📥 640
下载
💾 10
安装
1
版本
#latest

概述

FamilySearch Genealogy Skill

Two modes of operation:

  1. Live API (primary) — Query FamilySearch directly for person search, pedigree, descendants, historical records
  2. Offline GEDCOM — Parse exported .ged files for local exploration, narratives, and statistics

Mode 1: FamilySearch API (Primary)

Prerequisites

  1. FamilySearch Account — Free at
  2. Developer App Key — Register at
  3. OAuth 2.0 Access Token — Via authentication flow below

Store credentials:

Option A — Environment variable (all platforms):

export FAMILYSEARCH_TOKEN="<TOKEN>"

Option B — macOS Keychain:

security add-generic-password -a "familysearch-app-key" -s "openclaw-familysearch" -w "<APP_KEY>"
security add-generic-password -a "familysearch-token" -s "openclaw-familysearch-token" -w "<TOKEN>"

The script checks FAMILYSEARCH_TOKEN env var first, then falls back to macOS Keychain.

Authentication

OAuth 2.0 Authorization Code flow:

  1. Direct user to: https://ident.familysearch.org/cis-web/oauth2/v3/authorization?response_type=code&client_id={APP_KEY}&redirect_uri={REDIRECT_URI}
  2. User logs in, grants access
  3. Exchange code for token:
  4. curl -X POST "https://ident.familysearch.org/cis-web/oauth2/v3/token" \
      -d "grant_type=authorization_code&code={AUTH_CODE}&client_id={APP_KEY}"
    
  5. Store returned access_token in Keychain

Sandbox for testing: https://integration.familysearch.org / https://api-integ.familysearch.org

API Usage

python scripts/familysearch.py <command> [args]
CommandDescription
----------------------
search --given John --surname Lewis --birth-place OregonSearch persons in Family Tree
person Get person details
ancestry --generations 4Ascending pedigree (1-8 generations)
descendants --generations 2Descending tree
parents Get parents
spouses Get spouses
children Get children

Search parameters: --given, --surname, --birth-date, --birth-place, --death-date, --death-place, --sex

Results use GEDCOM X format (JSON). Key fields: persons[].id, persons[].display.name, .birthDate, .birthPlace, .deathDate, .deathPlace.

Ahnentafel numbering in ancestry: 1=subject, 2=father, 3=mother, 4=paternal grandfather, etc.

Mode 2: Offline GEDCOM Files

For exported .ged files from FamilySearch, Ancestry, MyHeritage, etc. No API key needed — pure offline.

Getting a GEDCOM File

FamilySearch: familysearch.org → Family Tree → Tools → Export GEDCOM

Usage

python scripts/gedcom_query.py <gedcom_file> <command> [args...]
CommandDescription
----------------------
search Fuzzy name search — returns matches with IDs
person Full profile: birth, death, parents, spouses, children
ancestors [depth]Pedigree chart up (default: 4 generations)
descendants [depth]Pedigree chart down (default: 3 generations)
story Narrative biography paragraph
timeline Chronological life events
statsTree summary: counts, surnames, birth decades, completeness
find-date Find people born/died in a given year
common-ancestor Find closest common ancestor

id_or_name: GEDCOM ID (e.g., I001) or partial name (fuzzy, case-insensitive).

Narrative Genealogy

Beyond data retrieval, this skill supports narrative genealogy — connecting facts to stories:

  • Note occupations, migrations, life events when exploring a tree
  • Cross-reference API/GEDCOM data with stories the user shares conversationally
  • Build family narratives that explain why — not just dates and names
  • Flag research opportunities: missing records, undocumented branches, conflicting dates
  • Use story command (GEDCOM mode) for auto-generated biographical narratives

Agent Workflow

  1. User asks about family history → Check if they have a FamilySearch account (API) or GEDCOM file (offline)
  2. API mode: Search by name → get person ID → explore ancestry/descendants/relationships
  3. GEDCOM mode: Load file → search → explore
  4. Either mode: Combine structured data with user's oral history for richer narratives
  5. Cross-reference: Use API to find records that fill gaps in GEDCOM data

Rate Limits & Best Practices

  • FamilySearch API is free but rate-limited — cache results locally
  • Never store FamilySearch usernames/passwords — OAuth tokens only
  • Tokens expire; re-authenticate on 401 responses
  • GEDCOM parser handles files up to ~100K individuals
  • File encoding: auto-detects UTF-8 (with BOM), UTF-8, latin-1

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-30 01:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,799
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,965
productivity

Last30Days Community Intelligence for OpenClaw

keylimesoda
OpenClaw改编自@mvanhorn的last30days技能,可在最近30天内对任意主题在Reddit、X、YouTube、TikTok、Instagram、Hacker News、Poly...等平台进行调研。
★ 0 📥 1,624