# Justice — 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 retrieve official U.S. Department of Justice press releases. Find information on DOJ announcements, enforcement actions, settlements, and legal proceedings across all topic areas. Access full press release details including case summaries, entities involved, and filing dates.

**Category:** Government & Public Data | **Website:** [justice.gov/news/press-releases](https://justice.gov/news/press-releases) | **Docs:** [parse.bot/marketplace/e588395c-5108-4813-af50-61d1f3f1020b/justice-gov-api](https://parse.bot/marketplace/e588395c-5108-4813-af50-61d1f3f1020b/justice-gov-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-justice-gov-api-e588395c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_press_release_detail

Get full details of a specific DOJ press release including the complete body text, settlement amount, location, topics, and components. The path parameter is the URL path from search_press_releases results. Returns the full article text and extracted metadata.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `path` | string | Yes | Path to the press release from search_press_releases results[*].url (e.g., '/opa/pr/antitrust-division-and-us-postal-service-award-first-ever-1m-payment-whistleblower-reporting') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-justice-gov-api-e588395c/get_press_release_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"path":"<string>"}'
```

### search_press_releases

Search DOJ press releases by keyword with optional date filtering and pagination. Returns structured results including title, date, summary, settlement amount (if mentioned), entity name, and location. Results are paginated at 12 per page. Paginates via integer page counter. Each result includes a URL path usable with get_press_release_detail for full text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `end_date` | string | No | Filter results until this date (format: mm/dd/yyyy). Omitting returns results up to present. |
| `max_pages` | integer | No | Maximum number of pages to fetch |
| `page` | integer | No | Page number (0-indexed, 12 results per page) |
| `query` | string | No | Search keywords (e.g., 'antitrust', 'civil rights', 'settlement', 'indictment') |
| `sort_by` | string | No | Sort order for results. |
| `start_date` | string | No | Filter results from this date (format: mm/dd/yyyy). Omitting returns results from all dates. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-justice-gov-api-e588395c/search_press_releases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_date":"<string>","max_pages":"<integer>","page":"<integer>","query":"<string>","sort_by":"<string>","start_date":"<string>"}'
```
