Kukun API v1 is now available
Kukun Developer Portal

Find contractors by location and profile, and the contractors who filed permits at a property


GET
https://api.mykukun.com
/v1/contractors/search

Returns contractors from the Kukun contractor index that match a location, filters, or both, each with its Kukun profile and a summary of its permit activity. Send a location or an identifying filter (license-number, company-name, website); other filters alone return 400. Search around a point (latitude/longitude) or a property (kukun-id or a full address) within distance miles: a resolved property is returned as resolved_by, kukun_id and address, and each contractor carries address.distance_miles to the search point, nearest first. Without a point, contractors are ordered by Kukun score. Send at least one location or filter. Paginate with next-page-id; replay it with the same filters and limit.

Contractors search › query Parameters

latitude
​number · min: -90 · max: 90

Latitude of the search point (requires longitude). Without distance, only contractors located at this exact point match.

longitude
​number · min: -180 · max: 180

Longitude of the search point (requires latitude). Without distance, only contractors located at this exact point match.

distance
​number · min: 0.01 · max: 100

Maximum distance in miles from the search point (max 100). The point is latitude/longitude, or the kukun-id or full-address property location. Without distance, a kukun-id or address matches contractors at that address.

kukun-id
​integer · min: 1 · max: 999999999

Kukun property identifier, resolved to the property address and location; takes precedence over address, city, state and zip-code. Cannot be combined with latitude/longitude. An unknown kukun-id returns no results.

address
​string · maxLength: 500

Street address beginning with a street number; requires city, state and zip-code. Resolved to a property and its location through Kukun identity (resolved_by address) or, failing that, the permits at the address (resolved_by permits_address); an address neither knows returns 404 Address not found. Cannot be combined with latitude/longitude. An address with no known location returns no results with distance.

city
​string · maxLength: 200

Contractor city (exact match, case-insensitive); part of the property address when address is sent.

state
​string · maxLength: 200

Contractor state, name or abbreviation (e.g. FL or Florida); part of the property address when address is sent.

zip-code
​string · pattern: ^\d{5}$

Contractor 5-digit ZIP code; part of the property address when address is sent.

county
​string · maxLength: 200

Contractor county (exact match, case-insensitive, e.g. Cook).

business-type
​string · maxLength: 200

Business type (exact match, case-insensitive, e.g. Roofing Contractors).

license-number
​string · maxLength: 100

License number held by the contractor. Letters and digits must match exactly; case, # and punctuation are ignored (CGC1508013, #CGC1508013 and cgc-1508013 are the same).

company-name
​string · maxLength: 200

Company name; every word must appear (e.g. empire construction).

website
​string · maxLength: 500

Website domain contained in the contractor website (e.g. gcempire.com).

min-years-in-business
​integer · min: 0 · max: 200

Minimum years in business, from the founding year (0-200).

min-kukun-score
​integer · min: 0 · max: 100

Minimum Kukun score (0-100).

cost-range
​string · maxLength: 100

Price tier as stored in the index (exact match, e.g. $50,001- $100,000).

work-label
​string

Comma-separated permit labels, the same values and grammar as label on /v1/permits/search: no prefix = any of, + (or !) = required, - = excluded (e.g. roof,kitchen-remodel or +roof,-solar). Up to 20 values; an unknown label returns 400. Allowed values: basement-remodel, bathroom-remodel, comm-conversion, demolition, drywall, floor-task, foundation, general-construction, general-remodel, hvac, kitchen-remodel, landscape, new-addition, new-construct, new-construct-adu, roof, siding, solar, whole-house-remodel, window, electrical, plumbing, pool, fence, sidewalk, deck.

min-permits
​integer · min: 1

Minimum number of permits on record for the contractor.

services
​string

Comma-separated services; the contractor must offer at least one (case-insensitive, e.g. Door Installation). Up to 20 values.

limit
​integer · min: 1 · max: 50

Maximum number of contractors per page (1-50, default 25).

Default: 25
next-page-id
​string · maxLength: 2000

Cursor token from a previous next_page_id. Replay with the same filters and limit or the request returns Invalid pagination cursor.

Contractors search › Headers

Authorization
​string · required

API key used to authenticate the request.

Contractors search › Responses

Contractors matching the search

success
​boolean · required
​ContractorSearchResultDto · required
errors
​required
​object · required

GET
https://api.mykukun.com
/v1/contractors/property-search

The endpoint takes one property, by kukun-id or by exact address, and returns every contractor that filed a permit there. Each contractor comes with its Kukun profile and an activity block with the permits it filed at that property only, newest first. Contractors are ordered by their most recent permit at the property. Permits with no contractor on record are counted in unattributed_permits. When a contractor has no Kukun profile, its name, phone and address come from the permit, id and profile are null, and metadata.partial is true.

Contractors property search › query Parameters

address
​string · maxLength: 500

Required unless kukun-id is sent. Street line starting with the street number; may include a unit (1 Baldwin Ave Apt 305).

city
​string

Required with address.

state
​string

Required with address. Name or abbreviation (FL = Florida).

zip-code
​string

Required with address. 5 digits or ZIP+4.

kukun-id
​integer · min: 1 · max: 999999999

Known Kukun property identifier. Takes precedence when both forms are sent.

limit
​integer · min: 1 · max: 50

1–50, default 25. Maximum number of contractors in items.

Contractors property search › Headers

Authorization
​string · required

API key used to authenticate the request.

Contractors property search › Responses

Successful response

success
​boolean · required
​ContractorPropertySearchResultDto · required
errors
​required
​object · required