# NIH Guide for Grants and Contracts · Search

Get health and medical data with NIH Guide for Grants and Contracts · Search from Alexandria through one Spiral API key. Ad-hoc lookups for a user (all active R01 NOFOs from NIDA, PARs mentioning substance use disorder). Use records_list for a full snapshot. 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` / `grants-nih-gov/opportunities/search`
- Page: https://spiral.ai/tools/alexandria/grants-nih-gov/opportunities/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 |
| --- | --- | --- | --- | --- |
| `type` | one of | active, activenosis, expired, expirednosis, notices | active | type |
| `query` | text |  | — | Free text; wrap a phrase or a docnum in double quotes for an exact match. |
| `cursor` | text |  | — | cursor |
| `doctype` | one of | RFA, PA, PAR, PAS, NOSIS | — | doctype |
| `page_size` | number | 1 to 100 | 20 | page_size |
| `parent_ic` | text |  | — | Parent organization code, e.g. NIH, CDC, FDA, AHRQ. Pattern: ^[A-Za-z]{2,10}$. |
| `primary_ic` | text |  | — | Issuing IC code, e.g. NIDA, NCI, OD. Pattern: ^[A-Za-z]{2,10}$. |
| `activity_code` | text |  | — | Activity code, e.g. R01, R61, K99, `Admin Supp`. Pattern: ^[A-Za-z0-9 ]{2,12}$. |
| `notice_subject` | text |  | — | notice_subject |
| `clinical_trials` | one of | Required, Optional, Not_Allowed, Basic_Trial, Required_Infrastructure | — | clinical_trials |

## 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": "grants-nih-gov/opportunities/search",
    "input": {
      "type": "active"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=grants-nih-gov%2Fopportunities%2Fsearch

## Common questions

### NIH Guide for Grants and Contracts · Search

**How much does NIH Guide for Grants and Contracts · 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 NIH Guide for Grants and Contracts · Search through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "grants-nih-gov/opportunities/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 NIH Guide for Grants and Contracts · Search?**

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

**Can my AI agent use NIH Guide for Grants and Contracts · Search?**

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

