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

# \donttest{
  # This function requires an internet connection and downloads data from FDA
  get_fda_drugs_approved("aspirin")
#> # A tibble: 16 × 9
#>    application_number sponsor   brand generic type  approval_date strength form 
#>    <chr>              <chr>     <chr> <chr>   <chr> <date>        <chr>    <chr>
#>  1 ANDA214039         GRANULES  ACET… ACETAM… ANDA  2021-02-23    250MG; … TABL…
#>  2 ANDA074951         STEVENS J BUTA… ASPIRI… ANDA  1998-08-31    325MG; … CAPS…
#>  3 ANDA207944         PH HEALTH ASPI… ASPIRI… ANDA  2017-01-18    25MG; 2… CAPS…
#>  4 ANDA209048         DR REDDYS ASPI… ASPIRI… ANDA  2018-10-10    25MG; 2… CAPS…
#>  5 ANDA205230         LGM PHAR… BUTA… ASPIRI… ANDA  2021-10-18    500MG; … CAPS…
#>  6 ANDA206392         AMNEAL P… ASPI… ASPIRI… ANDA  2016-03-08    25MG; 2… CAPS…
#>  7 ANDA078149         MPP PHAR… BUTA… ASPIRI… ANDA  2007-06-13    325MG; … CAPS…
#>  8 ANDA075141         GALT PHA… ORPH… ASPIRI… ANDA  1998-05-29    385MG; … TABL…
#>  9 ANDA075141         GALT PHA… ORPH… ASPIRI… ANDA  1998-05-29    770MG; … TABL…
#> 10 ANDA209929         MICRO LA… ASPI… ASPIRI… ANDA  2021-08-11    25MG; 2… CAPS…
#> 11 NDA020802          HALEON U… EXCE… ACETAM… NDA   1998-01-14    250MG; … TABL…
#> 12 ANDA086996         SANDOZ    LANO… ASPIRI… ANDA  1981-12-28    325MG; … CAPS…
#> 13 ANDA211695         AUROBIND… ACET… ACETAM… ANDA  2022-02-02    250MG; … TABL…
#> 14 ANDA075794         PERRIGO   ACET… ACETAM… ANDA  2001-11-26    250MG; … TABL…
#> 15 ANDA075231         LGM PHAR… BUTA… ASPIRI… ANDA  2001-11-30    325MG; … CAPS…
#> 16 ANDA040910         EPIC PHA… OXYC… ASPIRI… ANDA  2020-07-16    325MG; … TABL…
#> # ℹ 1 more variable: route <chr>
  get_fda_drugs_approved("lipitor")
#> # A tibble: 4 × 9
#>   application_number sponsor brand   generic  type  approval_date strength form 
#>   <chr>              <chr>   <chr>   <chr>    <chr> <date>        <chr>    <chr>
#> 1 NDA020702          UPJOHN  LIPITOR ATORVAS… NDA   1996-12-17    EQ 80MG… TABL…
#> 2 NDA020702          UPJOHN  LIPITOR ATORVAS… NDA   1996-12-17    EQ 20MG… TABL…
#> 3 NDA020702          UPJOHN  LIPITOR ATORVAS… NDA   1996-12-17    EQ 40MG… TABL…
#> 4 NDA020702          UPJOHN  LIPITOR ATORVAS… NDA   1996-12-17    EQ 10MG… TABL…
#> # ℹ 1 more variable: route <chr>
# }