Get Drug By NDC
GEThttps://api-drugs.dataandapis.com/v1/drugs/{ndc}
Get Drug By NDC es un endpoint de Drugs API. 135.000 medicamentos de la FDA por NDC, unidos a 17.900 informes de retirada.
Envía tu clave en la cabecera X-Api-Key. Cada llamada cuesta 1 token; una clave gratuita incluye 500 tokens al mes.
Petición
Parámetros de ruta
| Parámetro | Ejemplo | |
|---|---|---|
| ndc | 58151-155 | Obligatorio |
Petición de ejemplo
curl
curl "https://api-drugs.dataandapis.com/v1/drugs/58151-155" \
-H "X-Api-Key: YOUR_API_KEY"Node.js
const res = await fetch("https://api-drugs.dataandapis.com/v1/drugs/58151-155", {
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/58151-155",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Respuesta de ejemplo
Respuesta de ejemplo{
"ok": true,
"product_ndc": "58151-155",
"brand_name": "Lipitor",
"generic_name": "atorvastatin calcium",
"labeler": "Viatris Specialty LLC",
"product_type": "HUMAN PRESCRIPTION DRUG",
"dosage_form": "TABLET, FILM COATED",
"routes": [
"ORAL"
],
"dea_schedule": null,
"active_ingredients": [
{
"name": "ATORVASTATIN CALCIUM TRIHYDRATE",
"strength": "10 mg/1"
}
],
"brand_name_base": "Lipitor",
"marketing_category": "NDA",
"application_number": "NDA020702",
"pharm_classes": {},
"packaging": [
{
"package_ndc": "58151-155-77",
"description": "90 TABLET, FILM COATED in 1 BOTTLE (58151-155-77)",
"marketing_start_date": "20240501",
"sample": false
…
Ver la respuesta completa
Respuesta de ejemplo
{
"ok": true,
"product_ndc": "58151-155",
"brand_name": "Lipitor",
"generic_name": "atorvastatin calcium",
"labeler": "Viatris Specialty LLC",
"product_type": "HUMAN PRESCRIPTION DRUG",
"dosage_form": "TABLET, FILM COATED",
"routes": [
"ORAL"
],
"dea_schedule": null,
"active_ingredients": [
{
"name": "ATORVASTATIN CALCIUM TRIHYDRATE",
"strength": "10 mg/1"
}
],
"brand_name_base": "Lipitor",
"marketing_category": "NDA",
"application_number": "NDA020702",
"pharm_classes": {},
"packaging": [
{
"package_ndc": "58151-155-77",
"description": "90 TABLET, FILM COATED in 1 BOTTLE (58151-155-77)",
"marketing_start_date": "20240501",
"sample": false
…{
"ok": true,
"product_ndc": "58151-155",
"brand_name": "Lipitor",
"generic_name": "atorvastatin calcium",
"labeler": "Viatris Specialty LLC",
"product_type": "HUMAN PRESCRIPTION DRUG",
"dosage_form": "TABLET, FILM COATED",
"routes": [
"ORAL"
],
"dea_schedule": null,
"active_ingredients": [
{
"name": "ATORVASTATIN CALCIUM TRIHYDRATE",
"strength": "10 mg/1"
}
],
"brand_name_base": "Lipitor",
"marketing_category": "NDA",
"application_number": "NDA020702",
"pharm_classes": {},
"packaging": [
{
"package_ndc": "58151-155-77",
"description": "90 TABLET, FILM COATED in 1 BOTTLE (58151-155-77)",
"marketing_start_date": "20240501",
"sample": false
}
],
"rxnorm_rxcui": [
"259255",
"262095",
"617310",
"617311",
"617312",
"617314",
"617318",
"617320"
],
"unii": [
"48A5M73Z4Q"
],
"spl_set_id": "a60cc18b-0631-4cf0-b021-9f52224ece65",
"marketing": {
"start": "20240501",
"end": null,
"listing_expiration": "20271231"
},
"finished": true,
"recalls": {
"count": 0,
"active": false,
"reports": []
}
}
