# City of Cincinnati Open Data: building permits, contractors and code enforcement · Search code cases

Search property, job and marketplace listings with City of Cincinnati Open Data: building permits, contractors and code enforcement · Search code cases from Alexandria through one Spiral API key. Violations, vacant building orders or open complaints at a Cincinnati address before or after a permit search; new or changed cases since a date in a neighborhood. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Listings
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `data-cincinnati-oh-gov/building-permits/search_code_cases`
- Page: https://spiral.ai/tools/alexandria/data-cincinnati-oh-gov/building-permits/search_code_cases

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `sort` | one of | entered_desc, updated_desc | — | Order, newest first, missing values last. Defaults to entered_desc, or updated_desc when only updated_since is given. |
| `limit` | number | 1 to 100 | 25 | Records per page. |
| `agency` | text |  | — | Agency words, for example Buildings and Inspections, Public Services, Health, Forest Park. |
| `cursor` | text |  | — | The next_cursor of the previous page. Pattern: ^[0-9]{1,7}$. |
| `status` | text |  | — | Words matched against the status, its code and class, for example open, Closed, Orders Issued, Citation. |
| `address` | text |  | — | Site street address, case-insensitive, words matched in order: 609 Walnut St, 2421 May. Only the part before a comma is used; spelled-out directions and street types become the city's abbreviations (West -> W, Avenue -> AV) and a leading house number is matched exactly, so 609 does not match 1609. |
| `case_type` | text |  | — | Words matched against the complaint type, subtype and category, for example Tall Grass, Vacant, Zoning, Graffiti, Buildings with Residences. |
| `neighborhood` | text |  | — | Neighborhood words, case-insensitive, for example Walnut Hills, Westwood. |
| `entered_since` | text |  | — | First entry date, inclusive (YYYY-MM-DD). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `entered_until` | text |  | — | Last entry date, inclusive (YYYY-MM-DD). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `updated_since` | text |  | — | Cases whose last_updated date is on or after this day (YYYY-MM-DD; the city publishes day precision). Without entry-date filters the default sort becomes updated_desc. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "data-cincinnati-oh-gov/building-permits/search_code_cases",
    "input": {
      "sort": "entered_desc"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=data-cincinnati-oh-gov%2Fbuilding-permits%2Fsearch_code_cases

## Common questions

### City of Cincinnati Open Data: building permits, contractors and code enforcement · Search code cases

**How much does City of Cincinnati Open Data: building permits, contractors and code enforcement · Search code cases cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use City of Cincinnati Open Data: building permits, contractors and code enforcement · Search code cases through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "data-cincinnati-oh-gov/building-permits/search_code_cases"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use City of Cincinnati Open Data: building permits, contractors and code enforcement · Search code cases?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use City of Cincinnati Open Data: building permits, contractors and code enforcement · Search code cases?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

