State License API Documentation
By DEA Lookup.com, Inc. · Updated November 13, 2026
Overview
- Primary source: every request retrieves the result live from the issuing state board, not from a stored copy.
- Coverage: state license verification across all 50 states and Washington, DC, for physicians, PAs, NPs, dentists, pharmacists, pharmacies, nursing home administrators, and nursing license types. Availability of each license type varies by state.
- Simple integration: a single HTTPS POST request from any programming language, with JSON or text output.
- Name check: an optional last name parameter confirms the license belongs to the expected person.
- Primary source view: an optional setting returns the state board's own result page for your records.
Getting access
The State License API is available to DEA Lookup.com subscribers. After you subscribe, you receive:
- API credentials (username and password) for your account
- The API endpoint address
- Access to a test interface, so you can try requests and see results before you integrate
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.
| # | Parameter | Required | Description |
|---|---|---|---|
| 1 | username | Yes | Your API username. |
| 2 | password | Yes | Your API password. |
| 3 | SL_n | Yes | State license number. |
| 4 | SL_s | Yes | Two-letter state code, for example CA. |
| 5 | SL_pd | Yes | Professional designation. See professional designations. |
| 6 | SL_pd_nursing | No | Optional nursing license type, used with SL_pd=NP. See nursing license types. |
| 7 | SL_ln | No | Last 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. |
| 8 | SL_psView | No | Set to on to return the state board's own result page (primary source view). Default is off. |
| 9 | OutputFormat | No | JSON 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
| Code | License type |
|---|---|
MD | Medical Doctor |
DO | Doctor of Osteopathic Medicine |
PA | Physician Assistant |
NP | Nurse Practitioner |
DDS | Dentist |
RPH | Pharmacist |
RX | Pharmacy |
NHA | Nursing 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:
| Code | License type |
|---|---|
ACNA | Advanced Certified Nurse Aide |
CNA | Certified Nurse Assistant |
LPN | Licensed Practical Nurse |
LM | Licensed Midwife |
RN | Registered Nurse |
APRN_NP | Advanced Practice Registered Nurse, Nurse Practitioner |
APRN_CNS | Advanced Practice Registered Nurse, Clinical Nurse Specialist |
APRN_CRNA | Advanced Practice Registered Nurse, Certified Registered Nurse Anesthetist |
APRN_CNM | Advanced 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.
| Code | Meaning | Text response |
|---|---|---|
1 | License found and validated | 1|State License API Result: ... |
2 | License not found | 2|License not found. |
3 | License found, but the last name does not match | 3|License invalid: Name mismatch. |
4 | Error (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.
| Message | What to do |
|---|---|
Invalid login | Check your API username and password. |
| Expired login | Your 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
- Send a last name when you want a name check.
SL_lnis optional and usually not needed. It helps in the few states that return more than one result for a license number. - Route on the result code, not the status text. Status wording varies by state.
- Retry errors caused by state websites after a short delay before treating a license as unverified.
- Store each result with the date and time of the check for your audit trail. Use
SL_psView=onwhen you need a copy of the state board's own result. - Keep credentials on your server. Don't place API credentials in browser code or mobile apps.
How DEA Lookup.com helps
- State Medical License API: real-time primary source state license verification in all 50 states and Washington, DC, with disciplinary actions where the state board publishes them.
- DEA API Data Engine: primary source DEA registration data inside your own applications.
- DEA License Lookup: search and verify DEA registrations and state licenses without writing code.
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.
DEA Lookup.com is not affiliated with the Drug Enforcement Administration or any state licensing board.
