I have a question about parsing two specific variables from the Product Labeling Endpoint on OpenFDA:

  1. indications_and_usage
  2. dosage_and_administration

Ideally I would like to:

  1. Extract each indication and its abbreviation. E.g. drug: Keytruda would be Melanoma, Non-Small Cell Lung Cancer (NSCLC), etc..

  2. Extract each dosage (related to indication and population)

  3. Map the indication with the dosage

The request via the API returns a long text/string, which is unstructured and difficult to parse.

Some questions I have:

  1. Are there any existing libraries that can parse these two variables out?

  2. Is there a paid service that OpenFDA offers that contains a parsed or more structured format of these two variables?

  3. Are there any existing services by other companies that parses this information into a structured format?

I've already looked at the DailyMed XML files for these two sections (indications and dosages) and tried to parse it that way, however, the structure of the XML files for each drug is different and also difficult to parse.

Is this still the only way: Can we get the dosage list for a drug

1 Answer 1


Unfortunately, openFDA is not readily aware of libraries or companies that parse this information and does not offer paid services of any sort.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.