0

Searching for medication "atorvastatin calcium" returns a total of 509, lots of generics manufacturers.

I want the API to return the unique medication strengths, is there a way to do that within the api? (looking to avoid deduping on my end)

https://api.fda.gov/drug/ndc.json?search=%22atorvastatin%20calcium%22&limit=100

example...

 "active_ingredients": [
    {
      "strength": "80 mg/1",
      "name": "ATORVASTATIN CALCIUM"
    }
  ],
  ,etc..


     "atorvastatin calcium 80 mg/1",
     "atorvastatin calcium 10 mg/1",
     "atorvastatin calcium 20 mg/1",
     ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.