# Justice — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/justice/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/justice/get-press-release-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/justice/search-press-releases \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"end_date":"<string>","max_pages":"<integer>","page":"<integer>","query":"<string>","sort_by":"<string>","start_date":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.