Data Services Software

State License API Documentation

By DEA Lookup.com, Inc. · Updated November 13, 2026

Short answer: The DEA Lookup.com State License API verifies a professional license in real time against the state licensing board's own website. You send a license number, a two-letter state code, and a professional designation such as MD, NP, or RN. The API returns the license status, expiration date, and licensee name in JSON or pipe-delimited text, along with a result code your system can act on.

Overview

Getting access

The State License API is available to DEA Lookup.com subscribers. After you subscribe, you receive:

To evaluate the API, email sales@dealookup.com to schedule a demo or set up a short evaluation account.

Making a request

Send an HTTPS POST request to the API endpoint provided with your subscription. Parameters 1 through 5 are required.

#ParameterRequiredDescription
1usernameYesYour API username.
2passwordYesYour API password.
3SL_nYesState license number.
4SL_sYesTwo-letter state code, for example CA.
5SL_pdYesProfessional designation. See professional designations.
6SL_pd_nursingNoOptional nursing license type, used with SL_pd=NP. See nursing license types.
7SL_lnNoLast name, in uppercase. Optional and usually not needed. Adds a check that the license belongs to this person, which helps in the few states that return more than one result for a license number.
8SL_psViewNoSet to on to return the state board's own result page (primary source view). Default is off.
9OutputFormatNoJSON for JSON output, or HTMLdisplay for text output suited to testing. Default is HTMLdisplay.

Example request

POST [your API endpoint]

username=YOUR_USERNAME
password=YOUR_PASSWORD
SL_n=A123456
SL_s=CA
SL_pd=MD
SL_ln=DOE
OutputFormat=JSON

Code examples in cURL, Python, JavaScript, and C#, sample responses, and an OpenAPI specification are on GitHub.

To run verifications from an AI assistant instead of your own code, see the State License MCP Usage Guide.

Professional designations

CodeLicense type
MDMedical Doctor
DODoctor of Osteopathic Medicine
PAPhysician Assistant
NPNurse Practitioner
DDSDentist
RPHPharmacist
RXPharmacy
NHANursing Home Administrator

Nursing license types

For most nursing verifications, set SL_pd to NP and leave SL_pd_nursing out. To verify a specific nursing license type, set SL_pd=NP and add SL_pd_nursing with one of these codes:

CodeLicense type
ACNAAdvanced Certified Nurse Aide
CNACertified Nurse Assistant
LPNLicensed Practical Nurse
LMLicensed Midwife
RNRegistered Nurse
APRN_NPAdvanced Practice Registered Nurse, Nurse Practitioner
APRN_CNSAdvanced Practice Registered Nurse, Clinical Nurse Specialist
APRN_CRNAAdvanced Practice Registered Nurse, Certified Registered Nurse Anesthetist
APRN_CNMAdvanced Practice Registered Nurse, Certified Nurse Midwife

Responses

Every response starts with a result code, so your system can route the result without parsing the rest of the text. The one exception is the primary source view: when SL_psView=on, the response is the state board's own result page as HTML, with no result code.

CodeMeaningText response
1License found and validated1|State License API Result: ...
2License not found2|License not found.
3License found, but the last name does not match3|License invalid: Name mismatch.
4Error (see error messages)4|Error|[message]

JSON response (license found)

{
  "Result": 1,
  "ResultLabel": "LicenseValidated",
  "ResultDetail": "State license board website data found.",
  "State License": "A123456",
  "State": "CA",
  "Status": "LICENSE RENEWED & CURRENT",
  "Expires": "MARCH 31, 2028",
  "Name": "DOE, JANE A",
  "PD": "MD"
}

JSON response (license not found)

{
  "Result": 2,
  "ResultLabel": "License not found.",
  "ResultDetail": "License number invalid or no longer reported on state board site."
}

JSON response (name mismatch)

{
  "Result": 3,
  "ResultLabel": "License invalid: Name mismatch.",
  "ResultDetail": "The last name submitted does not match to this license."
}

Text response (license found)

1|State License API Result:
State License: A123456
State: CA
Status: LICENSE RENEWED & CURRENT
Expires: MARCH 31, 2028
Name: DOE, JANE A
PD: MD

Example data is fictional. The Status value is reported as each state board words it, so the same status can be worded differently from state to state.

Disciplinary information

The result reports license status and expiration. Disciplinary information, where a state publishes it, is found in the primary source page (SL_psView=on). Every state reports disciplinary data differently, and some report little or none.

Error messages

Errors return result code 4. Errors caused by a state website being slow or unavailable are usually temporary, and retrying the request later normally succeeds.

MessageWhat to do
Invalid loginCheck your API username and password.
Expired loginYour API account has expired. Contact customerservice@dealookup.com.
No state license number entered.Include SL_n.
No state entered.Include SL_s.
No professional designation entered.Include SL_pd.
Name cannot be a number.Send a last name in SL_ln, not a number.
State License API not available in [state] for professional designation [PD]That license type is not supported in that state.
State website failure, try again.
Unable to reach the state database.
State website changed or is temporarily down.
State license website was slow to respond and timed out. Try again.
The state board's website is unavailable or slow. Retry later.
Unrecognized response. Try again.
Data link failed. Try again.
Unknown error.
Temporary retrieval problem. Retry the request.

Response times and timeouts

Because each result comes live from the state board's website, response time depends on the state. Most states respond within a few seconds. A small number of state websites are slower and can take 30 seconds or more while still returning a valid result.

Set your client timeout to 200 seconds. Responses over 100 seconds are rare and limited to a few states. For high-volume checks, send requests in parallel rather than waiting for each one in turn.

Integration tips

How DEA Lookup.com helps

Related guides: How to Verify a State Medical License in All 50 States, How to Automate Provider Credential Verification: API vs. Manual, and What Is Primary Source Verification (PSV)?

Frequently asked questions

What does the State License API return?

For a found license, the API returns the license number, state, license status as reported by the state board, expiration date, and the licensee's name, in JSON or pipe-delimited text. It also returns a result code so your system can tell a validated license from a license that was not found, a name mismatch, or an error.

Is the State License API primary source verification?

Yes. Each request retrieves the result in real time from the state licensing board's own website, so the data comes directly from the issuing source rather than a stored copy. An optional primary source view returns the state board's own result page.

How long does a State License API request take?

Most states respond in a few seconds. Because results come live from each state board's website, a small number of states can take 30 seconds or more. DEA Lookup.com recommends a client timeout of 200 seconds, although responses over 100 seconds are rare.

Which license types does the State License API support?

The API supports physicians (MD and DO), physician assistants, nurse practitioners, dentists, pharmacists, pharmacies, nursing home administrators, and nursing license types including RN, LPN, CNA, licensed midwives, and advanced practice registered nurses. Availability varies by state.

How do I get access to the State License API?

Access requires a DEA Lookup.com subscription. Subscribers receive API credentials, the API endpoint, and access to a test interface for trying requests before integrating. Contact sales@dealookup.com to schedule a demo or set up an evaluation.

Verify state licenses in real time from the primary source. Subscribe today or email sales@dealookup.com to schedule a demo or set up an evaluation account.

DEA Lookup.com is not affiliated with the Drug Enforcement Administration or any state licensing board.