Understanding the Query Results

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

Each NDC Directory entry consists of two major sections:

  • Product data: General information about the product.
  • Packaging information: The specific details of the product packaging.
  • An openfda section: An annotation with additional product identifiers, such as NUII and UPC, of the drug product, if available.

For count queries (such as: https://api.fda.gov/drug/ndc.json?count=dea_schedule), the results section will look something like the following:

{
  "meta": {
    "disclaimer": "Do not rely on openFDA to make decisions regarding medical care. While we make every effort to ensure that data is accurate, you should assume all results are unvalidated. We may limit or otherwise restrict your access to the API in line with our Terms of Service.",
    "terms": "https://open.fda.gov/terms/",
    "license": "https://open.fda.gov/license/",
    "last_updated": "2018-07-30"
  },
  "results": [
    {
      "term": "CII",
      "count": 2315
    },
    {
      "term": "CIV",
      "count": 2188
    },
    {
      "term": "CIII",
      "count": 756
    },
    {
      "term": "CV",
      "count": 212
    },
    {
      "term": "CI",
      "count": 6
    }
  ]
}