# Population allele frequencies and gene constraint (Broad Institute) · Search

Get health and medical data with Population allele frequencies and gene constraint (Broad Institute) · Search from Alexandria through one Spiral API key. To survey a gene's population variation: its loss-of-function or missense variants, the common ones, or those within a frequency band, e.g. to find known pLoF carriers in a candidate gene. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Health
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `gnomad-broadinstitute-org/variants/search`
- Page: https://spiral.ai/tools/alexandria/gnomad-broadinstitute-org/variants/search

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `gene` (required) | text |  | — | HGNC symbol ("PCSK9"), Ensembl gene ID ("ENSG00000169174", version optional) or gnomAD gene page URL. |
| `sort` | one of | position, af_desc | position | position (genomic order) or af_desc (most common first). |
| `limit` | number | 1 to 100 | 25 | Variants per page. |
| `max_af` | number | 0 to 1 | — | Keep variants with at most this allele frequency. |
| `min_af` | number | 0 to 1 | — | Keep variants with at least this allele frequency. |
| `offset` | number | 0 to 150000 | 0 | Matching variants to skip. |
| `dataset` | one of | gnomad_r4, gnomad_r3, gnomad_r2_1 | — | gnomad_r4 (v4.1, 730,947 exomes and 76,215 genomes, GRCh38; the default), gnomad_r3 (v3.1.2, 76,156 genomes, GRCh38) or gnomad_r2_1 (v2.1.1, 125,748 exomes and 15,708 genomes, GRCh37). Defaults to the dataset of a pasted browser URL, else gnomad_r4. |
| `consequences` | list |  | — | Keep these consequence categories: lof (stop gained, frameshift, splice donor or acceptor, transcript ablation), missense (also start and stop lost), inframe, synonymous, splice_region, utr, intron, other. All when absent. |
| `loftee_hc_only` | true or false |  | — | Keep only LOFTEE high-confidence pLoF variants. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "gnomad-broadinstitute-org/variants/search",
    "input": {
      "gene": "<gene>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=gnomad-broadinstitute-org%2Fvariants%2Fsearch

## Common questions

### Population allele frequencies and gene constraint (Broad Institute) · Search

**How much does Population allele frequencies and gene constraint (Broad Institute) · Search cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Population allele frequencies and gene constraint (Broad Institute) · Search through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "gnomad-broadinstitute-org/variants/search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use Population allele frequencies and gene constraint (Broad Institute) · Search?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Population allele frequencies and gene constraint (Broad Institute) · Search?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

