> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Establishments

> Named businesses and operators at an address or in an area, from public registers: bank branches, licensed premises, contractor licences by licence number, care facilities, schools, industrial sites, fuel stations and airports, plus business openings and closings from city registers and store sales where states publish them. Each with its source, coverage by state and the property it stands on.

GET`/v1/find/establishments`POST`/v1/find/establishments`

Establishments are a type of [find](/docs/api/find.md), so they take the same `where`, `in`, `near`, `lat` and `lng`, `radius_m`, `limit` and `cursor`. `limit` goes up to 100 rows a call; follow `next_cursor` for more.

## Kinds

Every row has one `kind`. Ask for one with `where=kind = bank_branch`, or several with `where=kind in bank_branch,credit_union`. With no `kind` clause you get every kind.

| Value | What it is |
| - | - |
| `bank_branch` | An office of an FDIC-insured bank (FDIC BankFind) |
| `credit_union` | A credit union office (NCUA) |
| `liquor_license` | A retail alcohol licence at a premises (state alcohol boards), with its sales where published: Texas mixed beverage receipts, Oregon liquor store sales, Iowa spirits sales to the store (details.monthly, details.yearly, details.last\_12\_months\_\*) |
| `snap_retailer` | A store authorized to take SNAP (USDA); stores whose authorization ended since 2005, with opened\_on and closed\_on, are read when a search asks for closings (closed\_on) |
| `pharmacy` | A pharmacy |
| `medical_practice` | A medical, dental or therapy practice location (NPPES, CMS) |
| `care_facility` | A nursing home, hospital, dialysis, home health, hospice or surgery centre (CMS) |
| `health_center` | A federally qualified health centre site (HRSA) |
| `child_care` | A licensed child-care centre or Head Start site |
| `school` | A college campus or private school (NCES) |
| `post_office` | A post office |
| `government_facility` | A government site: a federal prison or detention centre, courthouse, DMV office, VA benefits office, Vet Center or national cemetery |
| `nonprofit` | A tax-exempt organization's filing address (IRS) |
| `industrial_facility` | An EPA-regulated or greenhouse-gas reporting facility, with its parent company where reported (EPA ECHO, GHGRP) |
| `ev_charger` | A public electric-vehicle charging station (DOE AFDC) |
| `fuel_station` | An alternative-fuel station: CNG, LPG, E85, hydrogen and so on (DOE AFDC) |
| `airport` | An airport or heliport, with its owner where that is an organisation (FAA) |
| `port_terminal` | A port facility: dock, terminal or marina (USACE) |
| `refinery` | A petroleum refinery, with its operator and capacity (EIA) |
| `gas_storage` | An underground natural gas storage field (EIA) |
| `petroleum_terminal` | A bulk fuel terminal approved by the IRS (IRS) |
| `wind_turbine` | A utility-scale wind turbine, with its project, model and capacity (USGS USWTDB) |
| `solar_farm` | A large ground-mounted or rooftop solar facility of 1 MW or more, with its capacity (USGS USPVDB) |
| `stream_gauge` | A USGS stream gauge, with its drainage area |
| `wic_vendor` | A store authorized to take WIC (state health departments) |
| `casino` | A licensed casino (state gaming regulators), with its monthly revenue where published in the regulator's own measure (Missouri: admissions and adjusted gross receipts per month, by casino name with no street address) |
| `short_term_rental` | A short-term rental listing, with price, availability, reviews, licence number and estimated nights booked and revenue (Inside Airbnb) |
| `short_term_rental_market` | A neighbourhood's short-term rentals: listing count and median nightly price, nights booked and revenue by bedrooms (Inside Airbnb, derived) |
| `campground` | A federal campground or recreation site (Recreation.gov RIDB), or a licensed RV park or campground |
| `library` | A public library branch, with its building size (IMLS) |
| `mobile_home_park` | A mobile home or RV park, with its lot count where published |
| `oil_gas_well` | An oil or gas well: permits, status, operator and production where published (state regulators, USGS orphaned wells) |
| `water_well` | A groundwater well with its depth (USGS, state water agencies) |
| `water_tower` | A water tower or elevated tank (FAA obstacle file) |
| `cannabis_license` | A licensed cannabis dispensary, grower, processor or lab (state cannabis regulators) |
| `vehicle_dealer` | A licensed motor vehicle dealer (state motor vehicle agencies) |
| `contractor` | A licensed contractor, company or sole owner, with its licence number, status and class (state and city licensing boards) |
| `consumer_lender` | A licensed payday, consumer-finance or pawn lender, or a check casher (state financial regulators) |
| `lottery_retailer` | A state lottery retailer, with its sales where published (New York by game group, Texas by fiscal year) |
| `video_gaming` | A licensed video gaming terminal location with its net terminal income: terminals, amount played, amount won, net terminal income and its tax per month (details.monthly, details.yearly, details.last\_12\_months\_\*; Illinois Gaming Board) |
| `lodging` | A hotel or other lodging business with a state hotel-tax permit |
| `billboard` | A permitted outdoor advertising sign, with its owner (state DOTs) |
| `sprinkler_retrofit` | A building on a city's sprinkler retrofit mandate list, with the law (category: nyc\_local\_law\_26, honolulu\_ordinance\_19\_04), its deadline where published and the building's published compliance status (New York City DOB Local Law 26 violations: active or dismissed; Honolulu Fire Department Ordinance 19-04 high-rise list: lse\_submitted or lse\_not\_submitted) |
| `water_right` | A surface or groundwater right at its point of diversion, with priority and amount (state water agencies) |
| `workplace` | An establishment inspected by OSHA, with its industry, headcount and inspection history |
| `release_incident` | An oil, chemical or hazardous-substance release (or potential release) reported to the National Response Center at a facility, tank, platform or pipeline, with the responsible company, materials, cause, injuries and evacuations. opened\_on is the incident date. Caller reports, unverified; not a finding of fault (USCG NRC) |
| `fire_safety_citation` | A fire-safety citation at a certified nursing home (Life Safety Code K tags, emergency preparedness E tags), with its tag, description, scope and severity, survey date (opened\_on) and correction status. category sprinkler is tags K351 to K354 (install a sprinkler system, supervision, inspection and maintenance, out of service); identifier is the home's CCN, as on its care\_facility record (CMS) |
| `fire_safe_hotel` | A hotel, motel or other lodging on the federal Hotel-Motel National Master List (Hotel and Motel Fire Safety Act), with its stories and details.sprinklers: true where a sprinkler system is reported present, null where the list leaves it blank (not reported, never no) (USFA) |
| `layoff_notice` | A WARN Act layoff or closure notice at an employer's site, with the workers affected (state labor agencies) |
| `federal_contractor` | A federal contractor or SAM.gov-registered entity at its address, with obligations and NAICS (SAM.gov, USAspending) |
| `federal_opportunity` | An active federal bid notice, one per solicitation: its agency, notice type (status: presolicitation, solicitation, sources\_sought, award\_notice...), first posted (opened\_on), response deadline (closed\_on), NAICS, PSC, set-aside, contracting contacts and link (details.notice\_url). Fire protection only so far: category fire\_protection (sprinkler, standpipe, fire alarm, suppression or fire protection systems). About a third publish no place of performance: search without a place to read them all (SAM.gov) |
| `federal_award` | A federal contract award since FY2020: its recipient (identifier is the recipient's UEI, the identifier of its federal\_contractor records), obligations, period of performance (opened\_on, closed\_on), awarding agency, description, NAICS, PSC and place of performance (city, county, ZIP), with a link (details.award\_url). Fire protection only so far: category fire\_protection (USAspending) |
| `ppp_loan` | An SBA Paycheck Protection Program loan to a business or individual, at the borrower's published address (it may be a home and is not evidence of a tenant) |
| `visa_employer_worksite` | An employer's H-1B or PERM worksite, with case counts (DOL disclosure files). Street, job titles and wages only at the employer's own address or where one filing has two or more workers; other worksites are city and ZIP only |
| `motor_carrier` | A motor carrier's base, with power units and drivers (FMCSA census) |
| `drug_establishment` | An FDA-registered drug establishment (FDA) |
| `sales_tax_permit` | A sales-tax permit, business-tax registration or business licence at an outlet location, with the date it opened and, where the publisher keeps closed accounts, the date it closed (state tax agencies; Delaware's business licences; city business-tax and licence registers: Seattle, Los Angeles, San Diego, Orlando, Miami-Dade County, Philadelphia, Washington DC) |
| `food_facility` | A restaurant, market or other permitted food facility, with its latest health inspection (local health departments: Los Angeles County, New York City, Chicago, Austin) |
| `subsidized_housing` | A HUD-assisted multifamily property, public housing development or public housing building, with its units. Don't sum units across public\_housing\_development and public\_housing\_building: they count the same units |

## Filters

| Field | Type | Operators | Description |
| - | - | - | - |
| `kind` | enum | `=` `in` | The register the record comes from (each kind is one kind of operator: pharmacy, medical\_practice, bank\_branch, liquor\_license…). Several are left out of a place search unless named; see the summary. One of the 59 values in [Kinds](#kinds). |
| `name` | string | `=` `~` | (business or operator name contains) or = |
| `identifier` | string | `=` | The publisher's own number as published: a licence number such as CGC1541484 or HIC.0704121, a solicitation number; a contractor's UEI finds its federal\_contractor records and its federal\_award awards; any kind when no kind is given |
| `category` | string | `=` | The publisher's own category for the record, as published (main\_office, on\_premise, nursing\_home): free text, no fixed list. |
| `trade` | enum | `=` | A contractor trade, read across every state's licensing board (it reads kind contractor). One of `fire_protection`. |
| `status` | string | `=` | The record's status as published (open, active, pending): free text, no fixed list. |
| `opened_on` | date | `=` `>=` `<=` `>` `<` | The date the operator opened or the licence was first issued (YYYY-MM-DD). Also read as opened\_date, issued\_on. |
| `closed_on` | date | `=` `>=` `<=` `>` `<` | The date the publisher closed the business account or ended the licence or authorization (YYYY-MM-DD); set only where the publisher keeps closed records, so a null is not open. |
| `property_id` | string | `=` | Establishments matched to this property |
| `linked` | boolean | `=` | = true (matched to one property) or = false |

`identifier` finds a record by the number its publisher gives it, such as a contractor's licence number: `where=identifier = CGC1541426`. The match is exact and ignores case. With no `kind` it searches every register, so add `where=kind = contractor` to search licences only. One number can return several rows where a board lists each endorsement on its own.

Search a place with `in` (a county or city by name, a ZIP code, or a New York City neighborhood), around a point with `near` or `lat` and `lng` plus `radius_m`, or at one property with `where=property_id = property:…`. With none of these, the search runs nationwide. A place the search can't apply is refused with `invalid_request`, never widened to the whole country, and `scope` in the answer says what was searched.

## Coverage

Registers are published state by state or nationally, and not every state publishes every kind. So each answer has `coverage`: one row for each kind you asked about and each state in scope, with `status`:

| Status | Means |
| - | - |
| `covered` | A source for this kind is loaded for this state. |
| `partial` | A source is loaded, but it doesn't list everything of this kind in this state, or some of its records have no county, so a county or city search can miss them. `note` says what's missing. No rows doesn't mean there are none. |
| `not_covered` | No source is loaded for this kind in this state. No rows doesn't mean there are none. |

A nationwide search lists only the kinds and states that aren't fully covered, and a kind with no source anywhere once, as state `US`. When you tell someone what's at an address, say a kind is unavailable where it's `not_covered`, never that there isn't one.

## Request

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Travis County, TX" \
  --data-urlencode "where=kind = bank_branch" \
  --data-urlencode "limit=2"
```

```typescript TypeScript theme={null}
const params = new URLSearchParams({ in: "Travis County, TX", where: "kind = bank_branch", limit: "2" });
const res = await fetch(`https://api.westkite.com/v1/find/establishments?${params}`, {
  headers: { Authorization: `Bearer ${process.env.WESTKITE_API_KEY}` },
});
const { data } = await res.json();
```

```python Python theme={null}
import os, requests

res = requests.get(
    "https://api.westkite.com/v1/find/establishments",
    params={"in": "Travis County, TX", "where": "kind = bank_branch", "limit": 2},
    headers={"Authorization": f"Bearer {os.environ['WESTKITE_API_KEY']}"},
)
data = res.json()["data"]
```

## Response

An abridged answer. `details` holds the publisher's own facts for the kind, so its keys differ from kind to kind.

```json Response 200 theme={null}
{
  "data": {
    "type": "establishments",
    "returned": 2,
    "by_kind": { "bank_branch": 2 },
    "establishments": [
      {
        "id": "establishment:19edccee0b025fcdd3f11879b92d4d04",
        "kind": "bank_branch",
        "category": "full_service_brick_and_mortar",
        "name": "American Bank of Commerce",
        "operator": "American Bank of Commerce",
        "identifier": "245874",
        "status": "open",
        "opened_on": "1996-01-08",
        "address": "610 W 5th St",
        "city": "Austin",
        "state": "TX",
        "county_fips": "48453",
        "postal_code": "78701",
        "coordinates": [-97.749439, 30.269196],
        "property_id": "property:08cdd01c-64d6-8ed2-b7b8-8158ccadf8a0",
        "link": { "method": "address", "candidates": 1 },
        "details": { "branch_name": "WEST FIFTH STREET BRANCH", "main_office": false, "fdic_certificate": "18609" },
        "first_seen": "2026-11-19",
        "last_seen": "2026-11-19",
        "source": {
          "id": "US-FDIC-LOCATIONS",
          "name": "FDIC BankFind branch locations: every open branch of an insured bank",
          "publisher": "Federal Deposit Insurance Corporation",
          "url": "https://banks.data.fdic.gov/bankfind-suite/",
          "as_of": "2026-11-19",
          "licence": "US federal government work (17 U.S.C. 105), public domain"
        }
      }
    ],
    "coverage": [{ "kind": "bank_branch", "state": "TX", "status": "covered" }],
    "next_cursor": "est1.2",
    "has_more": true
  },
  "missing": [],
  "billing": { "operation_id": "op_…", "operation": "find", "charged_usd": 0.002, "balance_usd": 9.99 },
  "request_id": "req_…"
}
```

Every field is in the [API reference](/docs/api/reference.md#establishment-kind) and the [OpenAPI document](https://api.westkite.com/v1/openapi.json) under `Establishment`.

## From an establishment to its property

`property_id` is set when exactly one property matched the published address or point. `link.method` says how it matched: `address` or `point_in_parcel`. `link.candidates` counts the properties that matched: above 1 means several share the address, such as condo units, and `property_id` is left empty.

Read the property itself with [GET /v1/properties/\{id}](/docs/api/properties.md):

```bash cURL theme={null}
curl "https://api.westkite.com/v1/properties/property:08cdd01c-64d6-8ed2-b7b8-8158ccadf8a0?parts=owner" \
  -H "Authorization: Bearer $WESTKITE_API_KEY"
```

And the other way, everything a register places at one property:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "where=property_id = property:08cdd01c-64d6-8ed2-b7b8-8158ccadf8a0"
```

A licence or registration shows an operator at the premises. It isn't proof of a lease.

## More examples

Pharmacies with a name in Cook County, Illinois:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Cook County, IL" \
  --data-urlencode "where=kind = pharmacy" \
  --data-urlencode "where=name ~ Walgreens"
```

Bank branches within 500 m of a point, nearest first:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "lat=30.291981" \
  --data-urlencode "lng=-97.820569" \
  --data-urlencode "radius_m=500" \
  --data-urlencode "where=kind = bank_branch"
```

Care facilities in a county that aren't matched to a property yet:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Travis County, TX" \
  --data-urlencode "where=kind = care_facility" \
  --data-urlencode "where=linked = false"
```

Wind turbines in a county, with each turbine's project, model and capacity in `details` (USGS wind turbine database). Solar farms (`solar_farm`) work the same way, one row per facility at its centre:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Nolan County, TX" \
  --data-urlencode "where=kind = wind_turbine"
```

## Openings and closings

`kind = sales_tax_permit` holds city business-tax and business-licence registers, open and closed, with the date each business started (`opened_on`) and, where the city keeps closed records, the date it closed (`closed_on`). Closed businesses come back alongside open ones, with the city's own `status`. Each city register's coverage is `partial`, because it covers one city, and `coverage` names it.

| City | Register | Closings |
| - | - | - |
| Los Angeles | City business-tax registrations, since the 1970s | The city's close date |
| San Diego | Business tax certificates | Derived from the certificate's expiry |
| Orlando | Business tax receipts, since 2010 | The city's close date |
| Miami-Dade County | Local business tax receipts | The county's close date |
| Philadelphia | Business licences for premises, such as food, child care, lodging and auto repair; not every business needs one | The city's date |
| Washington, DC | Basic business licences; not every business needs one | Derived from the end of the last licensed term |

The same kind also holds Seattle's business licences and Texas sales tax permits, with their start dates.

Ask with `where=opened_on >= <date>` or `where=closed_on >= <date>`, and `sort=-opened_on` or `sort=-closed_on` for newest first. Two clauses on one date make a range, such as `where=closed_on >= 2026-06-01` with `where=closed_on <= 2026-11-30`. `sort` also takes `opened_on`, `closed_on` and `name`; around a point, the sort you ask for comes before distance. Rows without the date come last. `category` is the business's sector, such as `retail` or `services`, in Los Angeles, San Diego, Orlando and Miami-Dade, and the licence type in Philadelphia and Washington, DC. Los Angeles and San Diego also give the industry in `details.naics_code` and `details.naics_description`.

New retail businesses within half a mile of a property, newest first:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "near=property:c05ff33d-cee8-8c67-8d1a-fe0f8c5ca168" \
  --data-urlencode "radius_m=800" \
  --data-urlencode "where=kind = sales_tax_permit" \
  --data-urlencode "where=category = retail" \
  --data-urlencode "where=opened_on >= 2026-09-05" \
  --data-urlencode "sort=-opened_on"
```

Businesses in Philadelphia whose licence ended in a six-month window:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Philadelphia, PA" \
  --data-urlencode "where=kind = sales_tax_permit" \
  --data-urlencode "where=closed_on >= 2026-06-01" \
  --data-urlencode "where=closed_on <= 2026-11-30" \
  --data-urlencode "sort=-closed_on"
```

Some things to know when reading closings:

* `closed_on` is set only where the publisher keeps closed records, so a null `closed_on` isn't proof a business is open.
* Where the date is derived rather than published, `details.closed_on_basis` says how: `certificate_expiration` (San Diego), `license_end` (Washington, DC), or `unavailable` when the date would fall after the city's latest file.
* A day when Los Angeles closed 1,000 or more accounts at once carries `details.bulk_close_accounts`, the number closed that day. Treat it as a records clean-up, not a wave of closings.
* A business held by a person, not a company, has no street or point: only its city and ZIP code, and its trade name when that isn't the person's own name. A radius search can't find it, so search by city to read every record.

## Store sales

Some states publish what each store sells. Those stores carry their sales in `details`, in the publisher's own measure:

| Kind | Stores | What the figures count |
| - | - | - |
| `lottery_retailer` | New York Lottery retailers | Ticket sales by game group, with instant settlements and prizes paid as separate measures |
| `liquor_license` | Iowa Class E liquor stores | The state's spirits sales to the store at the state retail price, and litres: the store's purchases for resale, not its till |
| `liquor_license` | Oregon liquor stores | Spirits sales to consumers and to licensees, such as bars and restaurants |
| `video_gaming` | Illinois video gaming locations | Amount played, amount won, net terminal income and its tax, with the terminal count |
| `casino` | Missouri casinos | Admissions, patrons and adjusted gross receipts |

Every store with sales has the same shape in `details`:

| Field | Holds |
| - | - |
| `measure` | What the figures count and in what unit, as the publisher defines it |
| `monthly` | The last 24 months, newest first |
| `yearly` | Calendar-year totals, each with the number of months it covers |
| `last_12_months_*` | Totals for the 12 months ending at `period_end_month`, the latest complete month, and `last_12_months_reported`, how many of those months have a report |

A month the publisher has no report for is left out, never filled with zero. Amounts in different measures are never added together: in New York, `ticket_sales_usd` is draw games and Quick Draw only, and instant settlements and prizes paid are their own fields.

A store can appear twice: once from the state's licence or retailer list and once from its sales report, which is the row with sales in `details`. In New York both rows share the retailer number in `identifier`.

`video_gaming` is a kind of its own: name it with `where=kind = video_gaming`. Missouri publishes no casino addresses, so its casinos can't be found by place; search by kind and name:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "where=kind = casino" \
  --data-urlencode "where=name ~ Ameristar"
```

An abridged New York Lottery retailer:

```json Response 200 theme={null}
{
  "id": "establishment:07cb6454d128fc3238851494bdbc1d3a",
  "kind": "lottery_retailer",
  "name": "ANDY'S DELI",
  "identifier": "088998",
  "status": "Selling",
  "address": "270 W 47TH ST",
  "city": "NEW YORK",
  "state": "NY",
  "details": {
    "measure": "New York Lottery sales at the retailer by game group, USD per calendar month (sums of the daily sales by game, unaudited); …",
    "business_type": "DELI-GROCERY",
    "period_end_month": "2026-11",
    "last_12_months_reported": 12,
    "last_12_months_ticket_sales_usd": 579332.5,
    "last_12_months_instant_settlements_usd": 594150,
    "monthly": [{ "month": "2026-08", "days": 26, "ticket_sales_usd": 32377.5, "draw_games_usd": 32377.5, "quick_draw_usd": 0 }],
    "yearly": [{ "year": 2025, "months": 12, "ticket_sales_usd": 717496.5 }]
  },
  "source": { "id": "NY-LOTTERY-RETAILER-SALES", "publisher": "New York State Gaming Commission, Division of Lottery", "as_of": "2026-12-04" }
}
```

## Fire safety and sprinklers

Two registers show where sprinklers are cited, missing or reported. Neither publishes a map point, so each row is placed by geocoding its street (`details.point_source = census_geocoder`).

* `kind = fire_safety_citation` is every fire-safety citation at a certified nursing home from its last three inspections, about 200,000 citations at 13,900 homes (CMS). `identifier` is the home's CMS Certification Number, the same as on its `care_facility` row, so `where=identifier = 055169` returns the home and its citations together. `opened_on` is the survey date. `category = sprinkler` covers Life Safety Code tags K351 to K354, and `details.sprinkler_topic` says which: `install` (no approved sprinkler system), `supervision`, `inspection_testing_maintenance` or `out_of_service`. Other citations take CMS's category (`smoke`, `egress`, `emergency_preparedness`, ...). `status` is CMS's correction status (`correction_dated`, `plan_of_correction`, `no_plan_of_correction`, `waived`, ...), and `details.correction_date` is as published, which can be in the future.
* `kind = fire_safe_hotel` is every property on the U.S. Fire Administration's Hotel-Motel National Master List, about 57,900 listings certified under the Hotel and Motel Fire Safety Act. `details.sprinklers` is `true` where the list says a sprinkler system is present and `null` where it is blank. Blank means not reported, never "no sprinklers". `details.stories` is the listed storey count.

Sprinkler citations at nursing homes in a county:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Cook County, IL" \
  --data-urlencode "where=kind = fire_safety_citation" \
  --data-urlencode "where=category = sprinkler"
```

## Sprinkler retrofit mandates

`kind = sprinkler_retrofit` lists buildings that a city law requires to add sprinklers or pass a fire safety evaluation, with what the city publishes about each one's compliance. `category` names the law:

* `nyc_local_law_26`: New York City office buildings of 100 feet or more that hadn't filed a final sprinkler report by the Local Law 26 deadline, July 1, 2019 (`details.deadline`). Each row is one Department of Buildings violation. `status` is `active` or `dismissed`, and `closed_on` is the dismissal date. `details` carries the BBL and BIN.
* `honolulu_ordinance_19_04`: the Honolulu Fire Department's list of existing residential high-rises under Ordinance 19-04, with floors, units, year built and TMK. `status` is `lse_submitted` or `lse_not_submitted`, depending on whether the building's life safety evaluation was submitted. The list publishes no pass result.

Coverage is `partial` in New York and Hawaii, because each list covers one city.

## Federal fire protection bids and awards

Two kinds follow federal fire protection work. Both hold `category = fire_protection` only so far: sprinkler, standpipe, fire alarm, suppression and fire protection system work.

* `kind = federal_opportunity` is an active federal bid notice from SAM.gov, one row per solicitation. `status` is the notice type (`presolicitation`, `solicitation`, `sources_sought`, `award_notice`, ...), `opened_on` is when it was first posted and `closed_on` is the response deadline. `details` carries the agency, NAICS, PSC, set-aside, contracting contacts and the notice link (`details.notice_url`). About a third publish no place of performance, so search without a place to read them all.
* `kind = federal_award` is a federal contract award since fiscal year 2020 from USAspending. `identifier` is the recipient's UEI, the same identifier as its `federal_contractor` records. `opened_on` and `closed_on` are the period of performance, and `details` carries the obligations, awarding agency, description, NAICS, PSC, place of performance and the award link (`details.award_url`).

Open fire protection bids nationwide:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "where=kind = federal_opportunity" \
  --data-urlencode "where=category = fire_protection"
```

## Contractor licences

`kind = contractor` is about 910,000 licences issued by state and city licensing boards in 14 states and New York City. Each row is one licence: `identifier` is the licence number, `name` the business on it, `operator` the licensee or qualifier the board names, `category` the licence class, `status` as the board publishes it, `opened_on` the issue date and `details.expires_on` the expiry. `details` adds what each board publishes, such as bond, insurance, workers' comp, classifications and discipline. Sole owners and individual licensees are listed under their published names, except in California, whose board lists licences held by companies. Where a board publishes expired, suspended and revoked licences, as Connecticut and Minnesota do, they're kept with their status; Oregon and Washington publish active licences.

| State | Licences | Board |
| - | - | - |
| Florida | 232,311 | Department of Business and Professional Regulation: Construction Industry and Electrical Contractors' Licensing Boards |
| Connecticut | 181,307 | Department of Consumer Protection: home improvement, new home, major, electrical, plumbing, heating and cooling and other trade contractors |
| California | 125,108 | Contractors State License Board: licences held by companies |
| New York | 74,745 | New York City Department of Buildings, New York City home improvement contractors, New York State contractor registry |
| Washington | 66,884 | Department of Labor & Industries |
| Oregon | 52,773 | Construction Contractors Board, Building Codes Division trade licences |
| Virginia | 43,491 | Board for Contractors: Class A, B and C |
| Minnesota | 40,155 | Department of Labor and Industry: residential licences and contractor registrations |
| Tennessee | 19,869 | Board for Licensing Contractors |
| Illinois | 19,612 | Roofing contractors, the state's only statewide construction licence |
| Colorado | 15,699 | Electrical and plumbing contractors |
| Texas | 14,478 | Department of Licensing and Regulation: trade contractors |
| Iowa | 14,255 | Construction contractor registrations |
| Delaware | 9,674 | Contractor business licences |

Colorado, Illinois and Texas license only some trades statewide, and New York licenses contractors city by city, so those states hold fewer licences. `coverage` says per state whether licences are loaded, and other states are `not_covered`.

Look up a licence by its number. An abridged answer:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "where=kind = contractor" \
  --data-urlencode "where=identifier = CGC1541426"
```

```json Response 200 theme={null}
{
  "data": {
    "type": "establishments",
    "returned": 1,
    "establishments": [
      {
        "id": "establishment:ff654e86eff35264ed779a05ce51dcfc",
        "kind": "contractor",
        "category": "certified_general_contractor",
        "name": "ATTAWAY SERVICES, INC.",
        "operator": "ANDRESEN, LUCAS RICHARD",
        "identifier": "CGC1541426",
        "status": "Current, Active",
        "opened_on": "2026-07-09",
        "address": "5201 SW 113TH AVE",
        "city": "DAVIE",
        "state": "FL",
        "county_fips": "12011",
        "postal_code": "33330",
        "property_id": "property:e968587f-7f36-8a56-bf1e-4e0ca1375c1f",
        "link": { "method": "address", "candidates": 1 },
        "details": { "board": "Construction Industry Licensing Board", "expires_on": "2028-08-31", "occupation_code": "CGC" },
        "source": {
          "publisher": "Florida Department of Business and Professional Regulation, Construction Industry and Electrical Contractors' Licensing Boards",
          "url": "https://www2.myfloridalicense.com/construction-industry/public-records/",
          "as_of": "2026-11-30"
        }
      }
    ]
  }
}
```

The licensed roofers in a county whose names contain a word:

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Spokane County, WA" \
  --data-urlencode "where=kind = contractor" \
  --data-urlencode "where=name ~ ROOFING"
```

`where=trade = fire_protection` reads the contractors licensed for that trade on every state and city board that publishes it, whatever the board calls the class: fire sprinkler, standpipe, fire pump and special-hazard suppression contractors. Fire alarm, extinguisher and kitchen-hood-only licences are left out. It reads `kind = contractor`, and `coverage` says per state whether a source for the trade is loaded.

```bash cURL theme={null}
curl --get "https://api.westkite.com/v1/find/establishments" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Harris County, TX" \
  --data-urlencode "where=trade = fire_protection"
```

Filter by licence class with `where=category = residential_general_contractor`, by status with the board's own word, such as `where=status = Active`, and by place with `in`, `near` or `property_id`. Leave out the place to search every state at once.

## Errors

| Code | When |
| - | - |
| [`invalid_request`](/docs/api/errors#invalid_request) | An unknown kind or field, or an operator the field doesn't take. The message lists what's allowed. Also `count`, which applies to properties only. |
| [`insufficient_balance`](/docs/api/errors#insufficient_balance) | Your balance can't cover the page. |
| [`rate_limited`](/docs/api/errors#rate_limited) | Too many requests this minute. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.