TradesAPI Search API
The search API from TradesAPI — 1 operation(s) for search.
The search API from TradesAPI — 1 operation(s) for search.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tradesapi-com:tradesapi-com-search-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Trades Search API
description: Real-time contractor license verification across all 50 US states + DC, plus 16 metro areas. Send a license number + state + trade, get back a normalized JSON result with status, expiration, and disciplinary history.
version: 1.0.0
tags:
- name: Search
paths:
/search:
get:
tags:
- Search
summary: Search for contractor licenses by name
description: Find licenses matching a business or individual name in a given state. Useful when the license number is unknown. Costs 2 credits per search.
operationId: search_by_name_search_get
parameters:
- name: state
in: query
required: true
schema:
type: string
minLength: 2
maxLength: 2
description: Two-letter state code
title: State
description: Two-letter state code
- name: name
in: query
required: true
schema:
type: string
minLength: 2
maxLength: 200
description: Business or individual name
title: Name
description: Business or individual name
- name: trade
in: query
required: false
schema:
type: string
maxLength: 40
description: Trade type
default: general
title: Trade
description: Trade type
- name: limit
in: query
required: false
schema:
type: integer
maximum: 50
minimum: 1
description: Max results
default: 20
title: Limit
description: Max results
- name: city
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 64
- type: 'null'
description: Optional municipality. When set, targets the composite jurisdiction '{state}_{city}' (e.g. state=TN&city=nashville → TN_nashville scraper) instead of the state-level scraper.
title: City
description: Optional municipality. When set, targets the composite jurisdiction '{state}_{city}' (e.g. state=TN&city=nashville → TN_nashville scraper) instead of the state-level scraper.
- name: x-api-key
in: header
required: false
schema:
type: string
description: API key for authentication
default: ''
title: X-Api-Key
description: API key for authentication
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad Request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Unauthorized
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- ApiKeyAuth: []
components:
schemas:
SearchResponse:
properties:
query:
$ref: '#/components/schemas/SearchQuery'
total_results:
type: integer
title: Total Results
results:
items:
$ref: '#/components/schemas/SearchResultItem'
type: array
title: Results
cached:
type: boolean
title: Cached
default: false
checked_at:
type: string
format: date-time
title: Checked At
type: object
required:
- query
- total_results
- results
title: SearchResponse
SearchQuery:
properties:
state:
type: string
maxLength: 2
minLength: 2
pattern: ^[A-Za-z]{2}$
title: State
city:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: City
name:
type: string
maxLength: 200
minLength: 2
title: Name
trade:
type: string
maxLength: 40
minLength: 1
title: Trade
default: general
type: object
required:
- state
- name
title: SearchQuery
ErrorResponse:
properties:
error:
type: string
title: Error
detail:
anyOf:
- type: string
- type: 'null'
title: Detail
type: object
required:
- error
title: ErrorResponse
SearchResultItem:
properties:
name:
type: string
title: Name
license_number:
type: string
title: License Number
trade:
type: string
title: Trade
status:
anyOf:
- type: string
- type: 'null'
title: Status
state:
type: string
title: State
confidence:
type: number
title: Confidence
source_url:
anyOf:
- type: string
- type: 'null'
title: Source Url
source:
anyOf:
- type: string
- type: 'null'
title: Source
type: object
required:
- name
- license_number
- trade
- state
- confidence
title: SearchResultItem
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: API key for authenticated endpoints. Sign up at /auth/login to get one. Every successful verification consumes one credit.