I want to fetch all the drugList, lets say ->
I tried using
https://api.fda.gov/drug/event.json?count=patient.drug.openfda.manufacturer_name.exact It jst fetch the high level manufacturer name now to fetch the In-depth.
The current OpenFDA Adverse Event dataset isn't really well suited for a query like that. An API for the drug SPLs (Structured Product Labels) is coming soon according to https://open.fda.gov/about/ though.
For now, check out the following resources for the data you're looking for:
- NLM Pillbox API (http://pillbox.nlm.nih.gov) - recommended - most developer friendly
- NIH DailyMed bulk downloads and APIs (http://dailymed.nlm.nih.gov/dailymed/help.cfm#webservices)
- FDA National Drug Code Directory bulk download and web search (http://www.fda.gov/drugs/informationondrugs/ucm142438.htm)