API Documentation
The Contractor-Verify API allows you to verify contractor licenses programmatically. Access license status, expiration dates, and business information for contractors across multiple states.
https://api.contractor-verify.com/v1
Authentication
All API requests require authentication using a Bearer token. Include your API key in the
Authorization header of each request.
Authorization: Bearer sk_live_your_api_key_here
You can also pass the API key as a query parameter for testing in browsers:
GET /v1/verify?api_key=sk_live_your_api_key&state=FL&license=CGC123456
Rate Limits
Rate limits vary by plan. The current limits are included in response headers:
| Header | Description |
|---|---|
X-RateLimit-Limit |
Requests allowed per minute |
X-RateLimit-Remaining |
Requests remaining in current window |
X-RateLimit-Reset |
Unix timestamp when the limit resets |
Verify License
Verify a contractor's license by business name or license number. Returns detailed information about the license including status, type, and expiration date.
/v1/verify
Query Parameters
| Parameter | Type | Description |
|---|---|---|
state required |
string | Two-letter state code (e.g., "FL") |
business_name * |
string | Business or contractor name to search |
license_number * |
string | License number to verify (e.g., "CGC1234567") |
* At least one of business_name or license_number is required. You can provide both for more precise matching.
Example Request (by License Number)
curl -X GET \ 'https://api.contractor-verify.com/v1/verify?state=FL&license_number=CGC1234567' \ -H 'Authorization: Bearer sk_live_your_api_key'
Example Request (by Business Name)
curl -X GET \ 'https://api.contractor-verify.com/v1/verify?state=FL&business_name=ABC+Construction' \ -H 'Authorization: Bearer sk_live_your_api_key'
Example Response
{
"verified": true,
"license": {
"number": "CGC1234567",
"status": "ACTIVE",
"status_description": "Current, Active",
"license_type": "CGC",
"license_type_description": "Certified General Contractor",
"business_name": "ABC Construction LLC",
"licensee_name": "SMITH, JOHN A",
"dba_name": "ABC Builders",
"city": "Miami",
"state": "FL",
"expiration_date": "2025-08-31",
"original_license_date": "2010-03-15"
}
}
Search Contractors
Search for contractors by business name or license number. Returns multiple matching results with relevance scores.
/v1/search
Query Parameters
| Parameter | Type | Description |
|---|---|---|
state required |
string | Two-letter state code |
business_name * |
string | Business or contractor name to search |
license_number * |
string | License number to search for |
limit optional |
integer | Max results to return (default: 10, max: 50) |
* At least one of business_name or license_number is required.
List States
Get a list of currently supported states and their coverage information.
/v1/states
Returns a list of states with their support status and record counts.
Error Handling
The API returns consistent error responses with helpful messages.
{
"error": "Unauthorized",
"message": "Invalid API key"
}
Status Codes
| Code | Description |
|---|---|
200 |
Success |
400 |
Bad Request - Missing or invalid parameters |
401 |
Unauthorized - Invalid or missing API key |
404 |
Not Found - License not found |
429 |
Rate Limited - Too many requests |
500 |
Server Error |