Sign in | Sign up

Quick-Start: Simple Food Search

By default, our search returns results from all 3 of our data pools: USDA (common foods), Restaurant, Grocery. In this example, we are searching for cheddar cheese.

GET Request:

Response:
{
  "total_hits": 20277,
  "max_score": 10.676512,
  "hits": [
    {
      "_id": "513fceb375b8dbbc21000022",
      "fields": {
        "item_name": "Cheddar Cheese - 1 cup, diced",
        "brand_name": "USDA",
        "nf_calories": 531.96,
        "nf_total_fat": 43.74
      }
    },
    {
      "_id": "513fceb375b8dbbc2100001d",
      "fields": {
        "item_name": "Cheddar Cheese - 1 slice (1 oz)",
        "brand_name": "USDA",
        "nf_calories": 112.84,
        "nf_total_fat": 9.28
      }
    }
  ]
}

Quick Start Guides 1.1 Docs Home