# Judyrecords — 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 detailed court records including case information and statistics from a comprehensive legal database. Access specific case details and view aggregated court record stats to research legal proceedings and case outcomes.

**Category:** Government & Public Data | **Website:** [judyrecords.com/](https://judyrecords.com/) | **Docs:** [parse.bot/marketplace/ea4cc3af-7d46-4683-9a37-e9b358e7082e/judyrecords-com-api](https://parse.bot/marketplace/ea4cc3af-7d46-4683-9a37-e9b358e7082e/judyrecords-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-judyrecords-com-api-ea4cc3af/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_case

Retrieve detailed information about a specific court case by its ID. Returns comprehensive case data including general information, filings, attorneys, documents, hearings, fees, and additional parties. Some cases may have limited data depending on the source court system.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `case_id` | string | Yes | The unique case ID (alphanumeric string obtained from search_cases results, e.g. 'daisgqn2a396c'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-judyrecords-com-api-ea4cc3af/get_case \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"case_id":"<string>"}'
```

### get_stats

Get general statistics about the judyrecords database, including the total number of indexed court cases. No parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### search_cases

Full-text search across 760M+ US court cases. Initiates a server-side search job, polls for completion, then returns a page of results. Each result includes a case_id usable with get_case for full details. Paginates via integer page number; results per page are fixed by the server (typically 10).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |
| `query` | string | Yes | Search query — names, case numbers, states, or any keywords appearing in court records. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-judyrecords-com-api-ea4cc3af/search_cases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
