Understanding the Query Results

For search queries (such as: https://api.fda.gov/drug/drugsfda.json?limit=1), the results section includes matching Drugs@FDA results returned by the API.

Each Drugs@FDA entry consists of four major sections:

  • Application data: The top level information which contains the details of the application.
  • Product data: A list of all products included in the application with details on each.
  • Submissions data: A list of all submissions associated with the application with details of each.
  • An openfda section: An annotation with additional identifiers associate with the application number, if available.

For count queries (such as: https://api.fda.gov/drug/drugsfda.json?count=products.route.exact&limit=10), the results section will look something like the following:

{
  "results": [
    {
      "term": "ORAL",
      "count": 14191
    },
    {
      "term": "INJECTION",
      "count": 4270
    },
    {
      "term": "TOPICAL",
      "count": 1438
    },
    {
      "term": "OPHTHALMIC",
      "count": 609
    },
    {
      "term": "INTRAVENOUS",
      "count": 580
    },
    {
      "term": "INHALATION",
      "count": 366
    },
    {
      "term": "ORAL-28",
      "count": 219
    },
    {
      "term": "SUBCUTANEOUS",
      "count": 119
    },
    {
      "term": "Injection",
      "count": 113
    },
    {
      "term": "NASAL",
      "count": 113
    }
  ]
}