Is there a way to determine if a drug is generic or brand by passing in an NDC (National Drug Code) to the drug label endpoint (https://api.fda.gov/drug/label)?
There is a helpful strategy outlined in this post that entails using the following steps to determine if a given NDC is brand or generic:
- Use the https://rxnav.nlm.nih.gov/api-RxNorm.getNDCProperties.html endpoint to find the RXCUI for the NDC
- Pass the RXCUI to the https://rxnav.nlm.nih.gov/api-RxNorm.getRxConceptProperties.html endpoint in order to find the associated RxNorm Term Type (TTY) which can be used to indicate brand/generic
- If the TTY is one of the following:
'BN', 'SBDC', 'SBDF', 'SBDG', 'SBD', 'BPCK'then it is likely a brand name drug, otherwise it's likely a generic.
Here is the appendix detailing the various TTY values: https://www.nlm.nih.gov/research/umls/rxnorm/docs/2018/appendix5.html