Dosage Forms
GEThttps://api-drugs.dataandapis.com/v1/drugs/forms
Dosage Forms is an endpoint of the Drugs API. 135,000 FDA drug products by NDC, joined with 17,900 recall reports.
Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.
Request
This endpoint takes no parameters.
Example request
curl
curl "https://api-drugs.dataandapis.com/v1/drugs/forms" \
-H "X-Api-Key: YOUR_API_KEY"Node.js
const res = await fetch("https://api-drugs.dataandapis.com/v1/drugs/forms", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api-drugs.dataandapis.com/v1/drugs/forms",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Example response
Example response{
"ok": true,
"count": 8,
"forms": [
{
"dosage_form": "TABLET",
"count": 18606
},
{
"dosage_form": "POWDER",
"count": 15180
},
{
"dosage_form": "TABLET, FILM COATED",
"count": 11802
},
{
"dosage_form": "LIQUID",
"count": 10101
},
{
"dosage_form": "PELLET",
"count": 7439
},
{
"dosage_form": "CAPSULE",
"count": 6781
},
…
Show full response
Example response
{
"ok": true,
"count": 8,
"forms": [
{
"dosage_form": "TABLET",
"count": 18606
},
{
"dosage_form": "POWDER",
"count": 15180
},
{
"dosage_form": "TABLET, FILM COATED",
"count": 11802
},
{
"dosage_form": "LIQUID",
"count": 10101
},
{
"dosage_form": "PELLET",
"count": 7439
},
{
"dosage_form": "CAPSULE",
"count": 6781
},
…{
"ok": true,
"count": 8,
"forms": [
{
"dosage_form": "TABLET",
"count": 18606
},
{
"dosage_form": "POWDER",
"count": 15180
},
{
"dosage_form": "TABLET, FILM COATED",
"count": 11802
},
{
"dosage_form": "LIQUID",
"count": 10101
},
{
"dosage_form": "PELLET",
"count": 7439
},
{
"dosage_form": "CAPSULE",
"count": 6781
},
{
"dosage_form": "CREAM",
"count": 6747
},
{
"dosage_form": "SOLUTION",
"count": 5532
}
]
}
