TradesAPI Verify API

The verify API from TradesAPI — 2 operation(s) for verify.

GitHub OpenAPI

Operations 2

GET /verify Verify a single contractor license #
POST /batch Batch verify up to 200 licenses #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tradesapi-com:tradesapi-com-verify-api"
All apis
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.

Get an API 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 Specification

tradesapi-com-verify-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trades Verify 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: Verify
paths:
  /verify:
    get:
      tags:
      - Verify
      summary: Verify a single contractor license
      description: Look up a license by state code, license number, and trade. Returns normalized JSON with status, expiration, and disciplinary history. Each successful verification consumes one credit.
      operationId: verify_license_verify_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: license
        in: query
        required: true
        schema:
          type: string
          maxLength: 50
          description: License number
          title: License
        description: License number
      - name: trade
        in: query
        required: false
        schema:
          type: string
          maxLength: 40
          description: Trade type
          default: general
          title: Trade
        description: Trade type
      - name: city
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          description: Optional municipality slug (e.g. 'houston') for city-level licenses. Composed into a jurisdiction code like 'TX_houston'.
          title: City
        description: Optional municipality slug (e.g. 'houston') for city-level licenses. Composed into a jurisdiction code like 'TX_houston'.
      - name: license_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 20
          - type: 'null'
          description: 'Optional roster filter, currently only consumed by the MS scraper where MSBOC publishes parallel commercial + residential rosters. Accepted values: ''commercial'', ''residential''. When omitted, MS performs an ordered lookup (commercial first, then residential, preferring an active row on collision). Other states ignore this.'
          title: License Type
        description: 'Optional roster filter, currently only consumed by the MS scraper where MSBOC publishes parallel commercial + residential rosters. Accepted values: ''commercial'', ''residential''. When omitted, MS performs an ordered lookup (commercial first, then residential, preferring an active row on collision). Other states ignore this.'
      - name: fresh
        in: query
        required: false
        schema:
          type: boolean
          description: Force a live scrape, bypassing both the Redis cache and the DB-first read layer. Costs 2 credits (a default request costs 1) — the premium buys a guaranteed live-portal read. Useful when the caller knows a license just changed and wants to refresh `license_current` immediately. (Pricing lock 2026-07-06; qualifier-credential short-circuits still serve from DB at 1 credit because the portal cannot answer for them.)
          default: false
          title: Fresh
        description: Force a live scrape, bypassing both the Redis cache and the DB-first read layer. Costs 2 credits (a default request costs 1) — the premium buys a guaranteed live-portal read. Useful when the caller knows a license just changed and wants to refresh `license_current` immediately. (Pricing lock 2026-07-06; qualifier-credential short-circuits still serve from DB at 1 credit because the portal cannot answer for them.)
      - 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/LicenseResult'
        '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: []
  /batch:
    post:
      tags:
      - Verify
      summary: Batch verify up to 200 licenses
      description: Verify multiple licenses in a single request. Up to 200 per call. Partial failures don't block other items — each result is returned independently. Credits are charged only for successful verifications. For larger workloads, chunk into 200-item calls client-side.
      operationId: batch_verify_batch_post
      parameters:
      - 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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponse'
        '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:
    BatchRequest:
      properties:
        licenses:
          items:
            $ref: '#/components/schemas/VerifyRequest'
          type: array
          maxItems: 200
          minItems: 1
          title: Licenses
          description: List of licenses to verify (max 200)
      type: object
      required:
      - licenses
      title: BatchRequest
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        detail:
          anyOf:
          - type: string
          - type: 'null'
          title: Detail
      type: object
      required:
      - error
      title: ErrorResponse
    BatchResultItem:
      properties:
        result:
          anyOf:
          - $ref: '#/components/schemas/LicenseResult'
          - type: 'null'
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      type: object
      title: BatchResultItem
    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
    VerifyRequest:
      properties:
        state:
          type: string
          maxLength: 2
          minLength: 2
          pattern: ^[A-Za-z]{2}$
          title: State
          description: Two-letter state code
        city:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: City
          description: Optional municipality slug (e.g. 'chicago') for city-level licenses. Composed into a jurisdiction code like 'IL_chicago'. None = state-level.
        license:
          type: string
          maxLength: 50
          minLength: 1
          title: License
          description: License number to verify
        trade:
          type: string
          maxLength: 40
          minLength: 1
          title: Trade
          description: Trade type
          default: general
      type: object
      required:
      - state
      - license
      title: VerifyRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LicenseResult:
      properties:
        valid:
          type: boolean
          title: Valid
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        license_number:
          type: string
          title: License Number
        trade:
          type: string
          title: Trade
        expiration:
          anyOf:
          - type: string
          - type: 'null'
          title: Expiration
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        status_normalized:
          anyOf:
          - type: string
          - type: 'null'
          title: Status Normalized
          description: 'Normalized status bucket across states: active | expired | suspended | revoked | probation | inactive | unknown. Null when the state''s mapping doesn''t cover this specific raw status. Raw `status` is always preserved.'
        state:
          type: string
          title: State
        disciplinary_actions:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Disciplinary Actions
        disciplinary_data_available:
          type: boolean
          title: Disciplinary Data Available
          description: True iff this jurisdiction is one where we extract board disciplinary/enforcement actions, or where the board publishes no case docket and a suspension/revocation status is itself the full public disciplinary record (status-derived, e.g. CT). When False, an empty `disciplinary_actions` means 'not collected for this jurisdiction', NOT a verified-clean record — so absence of data is never mistaken for absence of disciplinary history.
          default: false
        bond_info:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Bond Info
        insurance_info:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Insurance Info
        classifications:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Classifications
        source_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Source Url
        source_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Source Metadata
          description: 'Per-source / per-program tags for downstream parity-audit + ER disambiguation. Example: {''program'': ''dial_construction''} on Iowa DIAL Construction Contractor registrations distinguishes them from the EEB electrical and PMSB plumbing streams.'
        cached:
          type: boolean
          title: Cached
          default: false
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
          description: 'Which read layer served this response: ''cache'' (Redis), ''db'' (license_current bulk feed), or ''scrape'' (live portal). Null on legacy paths predating the cut-over (e.g. sandbox).'
        last_verified_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Verified At
          description: Timestamp of the underlying observation. Equal to `checked_at` for fresh scrapes; older than `checked_at` when served from DB.
        staleness_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Staleness Seconds
          description: Age of the underlying observation in seconds. Zero for fresh scrapes; >0 when served from DB.
        sandbox:
          type: boolean
          title: Sandbox
          description: True iff this response came from the sandbox responder (sandbox-scoped API key). Sandbox responses are deterministic fixtures, not live data. Always false for production scrapes — clients can rely on this field to assert they're talking to the live API.
          default: false
        verification_type:
          anyOf:
          - type: string
            enum:
            - license
            - registration
          - type: 'null'
          title: Verification Type
          description: "Disambiguates the legal weight of a positive (`valid=true`) result:\n  - 'license' → competency license (the holder has met the state's exam / experience / continuing-ed bar for the trade).\n  - 'registration' → an administrative registration only. The holder has filed paperwork and (typically) carries insurance / a bond / workers'-comp coverage, but the state has NOT certified trade competency. Examples: PA HICPA Home Improvement Contractor registration, MT ERD Contractor Registration / ICEC.\n  - null → not specified by the upstream scraper. Treat as 'license' for backward compatibility (this is the default for the 40+ scrapers that pre-date the field, all of which surface true competency licenses)."
        license_class:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: License Class
          description: The issuer's exact classification term, e.g. 'Master Electrician'.
        facets:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Facets
          description: Normalized trade/role/scope facets from app.license_class_facets.
        credential_role:
          anyOf:
          - type: string
            enum:
            - standalone
            - qualifier
          - type: 'null'
          title: Credential Role
          description: Distinguishes a standalone operating license from an individual qualifier credential that requires linkage to a parent business license to be operationally valid. Today only IL 105* (Qualifying Party ROOFING CONTRACTOR) surfaces 'qualifier'; all other paths leave this null (treat as 'standalone' for backward compatibility).
        qualifier_note:
          anyOf:
          - type: string
          - type: 'null'
          title: Qualifier Note
          description: Human-readable note when credential_role='qualifier' — explains the credential class and operational scope (e.g. requires linkage to a parent business license). Null for standalone licenses.
        checked_at:
          type: string
          format: date-time
          title: Checked At
        has_disciplinary_action:
          type: boolean
          title: Has Disciplinary Action
          description: 'Quick-check boolean: true iff disciplinary_actions is non-empty.


            Computed on every read/serialization so in-place mutation of

            disciplinary_actions after construction can never leave this field

            stale. Cannot be set by the caller — derived is the source of truth.'
          readOnly: true
      type: object
      required:
      - valid
      - license_number
      - trade
      - state
      - has_disciplinary_action
      title: LicenseResult
    BatchResponse:
      properties:
        total:
          type: integer
          title: Total
        succeeded:
          type: integer
          title: Succeeded
        failed:
          type: integer
          title: Failed
        results:
          items:
            $ref: '#/components/schemas/BatchResultItem'
          type: array
          title: Results
        credits_charged:
          type: integer
          title: Credits Charged
      type: object
      required:
      - total
      - succeeded
      - failed
      - results
      - credits_charged
      title: BatchResponse
  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.