# Opportunity Desk — 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.

> Find and access grant opportunities from Opportunity Desk with key details like deadlines, eligible countries, applicant requirements, funding amounts, and application links. Browse available grants or dive into specific grant information to identify funding that matches your needs.

**Category:** Government & Public Data | **Website:** [opportunitydesk.org/category/grants/](https://opportunitydesk.org/category/grants/) | **Docs:** [parse.bot/marketplace/698f6e64-ff4c-4f4f-93df-87dec233c7c1/opportunitydesk-org-api](https://parse.bot/marketplace/698f6e64-ff4c-4f4f-93df-87dec233c7c1/opportunitydesk-org-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-opportunitydesk-org-api-698f6e64/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_grant_details

Get detailed information about a specific grant by its slug or numeric ID. Parses the grant post content to extract structured fields: deadline, eligible countries, eligible applicants, grant amount, per-sector/individual amount details, and the external application URL. Provide either slug (from list_grants results) or id.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | No | Numeric post ID of the grant (e.g. '177274'). Obtain from list_grants results. |
| `slug` | string | No | URL slug of the grant post (e.g. 'charity-accelerator-program-2026'). Obtain from list_grants results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-opportunitydesk-org-api-698f6e64/get_grant_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","slug":"<string>"}'
```

### list_grants

List grant opportunities from Opportunity Desk with optional search filtering and pagination. Returns grant summaries including title, date, link, and excerpt. Pagination is controlled by page and per_page parameters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of results per page (1-100). |
| `search` | string | No | Free-text search query to filter grants by keyword. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-opportunitydesk-org-api-698f6e64/list_grants \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","per_page":"<integer>","search":"<string>"}'
```
