# Grantwatch — 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 browse thousands of grants from GrantWatch.com to find funding opportunities tailored to individuals, nonprofits, small businesses, and foundations. Get detailed grant information, filter by category, and discover newly posted grants to match your eligibility and funding needs.

**Category:** Government & Public Data | **Website:** [grantwatch.com/](https://grantwatch.com/) | **Docs:** [parse.bot/marketplace/4123d6f6-303e-4627-bc32-84a097849216/grantwatch-com-api](https://parse.bot/marketplace/4123d6f6-303e-4627-bc32-84a097849216/grantwatch-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-grantwatch-com-api-4123d6f6/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_grant_categories

List all available grant categories with their IDs, URL slugs, and display names. Use category IDs as reference for grant topic areas.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/get_grant_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_grant_detail

Retrieve full details for a specific grant by its GrantWatch ID. Returns title, metadata (deadline, grantwatch_id), and content sections. Full description and application links require a GrantWatch subscription; the is_truncated flag indicates whether content is limited for public users.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `grant_id` | string | Yes | The numeric GrantWatch ID of the grant (from search_grants results[*].id). |
| `slug` | string | No | The URL slug for the grant page. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/get_grant_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"grant_id":"<string>","slug":"<string>"}'
```

### list_grants_for_individuals

List grants filtered to recipient type 'Individuals'. Returns paginated results identical in shape to search_grants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/list_grants_for_individuals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### list_grants_for_nonprofits

List grants filtered to recipient type 'Nonprofits'. Returns paginated results identical in shape to search_grants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/list_grants_for_nonprofits \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### list_grants_for_small_businesses

List grants filtered to recipient type 'Small Businesses'. Returns paginated results identical in shape to search_grants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/list_grants_for_small_businesses \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### list_new_grants

List the most recently added or updated grants on GrantWatch. Returns a single page of the latest grants without pagination.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/list_new_grants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_foundations

Search the Foundation Directory for grant-making foundations by funder name keyword. Returns foundation name, location, mission description (when available), and URL. Paginated via page param.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | No | Search keyword to filter foundations by funder name. |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/search_foundations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>","page":"<integer>"}'
```

### search_grants

Full-text search over grant listings with optional recipient-type filter. Returns paginated results with title, description, deadline, and amount. Pagination via page param (1-based). Each result includes a GrantWatch ID usable with get_grant_detail for full metadata.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | No | Search keyword to filter grants by title or description. |
| `page` | integer | No | Page number for pagination. |
| `recipients` | string | No | Comma-separated list of recipient IDs to filter by eligible recipient type. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-grantwatch-com-api-4123d6f6/search_grants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>","page":"<integer>","recipients":"<string>"}'
```
