How do I search the Contractor License API?
Send two required fields:
- licenseNumber: the license number in the state's format. Each state's format is listed on Contractor License Fields by State.
- state: the 2-letter code or the full state name. Supported states are Alabama, Arizona, California, Florida, Georgia, Nevada, New York, North Carolina, Oregon, South Carolina, Texas and Virginia.
The request is the same for every state. A business name sent with the request is ignored.
Getting your results
- With a callbackUrl (optional): the API answers right away, then sends the results to your callback URL as a POST, wrapped as
{ "requestId": "…", "body": { "status": "Complete", "results": [ … ] } }. - Without a callbackUrl: we wait up to 20 seconds. If the lookup finishes in time, the results come straight back. If not, you get a
202with aretryIdandpollAfterSeconds. Call again with?retryId=after that many seconds to collect the result. Results can be collected for 7 days, and collecting is free.
Georgia lookups, and often South Carolina ones, take longer than 20 seconds, so a callbackUrl is the easiest option for those states.
You can run 2 lookups at a time. Extra requests wait in a queue instead of being refused. Every lookup checks the state live.
contractor-license-api
