# Grandmasfamily — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and explore a genealogy database containing 85 persons across 44 families to discover family relationships and connections. Find specific individuals, view their details, and track how often surnames appear throughout your family tree.

**Category:** Government & Public Data | **Website:** [grandmasfamily.com/](https://grandmasfamily.com/) | **Docs:** [parse.bot/marketplace/c81176ad-b36f-4d1e-9905-9602d63c5c14/grandmasfamily-com-api](https://parse.bot/marketplace/c81176ad-b36f-4d1e-9905-9602d63c5c14/grandmasfamily-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-grandmasfamily-com-api-c81176ad/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### count_surname

Count and list all references to a surname across both the persons index and the families index. Returns each reference with its source (persons or families) and identifiers for drill-down.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `surname` | string | Yes | Surname to search for across the genealogy database (case-insensitive). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grandmasfamily-com-api-c81176ad/count_surname \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"surname":"<string>"}'
```

### get_person

Retrieve full details for one person including parents, partners (with children), life events, and additional names. The person_id comes from search_persons results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `person_id` | string | Yes | Numeric person identifier from search_persons results (e.g. 43370242). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grandmasfamily-com-api-c81176ad/get_person \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person_id":"<string>"}'
```

### search_persons

Full-text search over the genealogy person index by name substring. Returns all persons whose name contains the query string (case-insensitive). Each result carries birth/death dates and places plus a person_id suitable for get_person drill-down.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Name substring to search for (case-insensitive match against full person name). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grandmasfamily-com-api-c81176ad/search_persons \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
