# Cookcountyil — 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 Cook County property tax records, look up court cases, find code violations, and get department contact information all in one place. Quickly access public records and government contacts without navigating multiple websites.

**Category:** Government & Public Data | **Website:** [cookcountyil.gov/](https://cookcountyil.gov/) | **Docs:** [parse.bot/marketplace/eaabc68b-e029-4126-b2e0-c35de610d943/cookcountyil-gov-api](https://parse.bot/marketplace/eaabc68b-e029-4126-b2e0-c35de610d943/cookcountyil-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-cookcountyil-gov-api-eaabc68b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_department_contacts

Fetch contact information for all Cook County departments and agencies. Returns a list of agencies with names and URLs. The first three agencies are enriched with phone, email, address, and director details where available from their detail pages.

**Estimated cost:** Metered

_No parameters required._

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

### search_code_violations

Returns the Cook County DACRA code violations portal URL and the provided ticket number. The portal URL can be used to look up violation details online.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `ticket_number` | string | Yes | Ticket or notice number to look up on the DACRA violations portal. |

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

### search_court_cases

Search for civil, law, chancery, and domestic court cases by case number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `case_number` | string | Yes | Case number to search for, e.g. '2023L001234' |
| `division` | string | No | Division code: 1=Civil, 2=Law, 3=Chancery, 4=Domestic Relations |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cookcountyil-gov-api-eaabc68b/search_court_cases \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"case_number":"<string>","division":"<string>"}'
```

### search_property_tax

Search for property tax records using a Property Index Number (PIN). Note: Currently unavailable due to upstream TLS certificate issue.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `pin` | string | Yes | Property Index Number (PIN), e.g. '17321100010000' |

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