# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/cookcountyil/`
**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 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/credits/cookcountyil/get-department-contacts \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cookcountyil/search-code-violations \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cookcountyil/search-court-cases \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/cookcountyil/search-property-tax \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pin":"<string>"}'
```

## Next steps

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