CiteLeads API documentation
Pull Austin code violation cases, permits and per-property history straight into your own tools. Base URL: https://citeleads.com/api/v1
Overview
The CiteLeads API serves the same City of Austin data as the daily alerts and weekly files: open code cases with a pressure score, the hot slice, recently issued permits, and the full case history of any property. Responses are JSON, or CSV on request.
Pressure score is a 0–100 ranking of how much pressure a case puts on its owner. It combines three things: the age of the case (up to 60 points), a serious case type (25 points) and repeat-offender status (15 points).
Hot slice (the hot flag) marks cases that are Active, open 30+ days, and either a serious type or tied to a repeat offender.
By design, the data contains no owner names, no inspector data and no phone numbers. CiteLeads sells the property signal, not skip tracing.
Authentication
Founding subscribers receive a personal API token in the welcome email. Send it as a bearer token on every request:
Authorization: Bearer YOUR_TOKENDownload links under /dl/* also accept the token as a query parameter: ?token=YOUR_TOKEN. Keep your token private. A missing or invalid token returns 401.
Endpoints
All paths are relative to https://citeleads.com/api/v1. Defaults: limit=500, offset=0, format=json.
| Method | Path | Parameters | Description |
|---|---|---|---|
| GET | /cases | limit, offset, format (json | csv) | All open (Active) code cases with pressure score. |
| GET | /cases/new | days (1–90, default 7), limit, offset, format | Open cases opened within the last N days. |
| GET | /hot | limit, offset, format | The hot slice only: Active, 30+ days, serious type or repeat offender. |
| GET | /permits | limit, offset, format | Recently issued construction permits. |
| GET | /property/history | address (required) | Every case the city has opened on a property, open and closed, oldest first. |
List endpoints return { data_date, total, limit, offset, cases | permits }. total is the match count before paging. The history endpoint returns { address_key, total_cases, cases } and 404 when the property has no cases. Unit/Bldg/Ste/Apt suffixes on the address are ignored.
Downloads
Full files, refreshed with the daily pipeline, for loading into a spreadsheet or database. Authenticate with the bearer header or the ?token= parameter.
| Path | Contents |
|---|---|
https://citeleads.com/dl/cases.csv | Open cases, hot slice first, pressure-scored. |
https://citeleads.com/dl/permits.csv | Recently issued permits. |
https://citeleads.com/dl/history.csv | Every case ever opened, per property. |
The download files are not subject to the 5,000-row API cap.
Examples
Cases as JSON (first 100):
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://citeleads.com/api/v1/cases?limit=100"Cases as CSV:
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://citeleads.com/api/v1/cases?format=csv&limit=5000" -o cases.csvNew cases from the last 7 days:
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://citeleads.com/api/v1/cases/new?days=7"Hot slice only (first 100):
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://citeleads.com/api/v1/hot?limit=100"Property history:
curl -G -H "Authorization: Bearer YOUR_TOKEN" \
--data-urlencode "address=123 MAIN ST" \
"https://citeleads.com/api/v1/property/history"Full file download:
curl -o cases.csv "https://citeleads.com/dl/cases.csv?token=YOUR_TOKEN"Response fields
Cases (/cases, /cases/new, /hot, dl/cases.csv)
| Field | Meaning |
|---|---|
case_id | City case number. |
address | Property address as recorded by the city, lightly formatted. |
zip | ZIP code. |
opened_date | Date the case was opened (YYYY-MM-DD). |
days_open | Days since the case opened. |
violation_type | City case type: Structure Condition Violation(s), Property Abatement, Work Without Permit, Land Use Violation(s). |
repeat_offender | "Yes" when flagged in the city's Repeat Offender Program data. |
pressure_score | 0–100 score: age + serious type + repeat offender. |
hot | true/false in JSON; "Yes" or blank in CSV. See hot slice above. |
parcel_id | County parcel identifier. |
lat | Latitude. |
lon | Longitude. |
source | Data source attribution: the City of Austin open dataset the row comes from (Code Complaint Cases, 6wtj-zbtb). Only in /dl/cases.csv; not returned by the API. |
Column differences. The API CSV (/cases?format=csv, /cases/new, /hot) and the JSON responses have 12 fields, case_id through lon, in the order above. The download file /dl/cases.csv has the same 12 columns in the same order plus a 13th, source, at the end.
Permits (/permits, dl/permits.csv)
| Field | Meaning |
|---|---|
permit_number | City permit number. |
address | Permit location. |
zip | ZIP code. |
permit_type | Permit type. |
class | Permit class. |
work_class | Work class (e.g. new, remodel, demolition). |
issue_date | Issue date (YYYY-MM-DD). |
status | Current permit status. |
description | Permit description. |
source_url | Link to the public source record. |
Property history cases (/property/history)
| Field | Meaning |
|---|---|
case_id | City case number. |
address | Property address. |
zip | ZIP code. |
opened_date | Opened date. |
status | Case status in the city system. |
violation_type | City case type. |
repeat_offender | Repeat-offender flag. |
/dl/history.csv has these seven fields in the order above, preceded by a leading address_key column (the normalized address used for the property lookup, e.g. 1111 W 9TH ST), one row per case.
Notes & limits
- Each request returns at most 5,000 rows. Use the
/dlfiles for the full data. - Data refreshes daily, after the 06:00 CT pipeline run. The
data_datefield shows the snapshot date. - Paginate with
limitandoffset: request offset 0, 500, 1000… until offset passestotal. - Coverage is the City of Austin. Case statuses change daily; verify against the public source before acting.
Errors
| Status | Meaning |
|---|---|
401 | Missing or invalid token (also returned for deactivated tokens). Body: {"error":"unauthorized — missing or invalid token"} |
400 | /property/history called without an address. |
404 | Unknown endpoint, property not found, or file not published yet. |