# Losangelescounty — 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 Los Angeles County public records, code violations, and department information, while accessing board meeting minutes, transcripts, and agendas all in one place. Quickly find contact details for county departments and stay informed on official meetings without navigating multiple county websites.

**Category:** Government & Public Data | **Website:** [losangelescounty.gov/](https://losangelescounty.gov/) | **Docs:** [parse.bot/marketplace/417aada4-f2ca-4b55-9123-eeec308bc5fb/losangelescounty-gov-api](https://parse.bot/marketplace/417aada4-f2ca-4b55-9123-eeec308bc5fb/losangelescounty-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-losangelescounty-gov-api-417aada4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_board_meeting_agendas

Retrieve Board of Supervisors meeting agendas by scraping the BOS agendas page. Returns links to agenda PDF documents for upcoming and recent past meetings.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-losangelescounty-gov-api-417aada4/get_board_meeting_agendas \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_code_violations

Extract code violation records from the LA County ArcGIS Feature Services. Supports Rental Housing Habitability Program (RHHP) and general housing violations.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `dataset_type` | string | No | Dataset type: 'rental_housing' (default) or 'housing' (hotels/motels/MFDs) |
| `limit` | integer | No | Maximum number of records to return |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-losangelescounty-gov-api-417aada4/get_code_violations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dataset_type":"<string>","limit":"<integer>"}'
```

### get_county_departments

Extract contact information (name, email, website, phone, address) for all LA County departments from the official directory page. Returns a comprehensive list of departments, commissions, and affiliated agencies.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-losangelescounty-gov-api-417aada4/get_county_departments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_meeting_minutes

Retrieve Statement of Proceedings (Minutes) from the Board of Supervisors meeting records. Searches the Algolia-backed BOS repository filtered to SOP documents. Returns results ordered by relevance when a query is provided, or chronologically when no query is given. Each result includes a content preview extracted from the PDF text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return. |
| `query` | string | No | Search keyword for minutes content. Empty string returns all minutes. |

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

### get_meeting_transcripts

Retrieve meeting transcripts from the Board of Supervisors. Searches the Algolia-backed BOS repository filtered to Transcript documents. Returns results ordered by relevance when a query is provided. Each result includes a content preview from the transcript text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return. |
| `query` | string | No | Search keyword for transcript content. Empty string returns all transcripts. |

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

### search_county_records

Search across all public records in the LA County BOS repository (Minutes, Transcripts, Supporting Documents). Returns results ordered by relevance. Covers the entire indexed corpus including board letters, motions, and supplemental documents.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return. |
| `query` | string | Yes | Search keyword (required). |

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