# Defense Innovation Unit — 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.

> Browse and search the Defense Innovation Unit's catalog of commercial technology solutions prototyped for the Department of Defense. Retrieve catalog entries by keyword or explore the full listing across project names, vendor names, portfolios, and technology areas.

**Category:** Government & Public Data | **Website:** [www.diu.mil/](https://www.diu.mil/) | **Docs:** [parse.bot/marketplace/a794a451-cc38-4965-9091-a0593e289549/diu-mil-api](https://parse.bot/marketplace/a794a451-cc38-4965-9091-a0593e289549/diu-mil-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-diu-mil-api-a794a451/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_catalog

Retrieve DIU commercial solutions catalog entries with optional keyword filtering. Paginates automatically through results. Each entry represents a prototyped commercial technology solution available to DoD. Without a query, returns all entries; with a query, filters across project names, vendor names, portfolios, and key terms. Results are ordered by year referenced (newest first).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return. |
| `offset` | integer | No | Starting offset for pagination. |
| `query` | string | No | Search keyword to filter catalog entries across project names, vendor names, portfolios, and key terms. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-diu-mil-api-a794a451/get_catalog \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>"}'
```

### search_catalog

Search the DIU catalog by keyword. Returns matching entries across project names, vendor names, portfolios, and key terms. Requires a non-empty query string. Returns up to the specified limit of results in a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return. |
| `query` | string | Yes | Search keyword (e.g., 'cyber', 'AI', 'drone'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-diu-mil-api-a794a451/search_catalog \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```
