# Shovels API reference

> The Shovels API returns U.S. building permit data: permits, the contractors who pulled them, and the addresses they concern. An investigator uses it to see what construction work was permitted at a place, who did it, and what a contractor's licence, contact details and permit history look like.…

Source: https://osinttools.io/apis/shovels/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/shovels/

- Base URL: https://api.shovels.ai/v2
- Authentication: API key in the `X-API-Key` header. Get a key: https://www.shovels.ai Keys are under Account, API key in the Shovels app.
- Free tier: yes
- Pricing: Credits
- Rate limits: No numbers stated in the docs; limits are enforced per key as needed. On 429, slow down and retry.
- Vendor docs: https://docs.shovels.ai/
- OpenAPI spec: https://api.shovels.ai/spec/v2/openapi.production.yaml

## Overview

The Shovels API returns U.S. building permit data: permits, the contractors who pulled them, and the addresses they concern. An investigator uses it to see what construction work was permitted at a place, who did it, and what a contractor's licence, contact details and permit history look like.

The base URL is `https://api.shovels.ai/v2`. Send the key in the `X-API-Key` header; keys are under Account, API key in the Shovels app. Lists use cursor pagination: pass the previous response's `next_cursor` as `cursor`; `size` is 10 by default and up to 100.

Usage is metered in credits: one credit is one record returned, and each response carries `X-Credits-Request`, `X-Credits-Limit` and `X-Credits-Remaining` headers. Permit and contractor searches need a date range and a `geo_id` (a state code, a ZIP code or a Shovels geolocation ID); free-form addresses are rejected there, so use the address search to get a `geo_id`. The docs list many more endpoints (decisions, cities, counties, jurisdictions, properties and metrics) in the [API reference](https://docs.shovels.ai/api-reference).

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Bad request; check the input |
| 401 | API key missing or incorrect |
| 402 | Credit limit exceeded |
| 403 | Access not permitted |
| 404 | Resource not found (missing data can also cause this) |
| 422 | Invalid request data; detail lists loc, msg and type |
| 429 | Requests coming too quickly |
| 500 | Server error; contact support |

## Permits

### Search building permits by area and date range, with many optional filters.

`GET /permits/search`

- Takes: Name
- Footprint: passive (the target is not contacted)
- Cost: 1 credit per record
- Plan: Any plan

Returns permits matching all filters. `permit_from`, `permit_to` and `geo_id` are required. Money values are in cents.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `permit_from` | query | string | yes | Permits whose earliest date is on or after this date (YYYY-MM-DD) Example: 2025-01-01 |
| `permit_to` | query | string | yes | Permits whose latest date is on or before this date (YYYY-MM-DD) Example: 2025-12-31 |
| `geo_id` | query | string | yes | A US state code, a ZIP code, or a Shovels geolocation ID; free-form addresses are rejected Example: 90210 |
| `permit_q` | query | string | no | Case-insensitive substring search on permit descriptions, max 50 characters Example: solar |
| `permit_tags` | query | string | no | Tags to include; prefix with - to exclude. Repeat to give several Example: solar |
| `permit_status` | query | string | no | Permit status, up to 4 values Example: final One of: final, in_review, inactive, active |
| `permit_has_contractor` | query | boolean | no | true: only permits with a contractor; false: only without Example: true |
| `permit_min_job_value` | query | integer | no | Minimum job value, in cents Example: 5000000 |
| `property_type` | query | string | no | Property type; repeat the key for several Example: residential One of: residential, commercial, industrial, agricultural, vacant land, exempt, miscellaneous, office, recreational |
| `contractor_name` | query | string | no | Partial match on contractor or business name, minimum 3 characters Example: Example Builders |
| `contractor_license` | query | string | no | Contractor license number Example: 000000 |
| `contractor_website` | query | string | no | Website prefix; protocol, www. and trailing slashes are stripped Example: example.com |
| `cursor` | query | string | no | Cursor from the previous response's next_cursor |
| `size` | query | integer | no | Page size, 1 to 100 Example: 10 |
| `include_count` | query | boolean | no | On the first page only, include total_count Example: false |

Response fields:

- `items[].id` (string): Permit identifier
- `items[].number` (string): Permit number from the jurisdiction
- `items[].description` (string): Free-form permit description
- `items[].jurisdiction` (string): Where the permit was filed
- `items[].type` (string): Permit type
- `items[].status` (string): Permit status
- `items[].job_value` (integer): Reported job value, in cents
- `items[].fees` (integer): Fees charged, in cents
- `items[].file_date` (string): File date
- `items[].issue_date` (string): Issue date
- `items[].final_date` (string): Final date
- `items[].contractor_id` (string): Contractor identifier
- `items[].tags[]` (string): Permit tags
- `items[].property_type` (string): Property type
- `items[].property_legal_owner` (string): Legal owner of the property
- `items[].address.street_no` (string): Street number
- `items[].address.street` (string): Street
- `items[].address.city` (string): City
- `items[].address.zip_code` (string): ZIP code
- `items[].address.state` (string): State
- `items[].geo_ids.address_id` (string): Address geo id
- `size` (integer): Items returned
- `next_cursor` (string): Cursor for the next page; null when none remain
- `total_count.value` (integer): Count, exact up to 10,000
- `total_count.relation` (string): eq (exact) or gte (at least)

```bash
curl 'https://api.shovels.ai/v2/permits/search?permit_from=2025-01-01&permit_to=2025-12-31&geo_id=90210' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "items": [
    {
      "id": "PERMIT_EXAMPLE_1",
      "number": "BLD-0000-0001",
      "description": "Install rooftop solar",
      "jurisdiction": "EXAMPLE CITY",
      "type": "Building",
      "status": "final",
      "job_value": 2500000,
      "fees": 30000,
      "file_date": "2025-03-01",
      "issue_date": "2025-03-10",
      "final_date": "2025-04-20",
      "contractor_id": "CONTRACTOR_EXAMPLE_1",
      "tags": [
        "solar"
      ],
      "property_type": "residential",
      "address": {
        "street_no": "100",
        "street": "EXAMPLE ST",
        "city": "EXAMPLE CITY",
        "zip_code": "90210",
        "state": "CA"
      },
      "geo_ids": {
        "address_id": "ADDR_EXAMPLE_1"
      }
    }
  ],
  "size": 1,
  "next_cursor": null
}
```

## Contractors

### Search contractors by area, date range and permit activity.

`GET /contractors/search`

- Takes: Name
- Footprint: passive (the target is not contacted)
- Cost: 1 credit per record
- Plan: Any plan

Results are ordered by the start date of each contractor's most recent permit. `permit_from`, `permit_to` and `geo_id` are required. Contractor records can include licence data, phone, email, website, ratings and lifetime permit totals.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `permit_from` | query | string | yes | Permits starting on or after this date (YYYY-MM-DD) Example: 2025-01-01 |
| `permit_to` | query | string | yes | Permits starting on or before this date (YYYY-MM-DD) Example: 2025-12-31 |
| `geo_id` | query | string | yes | A US state code, a ZIP code, or a Shovels geolocation ID Example: 90210 |
| `contractor_name` | query | string | no | Partial match on contractor or business name, minimum 3 characters Example: Example Builders |
| `contractor_license` | query | string | no | Contractor license number Example: 000000 |
| `contractor_website` | query | string | no | Website prefix; protocol, www. and trailing slashes are stripped Example: example.com |
| `contractor_classification_derived` | query | string | no | Derived classification; all listed values must match; prefix with - to exclude Example: roofing One of: concrete_and_paving, demolition_and_excavation, electrical, fencing_and_glazing, framing_and_carpentry, general_building_contractor, general_engineering_contractor, hvac, landscaping_and_outdoor_work, other, plumbing, roofing, specialty_trades |
| `permit_q` | query | string | no | Full-text search of permit descriptions, max 50 characters Example: roof |
| `include_tallies` | query | boolean | no | Include tag_tally and status_tally; false is faster Example: true |
| `cursor` | query | string | no | Cursor from the previous response's next_cursor |
| `size` | query | integer | no | Page size, 1 to 100 Example: 10 |

Response fields:

- `items[].id` (string): Contractor ID
- `items[].license` (string): License number
- `items[].name` (string): Contractor name
- `items[].business_name` (string): Business name
- `items[].business_type` (string): Business type
- `items[].classification_derived[]` (string): Derived classifications
- `items[].license_exp_date` (string): License expiration date
- `items[].primary_phone` (string): Primary phone number
- `items[].primary_email` (string): Primary email address
- `items[].website` (string): Website
- `items[].linkedin_url` (string): LinkedIn URL
- `items[].employee_count` (string): Employee count range
- `items[].rating` (number): Review rating
- `items[].permit_count` (integer): Lifetime permit count
- `items[].total_job_value` (integer): Lifetime job value, in cents
- `items[].status_tally` (object): Permit counts by status
- `items[].address.city` (string): City
- `items[].address.state` (string): State
- `size` (integer): Items returned
- `next_cursor` (string): Cursor for the next page; null when none remain

```bash
curl 'https://api.shovels.ai/v2/contractors/search?permit_from=2025-01-01&permit_to=2025-12-31&geo_id=90210' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "items": [
    {
      "id": "CONTRACTOR_EXAMPLE_1",
      "license": "000000",
      "name": "Example Builders",
      "business_name": "Example Builders LLC",
      "business_type": "Limited Liability",
      "classification_derived": [
        "roofing"
      ],
      "license_exp_date": "2027-01-31",
      "primary_phone": "+1 555 0100",
      "primary_email": "office@example.com",
      "website": "example.com",
      "employee_count": "11-50",
      "rating": 4.5,
      "permit_count": 120,
      "total_job_value": 900000000,
      "status_tally": {
        "final": 100,
        "active": 20
      },
      "address": {
        "city": "EXAMPLE CITY",
        "state": "CA"
      }
    }
  ],
  "size": 1,
  "next_cursor": null
}
```

## Addresses

### Find addresses by text, to get a geolocation ID.

`GET /addresses/search`

- Takes: Name
- Footprint: passive (the target is not contacted)
- Cost: 1 credit per record
- Plan: Any plan

Prefix, full-text and fuzzy matching on street number, street, city, state and ZIP code. A 3 or 4 digit query searches by ZIP prefix; a 1 or 2 digit query returns 404. Use the returned `geo_id` as `geo_id` in permit and contractor searches.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Text to search for in the address fields Example: 100 Example St Example City CA |

Response fields:

- `items[].geo_id` (string): Geolocation ID
- `items[].name` (string): Formatted address
- `items[].street_no` (string): Street number
- `items[].street` (string): Street
- `items[].city` (string): City
- `items[].county` (string): County
- `items[].zip_code` (string): ZIP code
- `items[].state` (string): State
- `items[].jurisdiction` (string): Jurisdiction
- `items[].lat` (number): Latitude
- `items[].long` (number): Longitude
- `size` (integer): Items returned
- `next_cursor` (string): Cursor for the next page; null when none remain

```bash
curl 'https://api.shovels.ai/v2/addresses/search?q=100%20Example%20St%20Example%20City%20CA' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "items": [
    {
      "geo_id": "ADDR_EXAMPLE_1",
      "name": "100 EXAMPLE ST, EXAMPLE CITY, CA 90210",
      "street_no": "100",
      "street": "EXAMPLE ST",
      "city": "EXAMPLE CITY",
      "zip_code": "90210",
      "state": "CA",
      "lat": 34,
      "long": -118
    }
  ],
  "size": 1,
  "next_cursor": null
}
```

## Account

### Credits used in the last 30 days and the monthly limit.

`GET /usage`

- Footprint: passive (the target is not contacted)
- Plan: Any plan

Reports usage programmatically; `credit_limit` is null for unlimited plans.

Response fields:

- `credits_used` (integer): Credits used in the last 30 days
- `credit_limit` (integer): Monthly credit limit; null means unlimited
- `is_over_limit` (boolean): Whether usage has reached or exceeded the limit
- `available_at` (string): Earliest date expiring credits bring usage below the limit
- `daily_usage[].date` (string): Day the credits were used
- `daily_usage[].credits` (integer): Credits used that day
- `daily_usage[].expires` (string): When those credits fall off the window

```bash
curl 'https://api.shovels.ai/v2/usage' \
  -H 'X-API-Key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "credits_used": 120,
  "credit_limit": 500,
  "is_over_limit": false,
  "available_at": null,
  "daily_usage": [
    {
      "date": "2026-11-28",
      "credits": 20,
      "expires": "2026-12-28"
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
