DEA Standard API Documentation
By DEA Lookup.com, Inc. · Updated October 19, 2026
The Standard API is part of the DEA API Data Engine. For an overview of all four DEA APIs, see the DEA API Documentation.
Endpoint
The API runs on your own server, on the port set in the administrator interface:
POST https://[your server]/DeaApi
Request parameters
| # | Parameter | Required | Description |
|---|---|---|---|
| 1 | username | Yes | Your API username, set in the administrator interface. |
| 2 | password | Yes | Your API password. |
| 3 | deanumber | Yes | The DEA number to validate. |
| 4 | OutputType | No | PipeDelimited, XML, or JSON. If left out, the default set in the administrator interface is used. |
Example request
POST https://[your server]/DeaApi Content-Type: application/x-www-form-urlencoded username=YOUR_USERNAME&password=YOUR_PASSWORD&deanumber=AS1234563&OutputType=JSON
Response: registration found
JSON
{
"result_indicator": 1,
"dea_number": "AS1234563",
"bac": "A",
"drug_schedule": "2 2N 3 3N 4 5",
"expiration_date": "20280430",
"full_name": "SAMPLE PHARMACY INC",
"additional_name": "MAIN STREET PHARMACY",
"address": "100 MAIN ST",
"address_secondary": "SUITE 1",
"city": "ANYTOWN",
"state": "PA",
"zip": "12345",
"bac_subcode": "0",
"payment_indicator": "P",
"status": "Active",
"pro_desination": "",
"state_license": "PP000000",
"state_license_secondary": "CS000000",
"data_import_date": "10/18/2026"
}
XML
<?xml version="1.0" encoding="UTF-8"?> <response> <result_indicator>1</result_indicator> <dea_number>AS1234563</dea_number> <bac>A</bac> <drug_schedule>2 2N 3 3N 4 5</drug_schedule> <expiration_date>20280430</expiration_date> <full_name>SAMPLE PHARMACY INC</full_name> <additional_name>MAIN STREET PHARMACY</additional_name> <address>100 MAIN ST</address> <address_secondary>SUITE 1</address_secondary> <city>ANYTOWN</city> <state>PA</state> <zip>12345</zip> <bac_subcode>0</bac_subcode> <payment_indicator>P</payment_indicator> <status>Active</status> <pro_desination></pro_desination> <state_license>PP000000</state_license> <state_license_secondary>CS000000</state_license_secondary> <data_import_date>10/18/2026</data_import_date> </response>
Pipe-delimited
1|AS1234563|A|2 2N 3 3N 4 5|20280430|SAMPLE PHARMACY INC|MAIN STREET PHARMACY|100 MAIN ST|SUITE 1|ANYTOWN|PA|12345|0|P|Active||PP000000|CS000000|10/18/2026
Example data is fictional. Pipe-delimited fields are returned in the order shown in the field reference below.
Field reference
| # | Field | Description |
|---|---|---|
| 1 | result_indicator | 1 when the registration is found. |
| 2 | dea_number | The DEA registration number. |
| 3 | bac | Business activity code. See the table below. |
| 4 | drug_schedule | Authorized controlled substance schedules, separated by spaces, for example 2 2N 3 3N 4 5. |
| 5 | expiration_date | Registration expiration date in yyyyMMdd format. |
| 6 | full_name | Registrant name. |
| 7 | additional_name | Additional or doing-business-as name. |
| 8 | address | Address line 1. |
| 9 | address_secondary | Address line 2. |
| 10 | city | City. |
| 11 | state | Two-letter state code. |
| 12 | zip | ZIP code. |
| 13 | bac_subcode | Business activity subcode. See the table below. |
| 14 | payment_indicator | P = paid, E = fee exempt. |
| 15 | status | Active or Inactive. |
| 16 | pro_desination | Professional designation, for example MD, DO, DDS. |
| 17 | state_license | State license number listed on the DEA registration. |
| 18 | state_license_secondary | State controlled substance (CS) license number listed on the DEA registration. |
| 19 | data_import_date | Date the data was last retrieved from the DEA data server, when turned on in the administrator interface. |
Business activity codes (BAC)
| Code | Business activity |
|---|---|
| A | Pharmacy |
| B | Hospital/Clinic |
| C | Practitioner |
| D | Teaching Institution |
| E | Manufacturer |
| F | Distributor |
| G | Researcher |
| H | Analytical Lab |
| J | Importer |
| K | Exporter |
| L | Reverse Distributor |
| M | Mid-level Practitioner |
| N, P, R, S, T, U | Narcotic Treatment Program |
Business activity subcodes (pharmacies)
| Code | Subcode |
|---|---|
| 0 | Retail Pharmacy |
| 1 | Central Fill Pharmacy |
| 3 | Chain Pharmacy |
| 4 | Automated Dispensing System |
| 5 | Online Retail Pharmacy |
| 6 | Online Central Fill Pharmacy |
| 7 | Online Chain Pharmacy |
| 8 | Pharmacy, Military |
| 9 | Pharmacy, Federal |
| X | Mail Order Pharmacy |
Response: invalid or inactive DEA number
A correctly formatted DEA number that is not found, or is no longer active, returns result indicator 0:
{
"result_indicator": 0,
"message": "Invalid/inactive DEA number"
}
Response: errors
Errors return a result indicator, a detail value, and a message:
{
"result_indicator": 2,
"detail": "Error",
"message": "Invalid DEA number format"
}
| Result | Meaning |
|---|---|
2 | No DEA number in the request, or the DEA number is not correctly formatted |
3 | Invalid API credentials |
Integration tips
- Check more than a successful result. Confirm
statusisActive,expiration_dateis in the future,drug_schedulecovers the substance involved, andbacfits the transaction. - Verify the state license too. Pass
state_licenseandstateto the State Medical License API to confirm the license with the state board. - Save proof of registration. Use the Validation Certificate API to download the primary source registration PDF for your records.
- Log each result with the
data_import_datefor your audit trail. - Route on
result_indicator, not on message text.
How DEA Lookup.com helps
- DEA API Data Engine: daily-updated primary source DEA data inside your own applications, with flat-rate unlimited queries and responses in 10 milliseconds or less.
- State Medical License API: real-time primary source state license verification in all 50 states.
Related: DEA API Documentation, DEA Professional API Documentation, How to Verify a DEA Number, and How Distributors Verify DEA Registrations and State Licenses Before Shipping
Frequently asked questions
What does the DEA Standard API return?
For a valid DEA number, the Standard API returns the full DEA registration record: DEA number, business activity code, authorized drug schedules, expiration date, registrant name and additional name, address, business activity subcode, payment indicator, status, professional designation, state license and state controlled substance license numbers, and optionally the data import date.
How do I validate a DEA number with the API?
Send an HTTP POST request to the DEA API Data Engine with your API username and password and the DEA number in the deanumber parameter. A result indicator of 1 means the registration was found, 0 means the DEA number is invalid or inactive, and 2 means the DEA number is missing or incorrectly formatted.
What date format does the DEA Standard API use for expiration dates?
Expiration dates are returned in yyyyMMdd format. For example, 20280430 means April 30, 2028.
Does a successful DEA API result mean the prescriber can dispense or order any controlled substance?
No. A successful result confirms the registration exists in DEA data. You should also check that the status is active, the expiration date has not passed, the drug schedules cover the substance involved, and the business activity fits the transaction. Many organizations also verify the state license with the State Medical License API.
Can I choose JSON, XML, or delimited output?
Yes. Set the OutputType parameter to PipeDelimited, XML, or JSON on each request, or set a default output type for all requests in the DEA API Data Engine administrator interface.
DEA Lookup.com is not affiliated with the Drug Enforcement Administration.
