---
title: "Get Contractors By Id"
method: GET
path: "/contractors"
tags: ["Contractors", "Contractors"]
---

# Get Contractors By Id

`GET /contractors`

Returns contractors by their IDs. Multiple `id` query parameters can be provided in the same API call

## Query parameters

- `id` string[], required — Filter by the contractor ID.
- `cursor` string, nullable — Cursor for pagination

## Response `200`

A list of contractors.

- PaginatedContractorsResponse — Schema for paginated contractors details response.
  - `items` ContractorsRead[], required — The list of items returned in the response following given criteria.
    - `id` string, required — The contractor ID.
    - `license` string, nullable — The contractor license number.
    - `name` string, nullable — The contractor name.
    - `business_name` string, nullable — The contractor business name.
    - `business_type` string, nullable — The type of business: JointVenture, Corporation, Partnership, Limited Liability, Sole Owner.
    - `classification` string, nullable — The contractor's classification/certification.
    - `classification_derived` string[], nullable — Array of derived contractor classifications.
    - `license_issue_date` string, date, nullable — The license issue date.
    - `license_exp_date` string, date, nullable — The license expiration date.
    - `license_inact_date` string, date, nullable — Date when the contractor's license became inactive.
    - `license_act_date` string, date, nullable — Date when the contractor's license became active.
    - `primary_phone` string, nullable — The contractor's primary phone number.
    - `primary_email` string, nullable — The contractor's primary email.
    - `phone` string, nullable — The contractor's phone number(s).
    - `email` string, nullable — The contractor's email(s).
    - `website` string, nullable — The contractor's website).
    - `dba` string, nullable — Doing Business As name for the contractor.
    - `sic` string, nullable — Standard Industrial Classification (SIC) code of the contractor.
    - `naics` string, nullable — North American Industry Classification System (NAICS) code of the contractor.
    - `linkedin_url` string, nullable — LinkedIn URL of the contractor.
    - `revenue` string, nullable — Annual revenue of the contractor's business.
    - `employee_count` string, nullable — Number of employees working for the contractor.
    - `primary_industry` string, nullable — Primary industry in which the contractor operates.
    - `review_count` integer, nullable — Number of reviews the contractor has received.
    - `rating` number, nullable — Rating of the contractor based on reviews.
    - `status_tally` object, nullable — Permit counts by status (active, final, unknown, inactive, in_review). On /contractors/search: filtered by geo and date range parameters. On /contractors (get by ID): unfiltered lifetime counts.
    - `tag_tally` object, nullable — Permit counts by tag. Each permit is counted once under every tag it has — a permit tagged both 'solar' and 'electrical' adds 1 to each. On /contractors/search: filtered by geo and date range parameters. On /contractors (get by ID): unfiltered lifetime counts, so the values can add up to more than permit_count.
    - `permit_count` integer, nullable — Contractor lifetime total permit count across all locations and dates. Not filtered by search parameters.
    - `avg_job_value` integer, nullable — The average job value of all permits in cents (integer value representing dollars × 100).
    - `total_job_value` integer, nullable — The total job value of all permits in cents (integer value representing dollars × 100).
    - `avg_construction_duration` integer, nullable — The average construction duration in days.
    - `avg_inspection_pass_rate` integer, nullable — The average inspection pass rate as a percentage (0-100).
    - `first_seen_date` string, date, nullable — Date when the contractor was first seen in the system.
    - `address` AddressesEmbedded, required — Schema for embedded address object with location data to be used as a nested JSON object.
      - `street_no` string, nullable — The number of the street of the address.
      - `street` string, nullable — The name of the street of the address.
      - `city` string, nullable — The city of the address.
      - `county` string, nullable — The county of the address.
      - `zip_code` string, nullable — The ZIP code of the address.
      - `zip_code_ext` string, nullable — The extension of the ZIP code of the address.
      - `state` string, nullable — The state of the address.
      - `jurisdiction` string, nullable — The jurisdiction the address belongs to.
      - `address_id` string, nullable — The address identifier.
      - `latlng` number[], nullable — The latitude and longitude of the address.
  - `size` integer, required — The number of items returned in the response.
  - `next_cursor` string, nullable, required — The cursor for retrieving the next page of results.
  - `total_count` TotalCount — Capped result count with Elasticsearch-style {value, relation} shape. When the exact count is known and within the cap, relation is "eq" and value is that exact count. When the count exceeds the cap, relation is "gte" and value is the cap the count was probed against, meaning "the actual count is at least value". The cap is COUNT_CAP for every wire-facing endpoint; internal guard paths probe against their own cap, so value carries whatever cap produced it.
    - `value` integer, required — The count value; capped at the probe's cap (10,000 on the wire).
    - `relation` 'eq' | 'gte', required — "eq" means value is the exact count. "gte" means the actual count is at least value (the cap).

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/shovels/apis/the-shovels-api-v2.md) · [All operations](https://skmtc.net/shovels/apis/the-shovels-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shovels/the-shovels-api-v2/revisions/d3f0e1f3afa8/schema)
