# Justia — 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.

> Access Justia's legal database: search the lawyer directory by practice area and location, retrieve attorney profiles, browse state statutes and case law, explore legal guides, and look up law schools — all in one API.

**Category:** Government & Public Data | **Website:** [justia.com/](https://justia.com/) | **Docs:** [parse.bot/marketplace/af15a2e9-3f96-48c1-ae38-d02d1a0b06af/justia-com-api](https://parse.bot/marketplace/af15a2e9-3f96-48c1-ae38-d02d1a0b06af/justia-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-justia-com-api-af15a2e9/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_case_detail

Get details of a specific court case or opinion by path. The path must match a valid case on law.justia.com/cases/. Returns the case title and full opinion text with original formatting (whitespace, line breaks) preserved, allowing regex-based separation of majority, concurring, and dissenting opinions. Covers federal and state appellate courts.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `path` | string | Yes | Path to the case (e.g. federal/appellate-courts/ca9/20-70424/20-70424-2024-12-31.html). Must match a valid case on law.justia.com/cases/. |

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

### get_law_schools_list

List US states that have law school pages on Justia. Each entry provides the state name and a link to the state-specific law schools directory page. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### get_lawyer_profile

Get detailed profile for a specific lawyer by slug. Returns biography, practice areas, education, contact information, fees, languages, and other profile details. The slug is the last path segment of a lawyer's Justia profile URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Lawyer slug (e.g. adam-leitman-bailey-1236057) or full profile URL (e.g. https://lawyers.justia.com/lawyer/adam-leitman-bailey-1236057). |

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

### get_legal_guides

Browse legal guide topics available on Justia. Returns a deduplicated list of guide topics with links. Topics span family law, employment, real estate, criminal law, and more. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### get_state_statutes_index

Get available years for a state's statutes on Justia. Returns year entries with links to each year's code. Useful for discovering which years of statutory code are available before fetching specific sections.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `state` | string | Yes | State name in lowercase with hyphens (e.g. california, new-york, texas). |

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

### get_statute_section

Get the full text of a specific statute section by path. The path must correspond to a valid section on law.justia.com/codes/. Returns the section title, citation if available, and full statutory text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `path` | string | Yes | Path to the statute section (e.g. california/2024/code-civ/division-3/part-4/title-5/chapter-2/section-1940/). Must match a valid path on law.justia.com/codes/. |

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

### list_lawyers_by_state

List lawyer directory categories and links for a state, organized by Practice Areas, Cities, and Counties tabs. Useful for discovering the category structure of a state's lawyer directory before drilling into specific categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `state` | string | Yes | State slug in lowercase with hyphens (e.g. new-york, california, texas). |

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

### search_lawyers

Search for lawyers by practice area or name and location on Justia's lawyer directory. Returns paginated results with basic lawyer information including name, phone, rating, and profile URL. Pagination via page number. Results vary by query specificity; omitting both query and location returns a broad directory listing.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | Location to search in (city, state). |
| `page` | integer | No | Page number for pagination. |
| `query` | string | No | Practice area or lawyer name to search for. |

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