Skip to contents

Retrieves information about FDA-approved drug products from the official Drugs at FDA database that match a specific drug name using the RESTful API endpoint /drug/drugsfda.json?search=<drug_name>.

This includes details such as the application number, sponsor name, approval dates, product information, application type (NDA, ANDA, BLA), and submission details for brand name drugs, generic drugs, and therapeutic biological products approved by the FDA since 1939.

Usage

get_fda_drugs_approved(drug_name)

Source

FDA Drugs at FDA Database via openFDA: https://open.fda.gov/apis/drug/drugsfda/

Arguments

drug_name

A character string representing the name of the drug (brand name or generic name).

Value

A tibble with the following columns:

  • application_number: FDA application number (NDA, ANDA, or BLA)

  • sponsor: Name of the company that holds the application

  • brand: Brand or trade name of the approved product

  • generic: Generic (non-proprietary) name of the active ingredient

  • type: Application type (NDA, ANDA, BLA)

  • approval_date: Date the product was approved by FDA

  • strength: Dosage strength of the product

  • form: Pharmaceutical dosage form

  • route: Route of administration

Details

This function sends a GET request to the FDA openFDA API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.

The Drugs at FDA database contains information about drug products approved since 1939. The majority of labels, approval letters, and reviews are available for products approved since 1998. This database includes brand name drugs, generic drugs, and therapeutic biological products.

If the API request fails, returns no matches, or returns an error status code, the function returns NULL with an informative message.

Note

Requires an internet connection.

See also

Examples

if (interactive()) {
  get_fda_drugs_approved("aspirin")
  get_fda_drugs_approved("lipitor")
}