Technical Docs
  • Introduction
  • Guides
    • Getting Started
    • Attribution Guidelines
    • Core Concepts
      • Adherence Score
      • Programs, Diets, and Rulesets
      • User Profile
      • Datasets
    • Tutorials and Walkthroughs
      • Creating a Meal Plan
      • Food Log Guide
      • Pagination
      • Executing Multiple Mutations
  • Knowledge Base
    • How-to guides
      • How to add desserts to your meal plan
      • How to log your custom recipe
      • How to generate a Meal Plan based on a template
    • Common errors
      • Meal Plan generation
    • FAQs
      • Getting Started on Suggestic
      • API and Authentication
      • Device Compatibility
      • Meal Plan
      • Nutrition
      • Programs
      • Recipes
  • HELPFUL RESOURCES
    • Deprecated Features
    • Glossary
    • Integrations
      • Building a No-code Meal Planning Application
        • Step 1: Creating the Integromat Scenario and Google Forms Connection
        • Step 2: Creating a User, Generating a Meal Plan, and Retrieving It
        • Step 3: Crafting Our PDF and Connecting PDFMonkey
        • Step 4: Sending The Document to Our User
  • Packages and SDKs
    • Node Package (NPM)
  • GraphQL
    • GraphQL Overview
    • Authentication
    • Calling GraphQL
    • GraphQL Playground
  • Changelog
    • 2025
      • March
  • Suggestic API Reference
    • Search
      • Food Log
        • Branded Foods Search
        • Common Foods Search
        • My Branded Food Search
        • My Common Foods Search
        • Food Search
        • Legacy
          • Autocomplete
          • Barcode Search
      • Recipe Search
        • Recipe Search
        • Recipe Search by Name or Ingredients
        • Recipe Search by Ingredients
      • Meal Plan Template Search
      • Profile Search
      • Restaurant Search
        • Restaurant Search by Location
        • Restaurant Search
    • Queries
      • Appointments
        • Upcoming Appointments
        • Past Appointments
        • Appointments Types
      • Assessments
        • Assessment Answers
        • Display Assessments
        • Supplement Recommendations
        • User Assessments
      • Content
        • Content Library
        • Content Categories
        • Content Tags
        • Journey
      • Food Log
        • Frequently Logged
        • Food Log Entries
        • Macros Aggregation
        • Micronutrients Aggregation
        • Macro Goals
        • Recently Logged
        • User's Foods and Recipes
          • User's Recipes
        • Legacy
          • Food Log Entries (Legacy)
          • Own Food Items
          • Own Food Item
          • Own Food Item by Id
          • Own Items
          • Own Recipe
          • Own Recipes
      • Lab Tests
        • Biomarker Categories
        • Biomarker Units
        • Biomarker Catalog
        • Biomarkers
        • Biomarker Results
        • Historical Biomarker Results
        • Historical Results by Biomarker
        • Lab Test Reports
        • Recommended Supplements
        • Recommended Articles
      • Meal Plan
        • Meal Plan
        • Custom Meal Plan
        • Simplified Meal Tracking
          • Meal Tracker
        • Meal Plan Config
        • Meal Planner (deprecated)
      • Program
        • All Programs
        • Program Details
      • Recipes
        • Equivalent Recipes (Macros)
        • Equivalent Recipes (Calories)
        • Recipe by Id
        • Recipes By MealTime
        • Recipes By Tag
        • Recipe Swap Options
        • Popular Recipes
        • Favorite Recipes
        • Premium Program Recipes
      • Restaurants
        • Restaurant By Id
        • Menu Items
        • Menu Item By Id
        • Menu Item by Program
        • Recommend Menu Items
      • Restrictions
        • Restrictions
        • Restriction by ID
      • Shopping List
        • Shopping List by Aisle
        • Shopping List by Recipes
      • Subscriptions
        • Subscription List
      • Supplement Plans
        • Supplement plan list
        • Supplement list
      • Tracking
        • Activity and Exercise
        • Checklists
          • Intake Checklist
        • Daily Recap
          • Get Daily Recap
          • Get Daily Recaps
          • Get Daily Recap Questions
          • Get Daily Mood Summary
        • Inisghts
        • Wellness Score
        • Sleep
          • Sleep Time
          • Sleep Quality Score
        • Steps
        • Water and Hydration
        • Heart Rate
        • HRV
        • Weight Tracker
      • USDA Food
      • Users
        • Users
        • User Profile
      • WGPT
        • Assistants
        • Journey
        • Guardrails
    • Mutations
      • Appointments
        • Update Appointment Credits
      • Assessments
        • New User Assessments
        • Set User Answers
      • Content
        • Mark Content as Read
      • Feedback
      • Food Log
        • Log Entries
          • Food Log
            • Add a Food Log Entry
            • Delete a Food Log Entry
          • Meal Log (Legacy)
            • Create Log Entry
            • Update Log Entry
            • Remove Log Entry
        • User's Foods and Recipes
          • Create a User Recipe
          • Create my Branded Food
          • Create my Common Foods
          • Update a User Recipe
          • Delete a User Recipe
          • Legacy: "Own" Recipe
            • Create "Own" Recipe
            • Update "Own" Recipe
            • Remove "Own" Recipe
        • AI Food Log
          • Process Ai Food
        • Legacy (ownFoods and ownRecipes)
          • Create "own" Food Item
          • Update "own Food"
          • Remove "own" Food Item
      • Journey Status
        • Start Journeys
        • Journey Status
        • Toggle Task Completed
      • Lab Tests
        • Add Biomarker
        • Update Biomarker
        • Add Biomarker Result
        • Add Biomarker Category
        • Update Biomarker Category
        • Remove Biomarker Category
        • Add Lab Test Report
        • Delete Lab Test Report
        • Update Lab Test Report
        • Create Recommended Supplement
        • Update Recommended Supplement
        • Remove Recommended Supplement
        • Create Recommended Article
        • Update Recommended Article
        • Remove Recommended Supplement
      • Meal Plan
        • Create Meal Plan Template
          • Custom Options
          • From Days
          • From Scratch
        • Assign a Meal Plan Template to a User
        • Generate Simple Meal Plan
        • Generate Meal Plan
        • Start Over Meal Plan
        • Swap Meals
        • Simplified Meal Tracking
          • Create a Meal Tracker Entry
        • Remove Meal Plan
        • Remove Meal Plan Recipe
      • Recipes
        • Add new recipe
        • Add Favorite Recipe
      • Shopping List
        • Add Multiple Recipes to the Shopping List
        • Add a Recipe to the Shopping List
        • Bulk Check/Uncheck Items
        • Check/Uncheck an Item
        • Clear Checked Items
        • Clear Shopping List
        • Remove Recipe
        • Update Serving Number
      • Subscriptions
        • Update Subscription
      • Supplement Plans
        • Create supplement plan for user
        • Update user supplement plan
        • Add Supplement
        • Update Supplement
      • Tracking
        • Activity and Exercise
          • Add Exercise Entry
          • Delete Exercise Entry
        • Checklists
          • Create my Checklist Item
          • Delete my Checklist Item
        • Daily Recap
          • Create a daily recap question
          • Select Daily Recap Questions
          • Delete a Daily Recap Question
        • Sleep
          • Add Sleep Time
          • Add Sleep Quality Score
        • Steps
          • Add Steps Count
          • Delete Steps Count
        • Heart Rate
          • Add Heart Rate
          • Delete Heart Rate
        • HRV
          • Add HRV
          • Delete HRV
        • Water and Hydration
        • Weight
          • Add Weight Entry
          • Remove Weight Entry
        • User Tracker Goals
          • Create User Goal
          • Update User Goal
          • Remove User Goal
      • Users
        • Authenticate using a Magic Link
        • Create User
        • Custom Attributes
        • Delete a User Account
        • Login User
        • Merge User Accounts
        • Request Reset Password
        • Reset Password
        • Request Password Reset email
        • Sensitive Profile Attributes
        • Update Profile
        • Update User's Program
        • User's Restrictions
        • Update Meal Plan Settings
        • User's Goals
        • Legacy User Mutations
          • Legacy | User's Biomarkers
          • User's Meal Plan Settings (deprecated)
      • WGPT
        • Add user to journey
  • Objects
    • Appointments
      • Appointment
      • Appointment Type
      • Appointment Credit
      • Attendee
      • Coach
    • Common
      • User
      • Adherence
      • Aisle Name
      • CPC
      • CPCIngredientGroup
      • Meal Times
      • Menu Item
      • Own Serving
      • Own Nutrients
      • MacroNutrientsRangeInput
      • Range
      • Tracker
      • Restaurant
    • Food Logs
      • Food Filter
      • Ingredient Amount
      • Ingredients
      • Own Recipe Ingredient
      • Meal Type
      • Nutrients
        • Nutrient Enum
      • Portions
      • Servings
      • AI Food Log
        • Food Analysis
    • Meal Plan
      • Debug Meal Plan Conditions
      • Meal
      • Meal Plan Day
      • Maximum Time per Meal
      • Maximum Ingredient Count
      • Meal Plan Template
      • Simple Meal Plan Filters
    • Recipe
      • Recipe
        • Tags
        • Cuisines
      • Recipe Swap Options
      • Parsed Ingredient Lines
      • Nutritional Info
      • Nutrients Per Serving
      • Calories Per Serving
      • Relative Calories
      • Source
      • Ingredients
      • Units of Measurement
    • Lab Tests
      • Article
      • Biomarker
    • Supplement
    • Assessments
      • Question
      • Answer
    • Content
      • Content Library
      • Content Categories
      • Content Tag
    • WGPT
      • Journey
      • dayJourney
      • Interaction
  • Case Studies
    • Reverse Health Case Study
Powered by GitBook
On this page
  • Characteristics
  • How to use query variables
  • Structure
  • Example
  • Common and Branded foods
  • Common Foods and Recipes
  • Common Foods using query variables

Was this helpful?

  1. Suggestic API Reference
  2. Search
  3. Food Log

Food Search

PreviousMy Common Foods SearchNextLegacy

Last updated 3 years ago

Was this helpful?

The foodSearch is a powerful search query that allows users to search for food that can be logged such as recipes, USDA, branded food, products with barcodes, restaurants, etc. that matches the desired search criteria.

The FoodSearch query allows users to nest their search queries. Results are the same as the queries will be used separately. The advantage is that all the information is gathered in one response.

To use the FoodSearch query, place the query before the query name

query FoodSearch { search queries }

The following searched can be nested within the foodSearch, these can be combined or used separately.

Characteristics

  • Use one, two, or more query searches within the FoodSearch query

  • Allow users to select the . For instance, a user wants to search for recipes, common, branded, and packaged foods at the same time.

  • Use filters to introduce nutrient ranges for macros and macronutrients.

  • Retrieve which group each food belongs to.

  • Define to be sent as arguments in the FoodSearch query

  • Allow users to search for products introducing a specific

How to use query variables

Structure

In the FoodSearch query, define the variables which are sent as arguments, then, define the query variables in the TAB which is located at the bottom left side of the navigator.

Within the QUERY VARIABLES tab, write the variables in a JSON format, and then execute the query.

Example

Common and Branded foods

The following example searches common and branded foods criteria by adding the commonFoods and brandedFoods within the FoodSearch query.

 
query FoodSearch {
  commonFoods: commonFoods(query: "cookie", first: 2) {
    edges {
      node {
        id
        name
        description
        portions {
          amount
          modifier
          gramWeight
        }
        nutrients {
          id
          amount
          name
          unit
        }
      }
    }
  }
  brandedFoods: brandedFoods(query: "oreo", first: 2) {
    edges {
      node {
        id
        name
        gtinUpc
        brandOwner
        servingSize
        servingSizeUnit
        nutrients {
          id
          amount
          name
          unit
        }
      }
    }
  }
}
{
  "data": {
    "commonFoods": {
      "edges": [
        {
          "node": {
            "id": "Q29tbW9uRm9vZE5vZGU6MTcxMzY4",
            "name": "Fruit baby cookie babyfood",
            "description": "Babyfood, cookie, baby, fruit",
            "portions": [
              {
                "amount": 1,
                "modifier": "cookie",
                "gramWeight": 8
              }
            ],
            "nutrients": [
              {
                "id": 1114,
                "amount": 0,
                "name": "Vitamin D (D2 + D3)",
                "unit": "UG"
              },
              {
                "id": 1110,
                "amount": 0,
                "name": "Vitamin D (D2 + D3), International Units",
                "unit": "IU"
              },
              {
                "id": 1123,
                "amount": 175,
                "name": "Lutein + zeaxanthin",
                "unit": "UG"
              },
              {
                "id": 1109,
                "amount": 1.48,
                "name": "Vitamin E (alpha-tocopherol)",
                "unit": "MG"
              },
              {
                "id": 1057,
                "amount": 0,
                "name": "Caffeine",
                "unit": "MG"
              },
              {
                "id": 1265,
                "amount": 1.738,
                "name": "16:0",
                "unit": "G"
              },
              {
                "id": 1266,
                "amount": 0.84,
                "name": "18:0",
                "unit": "G"
              },
             
              {
                "id": 1275,
                "amount": 0.051,
                "name": "16:1",
                "unit": "G"
              },
              {
                "id": 1278,
                "amount": 0,
                "name": "20:5 n-3 (EPA)",
                "unit": "G"
              },
              {
                "id": 1280,
                "amount": 0,
                "name": "22:5 n-3 (DPA)",
                "unit": "G"
              },
              {
                "id": 1093,
                "amount": 9,
                "name": "Sodium, Na",
                "unit": "MG"
              },
              {
                "id": 1098,
                "amount": 0.04,
                "name": "Copper, Cu",
                "unit": "MG"
              },
              {
                "id": 1101,
                "amount": 0.22,
                "name": "Manganese, Mn",
                "unit": "MG"
              },
              {
                "id": 1079,
                "amount": 3.4,
                "name": "Fiber, total dietary",
                "unit": "G"
              },
              {
                "id": 1089,
                "amount": 2.9,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1090,
                "amount": 30,
                "name": "Magnesium, Mg",
                "unit": "MG"
              },
              {
                "id": 1091,
                "amount": 189,
                "name": "Phosphorus, P",
                "unit": "MG"
              },
              {
                "id": 1003,
                "amount": 6.8,
                "name": "Protein",
                "unit": "G"
              },
              {
                "id": 1007,
                "amount": 1.2,
                "name": "Ash",
                "unit": "G"
              },
              {
                "id": 1018,
                "amount": 0,
                "name": "Alcohol, ethyl",
                "unit": "G"
              }
            ]
          }
        },
        {
          "node": {
            "id": "Q29tbW9uRm9vZE5vZGU6MTcyMjI3",
            "name": "Ice cream cookie sandwich",
            "description": "Ice cream cookie sandwich",
            "portions": [
              {
                "amount": 1,
                "modifier": "serving",
                "gramWeight": 82
              }
            ],
            "nutrients": [
              {
                "id": 1003,
                "amount": 3.7,
                "name": "Protein",
                "unit": "G"
              },
              {
                "id": 1007,
                "amount": 0.55,
                "name": "Ash",
                "unit": "G"
              },
              {
                "id": 1018,
                "amount": 0,
                "name": "Alcohol, ethyl",
                "unit": "G"
              },
              {
                "id": 1062,
                "amount": 1003,
                "name": "Energy",
                "unit": "kJ"
              },
              {
                "id": 1079,
                "amount": 1.2,
                "name": "Fiber, total dietary",
                "unit": "G"
              },
              {
                "id": 1089,
                "amount": 1.1,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1090,
                "amount": 16,
                "name": "Magnesium, Mg",
                "unit": "MG"
              },
              {
                "id": 1091,
                "amount": 54,
                "name": "Phosphorus, P",
                "unit": "MG"
              },
              {
                "id": 1093,
                "amount": 162,
                "name": "Sodium, Na",
                "unit": "MG"
              },
              {
                "id": 1098,
                "amount": 0.106,
                "name": "Copper, Cu",
                "unit": "MG"
              },
              {
                "id": 1101,
                "amount": 0.225,
                "name": "Manganese, Mn",
                "unit": "MG"
              },
              {
                "id": 1104,
                "amount": 122,
                "name": "Vitamin A, IU",
                "unit": "IU"
              },
              {
                "id": 1178,
                "amount": 0.01,
                "name": "Vitamin B-12",
                "unit": "UG"
              },
              {
                "id": 1185,
                "amount": 1.3,
                "name": "Vitamin K (phylloquinone)",
                "unit": "UG"
              },
              {
                "id": 1187,
                "amount": 5,
                "name": "Folate, food",
                "unit": "UG"
              },
              {
                "id": 1246,
                "amount": 0,
                "name": "Vitamin B-12, added",
                "unit": "UG"
              },
              {
                "id": 1253,
                "amount": 6,
                "name": "Cholesterol",
                "unit": "MG"
              },
              {
                "id": 1258,
                "amount": 1.663,
                "name": "Fatty acids, total saturated",
                "unit": "G"
              },
              {
                "id": 1261,
                "amount": 0.05,
                "name": "8:0",
                "unit": "G"
              },
              {
                "id": 1263,
                "amount": 0.004,
                "name": "12:0",
                "unit": "G"
              },
              {
                "id": 1264,
                "amount": 0.04,
                "name": "14:0",
                "unit": "G"
              },
              {
                "id": 1272,
                "amount": 0.001,
                "name": "22:6 n-3 (DHA)",
                "unit": "G"
              },
              {
                "id": 1275,
                "amount": 0.006,
                "name": "16:1",
                "unit": "G"
              },
              {
                "id": 1278,
                "amount": 0.001,
                "name": "20:5 n-3 (EPA)",
                "unit": "G"
              },
              {
                "id": 1280,
                "amount": 0,
                "name": "22:5 n-3 (DPA)",
                "unit": "G"
              },
              {
                "id": 1004,
                "amount": 7.4,
                "name": "Total lipid (fat)",
                "unit": "G"
              },
              {
                "id": 1005,
                "amount": 39.6,
                "name": "Carbohydrate, by difference",
                "unit": "G"
              },
              {
                "id": 1008,
                "amount": 240,
                "name": "Energy",
                "unit": "KCAL"
              },
              {
                "id": 1051,
                "amount": 48.7,
                "name": "Water",
                "unit": "G"
              },
              {
                "id": 1057,
                "amount": 6,
                "name": "Caffeine",
                "unit": "MG"
              },
              {
                "id": 1058,
                "amount": 42,
                "name": "Theobromine",
                "unit": "MG"
              },
              {
                "id": 2000,
                "amount": 21.3,
                "name": "Sugars, total including NLEA",
                "unit": "G"
              },
              {
                "id": 1087,
                "amount": 73,
                "name": "Calcium, Ca",
                "unit": "MG"
              },
              {
                "id": 1092,
                "amount": 68,
                "name": "Potassium, K",
                "unit": "MG"
              },
              {
                "id": 1095,
                "amount": 0.32,
                "name": "Zinc, Zn",
                "unit": "MG"
              },
              {
                "id": 1103,
                "amount": 3.1,
                "name": "Selenium, Se",
                "unit": "UG"
              },
              {
                "id": 1109,
                "amount": 0.4,
                "name": "Vitamin E (alpha-tocopherol)",
                "unit": "MG"
              },
              {
                "id": 1110,
                "amount": 0,
                "name": "Vitamin D (D2 + D3), International Units",
                "unit": "IU"
              },
              {
                "id": 1123,
                "amount": 6,
                "name": "Lutein + zeaxanthin",
                "unit": "UG"
              },
              {
                "id": 1167,
                "amount": 0.237,
                "name": "Niacin",
                "unit": "MG"
              },
              {
                "id": 1170,
                "amount": 0.115,
                "name": "Pantothenic acid",
                "unit": "MG"
              },
              {
                "id": 1175,
                "amount": 0.028,
                "name": "Vitamin B-6",
                "unit": "MG"
              },
              {
                "id": 1180,
                "amount": 8,
                "name": "Choline, total",
                "unit": "MG"
              },
              {
                "id": 1186,
                "amount": 0,
                "name": "Folic acid",
                "unit": "UG"
              },
              {
                "id": 1190,
                "amount": 5,
                "name": "Folate, DFE",
                "unit": "UG"
              },
              {
                "id": 1242,
                "amount": 0,
                "name": "Vitamin E, added",
                "unit": "MG"
              },
              {
                "id": 1259,
                "amount": 0,
                "name": "4:0",
                "unit": "G"
              },
              {
                "id": 1260,
                "amount": 0.004,
                "name": "6:0",
                "unit": "G"
              },
              {
                "id": 1262,
                "amount": 0.04,
                "name": "10:0",
                "unit": "G"
              },
              {
                "id": 1265,
                "amount": 0.211,
                "name": "16:0",
                "unit": "G"
              },
              {
                "id": 1266,
                "amount": 1.314,
                "name": "18:0",
                "unit": "G"
              },
              {
                "id": 1268,
                "amount": 4.144,
                "name": "18:1",
                "unit": "G"
              },
              {
                "id": 1269,
                "amount": 0.798,
                "name": "18:2",
                "unit": "G"
              },
              {
                "id": 1270,
                "amount": 0.043,
                "name": "18:3",
                "unit": "G"
              },
              {
                "id": 1271,
                "amount": 0.002,
                "name": "20:4",
                "unit": "G"
              },
              {
                "id": 1276,
                "amount": 0,
                "name": "18:4",
                "unit": "G"
              },
              {
                "id": 1277,
                "amount": 0,
                "name": "20:1",
                "unit": "G"
              },
              {
                "id": 1279,
                "amount": 0,
                "name": "22:1",
                "unit": "G"
              },
              {
                "id": 1292,
                "amount": 4.15,
                "name": "Fatty acids, total monounsaturated",
                "unit": "G"
              },
              {
                "id": 1293,
                "amount": 0.847,
                "name": "Fatty acids, total polyunsaturated",
                "unit": "G"
              }
            ]
          }
        }
      ]
    },
    "brandedFoods": {
      "edges": [
        {
          "node": {
            "id": "QnJhbmRlZEZvb2ROb2RlOjM1MDcyNw==",
            "name": "Nabisco oreo cookies oreo 1x10.700 oz",
            "gtinUpc": "00044000042554",
            "brandOwner": "Mondelez Int. US (0074819091009)",
            "servingSize": 29,
            "servingSizeUnit": "g",
            "nutrients": [
              {
                "id": 1162,
                "amount": 0,
                "name": "Vitamin C, total ascorbic acid",
                "unit": "MG"
              },
              {
                "id": 1004,
                "amount": 20.69,
                "name": "Total lipid (fat)",
                "unit": "G"
              },
              {
                "id": 1005,
                "amount": 72.41,
                "name": "Carbohydrate, by difference",
                "unit": "G"
              },
              {
                "id": 2000,
                "amount": 44.83,
                "name": "Sugars, total including NLEA",
                "unit": "G"
              },
              {
                "id": 1087,
                "amount": 40,
                "name": "Calcium, Ca",
                "unit": "MG"
              },
              {
                "id": 1089,
                "amount": 3.48,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1092,
                "amount": 138,
                "name": "Potassium, K",
                "unit": "MG"
              },
              {
                "id": 1093,
                "amount": 345,
                "name": "Sodium, Na",
                "unit": "MG"
              },
              {
                "id": 1253,
                "amount": 0,
                "name": "Cholesterol",
                "unit": "MG"
              },
              {
                "id": 1257,
                "amount": 0,
                "name": "Fatty acids, total trans",
                "unit": "G"
              },
              {
                "id": 1258,
                "amount": 6.9,
                "name": "Fatty acids, total saturated",
                "unit": "G"
              },
              {
                "id": 1003,
                "amount": 3.45,
                "name": "Protein",
                "unit": "G"
              },
              {
                "id": 1079,
                "amount": 3.4,
                "name": "Fiber, total dietary",
                "unit": "G"
              }
            ]
          }
        },
        {
          "node": {
            "id": "QnJhbmRlZEZvb2ROb2RlOjM1MTUwOA==",
            "name": "Nabisco oreo cookies oreo 1x45.000 oz",
            "gtinUpc": "00044000013103",
            "brandOwner": "Mondelez Int. US (0074819091009)",
            "servingSize": 42,
            "servingSizeUnit": "g",
            "nutrients": [
              {
                "id": 1162,
                "amount": 0,
                "name": "Vitamin C, total ascorbic acid",
                "unit": "MG"
              },
              {
                "id": 1003,
                "amount": 4.76,
                "name": "Protein",
                "unit": "G"
              },
              {
                "id": 1004,
                "amount": 19.05,
                "name": "Total lipid (fat)",
                "unit": "G"
              },
              {
                "id": 1005,
                "amount": 71.43,
                "name": "Carbohydrate, by difference",
                "unit": "G"
              },
              {
                "id": 2000,
                "amount": 40.48,
                "name": "Sugars, total including NLEA",
                "unit": "G"
              },
              {
                "id": 1087,
                "amount": 44,
                "name": "Calcium, Ca",
                "unit": "MG"
              },
              {
                "id": 1089,
                "amount": 5.19,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1092,
                "amount": 155,
                "name": "Potassium, K",
                "unit": "MG"
              },
              {
                "id": 1093,
                "amount": 405,
                "name": "Sodium, Na",
                "unit": "MG"
              },
              {
                "id": 1253,
                "amount": 0,
                "name": "Cholesterol",
                "unit": "MG"
              },
              {
                "id": 1257,
                "amount": 0,
                "name": "Fatty acids, total trans",
                "unit": "G"
              },
              {
                "id": 1258,
                "amount": 4.76,
                "name": "Fatty acids, total saturated",
                "unit": "G"
              },
              {
                "id": 1079,
                "amount": 2.4,
                "name": "Fiber, total dietary",
                "unit": "G"
              }
            ]
          }
        }
      ]
    }
  }
}

Common Foods and Recipes

The following example searches common foods and recipes criteria within the FoodSearch query.

 
  query FoodSearch {
  commonFoods: commonFoods(query: "bread", first: 2) {
    edges {
      node {
        id
        name
        description
        portions {
          amount
          modifier
          gramWeight
        }
        nutrients {
          id
          amount
          name
          unit
        }
      }
    }
  }

     recipes: recipeSearch(query: "oreos") {
    edges {
      node {
        id
        name
      }
    }
  }
}
{
  "data": {
    "commonFoods": {
      "edges": [
        {
          "node": {
            "id": "Q29tbW9uRm9vZE5vZGU6MTcyNjg0",
            "name": "Rye bread",
            "description": "Bread, rye",
            "portions": [
              {
                "amount": 1,
                "modifier": "slice, thin",
                "gramWeight": 25
              },
              {
                "amount": 1,
                "modifier": "slice, snack-size",
                "gramWeight": 7
              },
              {
                "amount": 1,
                "modifier": "slice, regular",
                "gramWeight": 32
              },
              {
                "amount": 1,
                "modifier": "oz",
                "gramWeight": 28.35
              }
            ],
            "nutrients": [
              {
                "id": 1079,
                "amount": 5.8,
                "name": "Fiber, total dietary",
                "unit": "G"
              },
              
              {
                "id": 1104,
                "amount": 7,
                "name": "Vitamin A, IU",
                "unit": "IU"
              },
              {
                "id": 1180,
                "amount": 14.6,
                "name": "Choline, total",
                "unit": "MG"
              },
              {
                "id": 1110,
                "amount": 0,
                "name": "Vitamin D (D2 + D3), International Units",
                "unit": "IU"
              },
              {
                "id": 1279,
                "amount": 0,
                "name": "22:1",
                "unit": "G"
              },
              {
                "id": 1278,
                "amount": 0,
                "name": "20:5 n-3 (EPA)",
                "unit": "G"
              },
              {
                "id": 1280,
                "amount": 0,
                "name": "22:5 n-3 (DPA)",
                "unit": "G"
              },
              {
                "id": 1272,
                "amount": 0,
                "name": "22:6 n-3 (DHA)",
                "unit": "G"
              },
              {
                "id": 1018,
                "amount": 0,
                "name": "Alcohol, ethyl",
                "unit": "G"
              },
              {
                "id": 1190,
                "amount": 151,
                "name": "Folate, DFE",
                "unit": "UG"
              },
              {
                "id": 1062,
                "amount": 1084,
                "name": "Energy",
                "unit": "kJ"
              },
              {
                "id": 1008,
                "amount": 259,
                "name": "Energy",
                "unit": "KCAL"
              },
              {
                "id": 2000,
                "amount": 3.85,
                "name": "Sugars, total including NLEA",
                "unit": "G"
              },
              {
                "id": 1003,
                "amount": 8.5,
                "name": "Protein",
                "unit": "G"
              },
              {
                "id": 1007,
                "amount": 2.5,
                "name": "Ash",
                "unit": "G"
              },
              {
                "id": 1098,
                "amount": 0.186,
                "name": "Copper, Cu",
                "unit": "MG"
              },
              {
                "id": 1101,
                "amount": 0.824,
                "name": "Manganese, Mn",
                "unit": "MG"
              },
              {
                "id": 1089,
                "amount": 2.83,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1222,
                "amount": 0.299,
                "name": "Alanine",
                "unit": "G"
              },
              {
                "id": 1224,
                "amount": 2.603,
                "name": "Glutamic acid",
                "unit": "G"
              },
              {
                "id": 1225,
                "amount": 0.302,
                "name": "Glycine",
                "unit": "G"
              },
              {
                "id": 1226,
                "amount": 0.909,
                "name": "Proline",
                "unit": "G"
              },
              {
                "id": 1275,
                "amount": 0.012,
                "name": "16:1",
                "unit": "G"
              },
              {
                "id": 1263,
                "amount": 0,
                "name": "12:0",
                "unit": "G"
              },
              {
                "id": 1264,
                "amount": 0.011,
                "name": "14:0",
                "unit": "G"
              },
              {
                "id": 1253,
                "amount": 0,
                "name": "Cholesterol",
                "unit": "MG"
              },
              {
                "id": 1258,
                "amount": 0.626,
                "name": "Fatty acids, total saturated",
                "unit": "G"
              },
              {
                "id": 1178,
                "amount": 0,
                "name": "Vitamin B-12",
                "unit": "UG"
              },
              {
                "id": 1165,
                "amount": 0.434,
                "name": "Thiamin",
                "unit": "MG"
              },
              {
                "id": 1166,
                "amount": 0.335,
                "name": "Riboflavin",
                "unit": "MG"
              },
              {
                "id": 1292,
                "amount": 1.311,
                "name": "Fatty acids, total monounsaturated",
                "unit": "G"
              },
              {
                "id": 1293,
                "amount": 0.799,
                "name": "Fatty acids, total polyunsaturated",
                "unit": "G"
              },
              {
                "id": 1262,
                "amount": 0,
                "name": "10:0",
                "unit": "G"
              },
              {
                "id": 1265,
                "amount": 0.385,
                "name": "16:0",
                "unit": "G"
              },
              {
                "id": 1266,
                "amount": 0.23,
                "name": "18:0",
                "unit": "G"
              },
              {
                "id": 1268,
                "amount": 1.296,
                "name": "18:1",
                "unit": "G"
              },
              {
                "id": 1269,
                "amount": 0.739,
                "name": "18:2",
                "unit": "G"
              },
              {
                "id": 1270,
                "amount": 0.06,
                "name": "18:3",
                "unit": "G"
              },
              {
                "id": 1277,
                "amount": 0.003,
                "name": "20:1",
                "unit": "G"
              },
              {
                "id": 1004,
                "amount": 3.3,
                "name": "Total lipid (fat)",
                "unit": "G"
              },
              {
                "id": 1005,
                "amount": 48.3,
                "name": "Carbohydrate, by difference",
                "unit": "G"
              },
              {
                "id": 1087,
                "amount": 73,
                "name": "Calcium, Ca",
                "unit": "MG"
              },
              {
                "id": 1092,
                "amount": 166,
                "name": "Potassium, K",
                "unit": "MG"
              },
              {
                "id": 1095,
                "amount": 1.14,
                "name": "Zinc, Zn",
                "unit": "MG"
              },
              {
                "id": 1051,
                "amount": 37.3,
                "name": "Water",
                "unit": "G"
              },
              {
                "id": 1167,
                "amount": 3.805,
                "name": "Niacin",
                "unit": "MG"
              },
              {
                "id": 1170,
                "amount": 0.44,
                "name": "Pantothenic acid",
                "unit": "MG"
              },
              {
                "id": 1175,
                "amount": 0.075,
                "name": "Vitamin B-6",
                "unit": "MG"
              },
              {
                "id": 1212,
                "amount": 0.319,
                "name": "Isoleucine",
                "unit": "G"
              },
              {
                "id": 1213,
                "amount": 0.579,
                "name": "Leucine",
                "unit": "G"
              },
              {
                "id": 1214,
                "amount": 0.233,
                "name": "Lysine",
                "unit": "G"
              },
              {
                "id": 1216,
                "amount": 0.173,
                "name": "Cystine",
                "unit": "G"
              },
              {
                "id": 1219,
                "amount": 0.379,
                "name": "Valine",
                "unit": "G"
              },
              {
                "id": 1220,
                "amount": 0.325,
                "name": "Arginine",
                "unit": "G"
              },
              {
                "id": 1221,
                "amount": 0.182,
                "name": "Histidine",
                "unit": "G"
              },
              {
                "id": 1223,
                "amount": 0.442,
                "name": "Aspartic acid",
                "unit": "G"
              },
              {
                "id": 1227,
                "amount": 0.417,
                "name": "Serine",
                "unit": "G"
              },
              {
                "id": 1093,
                "amount": 603,
                "name": "Sodium, Na",
                "unit": "MG"
              },
              {
                "id": 1246,
                "amount": 0,
                "name": "Vitamin B-12, added",
                "unit": "UG"
              },
              {
                "id": 1242,
                "amount": 0,
                "name": "Vitamin E, added",
                "unit": "MG"
              },
              {
                "id": 1114,
                "amount": 0,
                "name": "Vitamin D (D2 + D3)",
                "unit": "UG"
              },
              {
                "id": 1103,
                "amount": 30.9,
                "name": "Selenium, Se",
                "unit": "UG"
              },
              {
                "id": 1162,
                "amount": 0.4,
                "name": "Vitamin C, total ascorbic acid",
                "unit": "MG"
              }
            ]
          }
        },
        {
          "node": {
            "id": "Q29tbW9uRm9vZE5vZGU6MTY3OTM1",
            "name": "Sweet yeast bread pan dulce bread",
            "description": "Bread, pan dulce, sweet yeast bread",
            "portions": [
              {
                "amount": 1,
                "modifier": "slice (average weight of 1 slice)",
                "gramWeight": 63
              }
            ],
            "nutrients": [
              {
                "id": 2000,
                "amount": 12.5,
                "name": "Sugars, total including NLEA",
                "unit": "G"
              },
              {
                "id": 1087,
                "amount": 86,
                "name": "Calcium, Ca",
                "unit": "MG"
              },
              {
                "id": 1092,
                "amount": 103,
                "name": "Potassium, K",
                "unit": "MG"
              },
              {
                "id": 1095,
                "amount": 0.84,
                "name": "Zinc, Zn",
                "unit": "MG"
              },
              {
                "id": 1098,
                "amount": 0.121,
                "name": "Copper, Cu",
                "unit": "MG"
              },
              {
                "id": 1101,
                "amount": 0.46,
                "name": "Manganese, Mn",
                "unit": "MG"
              },
              {
                "id": 1257,
                "amount": 1.103,
                "name": "Fatty acids, total trans",
                "unit": "G"
              },
              {
                "id": 1258,
                "amount": 2.183,
                "name": "Fatty acids, total saturated",
                "unit": "G"
              },
              {
                "id": 1261,
                "amount": 0,
                "name": "8:0",
                "unit": "G"
              },
              {
                "id": 1263,
                "amount": 0.002,
                "name": "12:0",
                "unit": "G"
              },
              {
                "id": 1264,
                "amount": 0.023,
                "name": "14:0",
                "unit": "G"
              },
              {
                "id": 1272,
                "amount": 0,
                "name": "22:6 n-3 (DHA)",
                "unit": "G"
              },
              {
                "id": 1273,
                "amount": 0.017,
                "name": "22:0",
                "unit": "G"
              },
              {
                "id": 1274,
                "amount": 0.002,
                "name": "14:1",
                "unit": "G"
              },
              {
                "id": 1275,
                "amount": 0.035,
                "name": "16:1",
                "unit": "G"
              },
              {
                "id": 1278,
                "amount": 0,
                "name": "20:5 n-3 (EPA)",
                "unit": "G"
              },
              {
                "id": 1280,
                "amount": 0.001,
                "name": "22:5 n-3 (DPA)",
                "unit": "G"
              },
              {
                "id": 1300,
                "amount": 0.012,
                "name": "17:0",
                "unit": "G"
              },
              {
                "id": 1301,
                "amount": 0.007,
                "name": "24:0",
                "unit": "G"
              },
              {
                "id": 1303,
                "amount": 0.001,
                "name": "16:1 t",
                "unit": "G"
              },
              {
                "id": 1312,
                "amount": 0.001,
                "name": "24:1 c",
                "unit": "G"
              },
              {
                "id": 1315,
                "amount": 2.542,
                "name": "18:1 c",
                "unit": "G"
              },
              {
                "id": 1316,
                "amount": 1.21,
                "name": "18:2 n-6 c,c",
                "unit": "G"
              },
              {
                "id": 1317,
                "amount": 0,
                "name": "22:1 c",
                "unit": "G"
              },
              {
                "id": 1323,
                "amount": 0,
                "name": "17:1",
                "unit": "G"
              },
              {
                "id": 1329,
                "amount": 0.896,
                "name": "Fatty acids, total trans-monoenoic",
                "unit": "G"
              },
              {
                "id": 1333,
                "amount": 0,
                "name": "15:1",
                "unit": "G"
              },
              {
                "id": 1404,
                "amount": 0.066,
                "name": "18:3 n-3 c,c,c (ALA)",
                "unit": "G"
              },
              {
                "id": 1405,
                "amount": 0.002,
                "name": "20:3 n-3",
                "unit": "G"
              },
              {
                "id": 1411,
                "amount": 0.009,
                "name": "22:4",
                "unit": "G"
              },
              {
                "id": 1062,
                "amount": 1537,
                "name": "Energy",
                "unit": "kJ"
              },
              {
                "id": 1075,
                "amount": 0,
                "name": "Galactose",
                "unit": "G"
              },
              {
                "id": 1079,
                "amount": 2.3,
                "name": "Fiber, total dietary",
                "unit": "G"
              },
              {
                "id": 1089,
                "amount": 2.87,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1090,
                "amount": 24,
                "name": "Magnesium, Mg",
                "unit": "MG"
              },
              {
                "id": 1003,
                "amount": 9.42,
                "name": "Protein",
                "unit": "G"
              },
              {
                "id": 1007,
                "amount": 1.08,
                "name": "Ash",
                "unit": "G"
              },
              {
                "id": 1009,
                "amount": 37.8,
                "name": "Starch",
                "unit": "G"
              },
              {
                "id": 1012,
                "amount": 4.05,
                "name": "Fructose",
                "unit": "G"
              },
              {
                "id": 1013,
                "amount": 0,
                "name": "Lactose",
                "unit": "G"
              },
              {
                "id": 1127,
                "amount": 0.77,
                "name": "Tocopherol, delta",
                "unit": "MG"
              },
              {
                "id": 1130,
                "amount": 0,
                "name": "Tocotrienol, gamma",
                "unit": "MG"
              },
              {
                "id": 1131,
                "amount": 0,
                "name": "Tocotrienol, delta",
                "unit": "MG"
              },
              {
                "id": 1165,
                "amount": 0.377,
                "name": "Thiamin",
                "unit": "MG"
              },
              {
                "id": 1166,
                "amount": 0.23,
                "name": "Riboflavin",
                "unit": "MG"
              },
              {
                "id": 1184,
                "amount": 10.4,
                "name": "Vitamin K (Dihydrophylloquinone)",
                "unit": "UG"
              },
              {
                "id": 1185,
                "amount": 1.6,
                "name": "Vitamin K (phylloquinone)",
                "unit": "UG"
              },
              {
                "id": 1057,
                "amount": 0,
                "name": "Caffeine",
                "unit": "MG"
              },
              {
                "id": 1058,
                "amount": 0,
                "name": "Theobromine",
                "unit": "MG"
              },
              {
                "id": 1110,
                "amount": 0,
                "name": "Vitamin D (D2 + D3), International Units",
                "unit": "IU"
              },
              {
                "id": 1123,
                "amount": 36,
                "name": "Lutein + zeaxanthin",
                "unit": "UG"
              },
              {
                "id": 1180,
                "amount": 29.1,
                "name": "Choline, total",
                "unit": "MG"
              },
              {
                "id": 1186,
                "amount": 68,
                "name": "Folic acid",
                "unit": "UG"
              },
              {
                "id": 1190,
                "amount": 155,
                "name": "Folate, DFE",
                "unit": "UG"
              },
              {
                "id": 1242,
                "amount": 0,
                "name": "Vitamin E, added",
                "unit": "MG"
              },
              {
                "id": 1259,
                "amount": 0,
                "name": "4:0",
                "unit": "G"
              },
              {
                "id": 1018,
                "amount": 0,
                "name": "Alcohol, ethyl",
                "unit": "G"
              },
              {
                "id": 1104,
                "amount": 23,
                "name": "Vitamin A, IU",
                "unit": "IU"
              },
              {
                "id": 1105,
                "amount": 5,
                "name": "Retinol",
                "unit": "UG"
              },
              {
                "id": 1106,
                "amount": 5,
                "name": "Vitamin A, RAE",
                "unit": "UG"
              },
              {
                "id": 1107,
                "amount": 3,
                "name": "Carotene, beta",
                "unit": "UG"
              },
              {
                "id": 1108,
                "amount": 1,
                "name": "Carotene, alpha",
                "unit": "UG"
              },
              {
                "id": 1114,
                "amount": 0,
                "name": "Vitamin D (D2 + D3)",
                "unit": "UG"
              },
              {
                "id": 1120,
                "amount": 1,
                "name": "Cryptoxanthin, beta",
                "unit": "UG"
              },
              {
                "id": 1122,
                "amount": 0,
                "name": "Lycopene",
                "unit": "UG"
              },
              {
                "id": 1187,
                "amount": 40,
                "name": "Folate, food",
                "unit": "UG"
              },
              {
                "id": 1246,
                "amount": 0,
                "name": "Vitamin B-12, added",
                "unit": "UG"
              },
              {
                "id": 1253,
                "amount": 30,
                "name": "Cholesterol",
                "unit": "MG"
              },
              {
                "id": 1177,
                "amount": 108,
                "name": "Folate, total",
                "unit": "UG"
              },
              {
                "id": 1178,
                "amount": 0.11,
                "name": "Vitamin B-12",
                "unit": "UG"
              },
              {
                "id": 1162,
                "amount": 1.2,
                "name": "Vitamin C, total ascorbic acid",
                "unit": "MG"
              }
            ]
          }
        }
      ]
    },
    "recipes": {
      "edges": [
        {
          "node": {
            "id": "UmVjaXBlOjNiNDYxMDdiLWQ3Y2MtNDBkNy05ZGQyLTMzMmQwNTZiYTdhMg==",
            "name": "Oreo Cookies Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjk2NTFkYTYzLTBlYmUtNDZjOS05YzUzLWFkYTNmY2NiOWQyZQ==",
            "name": "Supercharged Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjI4YTdiMmI3LTlmM2QtNGE3Mi1hYWJiLWQyNTlhMGIwZTFmMg==",
            "name": "Liquid Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmZlYzhhYjBjLTE2MDMtNDNkNi1iMTM2LTJiZGNhYTQxMDkzMg==",
            "name": "Fried Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmJmOWE5YTMzLTg0YjctNGIyNi1hYzMzLTY1OGEyOTFlMjdiNw==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmM5ZGYwMjM2LTI0N2UtNGIyNi1hYjFiLWZlNjhiZTI3NzAyYQ==",
            "name": "Ultimate Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjQyODY5YTQwLTY0ZTctNGRiYS05MmM1LWE5ZWIxY2UwZDgwMQ==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmMwNGU2Y2Q0LTYzZmItNDg0ZS04OTUyLWFjZTExNTVmMjgzYg==",
            "name": "Pumpkin Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjA3ODFhZmYxLTUyN2MtNDhmMy04MzFkLTI4NTAyY2FlMzAzMw==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjdjMTExNTRhLTRlYWItNDg1Yy05NjdiLThkNmQ2ZTI1MGY0NA==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjM0MTkwNWI0LThkMmEtNDVjNi1iZDI3LTMzNjVjYjk3OTNjZQ==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjI5YWNjZGUxLWFiODItNDI2Ni04MmY4LTI2YzkzZTI1ODliMQ==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjVhNmEyOWVmLWEzZmEtNDQ1MS1hNGYzLTg4NWEyY2MwZjM0Ng==",
            "name": "Yoda Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjI3MDljYzgwLTJiMmMtNDdhZC1hOTYxLTA5YTlhOGI0MzBhNA==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjZhMTFmYjFjLTZlNjctNGIyOS1iM2JmLTcwNWRhNmY4Y2ViNQ==",
            "name": "Santa Hat Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmU1YWMyNDJhLTE3NzUtNDQ1Yy1hODNhLTVkNjFkZGZiNTEzMQ==",
            "name": "Homemade Peppermint Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmFlM2FiODVkLWU4YjQtNDg1Ny1hNmE3LWQ4NTg0ZmYzOTZjZA==",
            "name": "Homemade Mint Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjkyNTMxMmVmLTU5MmUtNDU3Yi1hOTY2LWNmOTJiMDJmY2Y2Zg==",
            "name": "Homemade Celebration Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjRlZjE0MDZkLWZjM2UtNDA4ZC1hOTU5LTlhYzkxZGI5NTdhZQ==",
            "name": "Chocolate Covered Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmUzMmQyMmQxLWI5MjEtNDYyYS1iOGVmLThmMWIzYjU4NWMxMg==",
            "name": "Chocolate-Dipped Oreos"
          }
        }
      ]
    }
  }
}

Common Foods using query variables

In the following example, two query variables are defined to be sent as arguments in the query

query FoodSearch ($query: String, $first: Int){
  commonFoods: commonFoods(query: $query, first: $first) {
    edges {
      node {
        id
        name
        description
        portions {
          amount
          modifier
          gramWeight
        }
        nutrients {
          id
          amount
          name
          unit
        }
      }
    }
  }
{
  "data": {
    "commonFoods": {
      "edges": [
        {
          "node": {
            "id": "Q29tbW9uRm9vZE5vZGU6MTc0MTk1",
            "name": "Prepared frozen fish sticks fish",
            "description": "Fish, fish sticks, frozen, prepared",
            "portions": [
              {
                "amount": 1,
                "modifier": "stick (4\" x 1\" x 1/2\")",
                "gramWeight": 28
              },
              {
                "amount": 1,
                "modifier": "piece (4\" x 2\" x 1/2\")",
                "gramWeight": 57
              }
            ],
            "nutrients": [
              {
                "id": 1131,
                "amount": 0,
                "name": "Tocotrienol, delta",
                "unit": "MG"
              },
              {
                "id": 1129,
                "amount": 0,
                "name": "Tocotrienol, beta",
                "unit": "MG"
              },
              {
                "id": 1051,
                "amount": 49.5,
                "name": "Water",
                "unit": "G"
              },
              {
                "id": 1253,
                "amount": 28,
                "name": "Cholesterol",
                "unit": "MG"
              },
              {
                "id": 1257,
                "amount": 0.124,
                "name": "Fatty acids, total trans",
                "unit": "G"
              },
              {
                "id": 1258,
                "amount": 3.733,
                "name": "Fatty acids, total saturated",
                "unit": "G"
              },
              {
                "id": 1261,
                "amount": 0.006,
                "name": "8:0",
                "unit": "G"
              },
              {
                "id": 1263,
                "amount": 0.004,
                "name": "12:0",
                "unit": "G"
              },
              {
                "id": 1162,
                "amount": 0,
                "name": "Vitamin C, total ascorbic acid",
                "unit": "MG"
              },
              {
                "id": 1165,
                "amount": 0.122,
                "name": "Thiamin",
                "unit": "MG"
              },
              {
                "id": 1166,
                "amount": 0.116,
                "name": "Riboflavin",
                "unit": "MG"
              },
              {
                "id": 1177,
                "amount": 24,
                "name": "Folate, total",
                "unit": "UG"
              },
              {
                "id": 1178,
                "amount": 0.96,
                "name": "Vitamin B-12",
                "unit": "UG"
              },
              {
                "id": 1184,
                "amount": 0,
                "name": "Vitamin K (Dihydrophylloquinone)",
                "unit": "UG"
              },
              {
                "id": 1185,
                "amount": 4.7,
                "name": "Vitamin K (phylloquinone)",
                "unit": "UG"
              },
              {
                "id": 1187,
                "amount": 24,
                "name": "Folate, food",
                "unit": "UG"
              },
              {
                "id": 1210,
                "amount": 0.122,
                "name": "Tryptophan",
                "unit": "G"
              },
              {
                "id": 1211,
                "amount": 0.372,
                "name": "Threonine",
                "unit": "G"
              },
              {
                "id": 1215,
                "amount": 0.296,
                "name": "Methionine",
                "unit": "G"
              },
              {
                "id": 1217,
                "amount": 0.47,
                "name": "Phenylalanine",
                "unit": "G"
              },
              {
                "id": 1218,
                "amount": 0.286,
                "name": "Tyrosine",
                "unit": "G"
              },
              {
                "id": 1222,
                "amount": 0.546,
                "name": "Alanine",
                "unit": "G"
              },
              {
                "id": 1224,
                "amount": 2.317,
                "name": "Glutamic acid",
                "unit": "G"
              },
              {
                "id": 1225,
                "amount": 0.474,
                "name": "Glycine",
                "unit": "G"
              },
              {
                "id": 1226,
                "amount": 0.783,
                "name": "Proline",
                "unit": "G"
              },
              {
                "id": 1228,
                "amount": 0.002,
                "name": "Hydroxyproline",
                "unit": "G"
              },
              {
                "id": 1003,
                "amount": 11.01,
                "name": "Protein",
                "unit": "G"
              },
              {
                "id": 1007,
                "amount": 1.61,
                "name": "Ash",
                "unit": "G"
              },
              {
                "id": 1009,
                "amount": 20.46,
                "name": "Starch",
                "unit": "G"
              },
              {
                "id": 1012,
                "amount": 0.1,
                "name": "Fructose",
                "unit": "G"
              },
              {
                "id": 1013,
                "amount": 0.12,
                "name": "Lactose",
                "unit": "G"
              },
              {
                "id": 1018,
                "amount": 0,
                "name": "Alcohol, ethyl",
                "unit": "G"
              },
              {
                "id": 1062,
                "amount": 1160,
                "name": "Energy",
                "unit": "kJ"
              },
              {
                "id": 1075,
                "amount": 0,
                "name": "Galactose",
                "unit": "G"
              },
              {
                "id": 1079,
                "amount": 1.5,
                "name": "Fiber, total dietary",
                "unit": "G"
              },
              {
                "id": 1089,
                "amount": 0.84,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1090,
                "amount": 25,
                "name": "Magnesium, Mg",
                "unit": "MG"
              },
              {
                "id": 1091,
                "amount": 191,
                "name": "Phosphorus, P",
                "unit": "MG"
              },
              {
                "id": 1093,
                "amount": 402,
                "name": "Sodium, Na",
                "unit": "MG"
              },
              {
                "id": 1098,
                "amount": 0.059,
                "name": "Copper, Cu",
                "unit": "MG"
              },
              {
                "id": 1101,
                "amount": 0.182,
                "name": "Manganese, Mn",
                "unit": "MG"
              },
              {
                "id": 1104,
                "amount": 18,
                "name": "Vitamin A, IU",
                "unit": "IU"
              },
              {
                "id": 1105,
                "amount": 3,
                "name": "Retinol",
                "unit": "UG"
              },
              {
                "id": 1106,
                "amount": 4,
                "name": "Vitamin A, RAE",
                "unit": "UG"
              },
              {
                "id": 1107,
                "amount": 3,
                "name": "Carotene, beta",
                "unit": "UG"
              },
              {
                "id": 1108,
                "amount": 0,
                "name": "Carotene, alpha",
                "unit": "UG"
              },
              {
                "id": 1112,
                "amount": 0,
                "name": "Vitamin D3 (cholecalciferol)",
                "unit": "UG"
              },
              {
                "id": 1114,
                "amount": 0,
                "name": "Vitamin D (D2 + D3)",
                "unit": "UG"
              },
              {
                "id": 1120,
                "amount": 2,
                "name": "Cryptoxanthin, beta",
                "unit": "UG"
              },
              {
                "id": 1122,
                "amount": 0,
                "name": "Lycopene",
                "unit": "UG"
              },
              {
                "id": 1127,
                "amount": 0.63,
                "name": "Tocopherol, delta",
                "unit": "MG"
              },
              {
                "id": 1130,
                "amount": 0.03,
                "name": "Tocotrienol, gamma",
                "unit": "MG"
              },
              {
                "id": 1264,
                "amount": 0.116,
                "name": "14:0",
                "unit": "G"
              },
              {
                "id": 1272,
                "amount": 0.088,
                "name": "22:6 n-3 (DHA)",
                "unit": "G"
              },
              {
                "id": 1273,
                "amount": 0.025,
                "name": "22:0",
                "unit": "G"
              },
              {
                "id": 1275,
                "amount": 0.08,
                "name": "16:1",
                "unit": "G"
              },
              {
                "id": 1278,
                "amount": 0.05,
                "name": "20:5 n-3 (EPA)",
                "unit": "G"
              },
              {
                "id": 1280,
                "amount": 0.004,
                "name": "22:5 n-3 (DPA)",
                "unit": "G"
              },
              {
                "id": 1300,
                "amount": 0.014,
                "name": "17:0",
                "unit": "G"
              },
              {
                "id": 1301,
                "amount": 0.015,
                "name": "24:0",
                "unit": "G"
              },
              {
                "id": 1303,
                "amount": 0,
                "name": "16:1 t",
                "unit": "G"
              },
              {
                "id": 1312,
                "amount": 0.002,
                "name": "24:1 c",
                "unit": "G"
              },
              {
                "id": 1315,
                "amount": 3.039,
                "name": "18:1 c",
                "unit": "G"
              },
              {
                "id": 1316,
                "amount": 7.289,
                "name": "18:2 n-6 c,c",
                "unit": "G"
              },
              {
                "id": 1317,
                "amount": 0.002,
                "name": "22:1 c",
                "unit": "G"
              },
              {
                "id": 1323,
                "amount": 0.008,
                "name": "17:1",
                "unit": "G"
              },
              {
                "id": 1329,
                "amount": 0.014,
                "name": "Fatty acids, total trans-monoenoic",
                "unit": "G"
              },
              {
                "id": 1404,
                "amount": 0.236,
                "name": "18:3 n-3 c,c,c (ALA)",
                "unit": "G"
              },
              {
                "id": 1405,
                "amount": 0.001,
                "name": "20:3 n-3",
                "unit": "G"
              },
              {
                "id": 1409,
                "amount": 0.002,
                "name": "18:3i",
                "unit": "G"
              },
              {
                "id": 1411,
                "amount": 0,
                "name": "22:4",
                "unit": "G"
              },
              {
                "id": 1246,
                "amount": 0,
                "name": "Vitamin B-12, added",
                "unit": "UG"
              }
            ]
          }
        },
        {
          "node": {
            "id": "Q29tbW9uRm9vZE5vZGU6MTczNzEz",
            "name": "Whiting (fish)",
            "description": "Fish, whiting, mixed species, raw",
            "portions": [
              {
                "amount": 3,
                "modifier": "oz",
                "gramWeight": 85
              },
              {
                "amount": 1,
                "modifier": "fillet",
                "gramWeight": 92
              }
            ],
            "nutrients": [
              {
                "id": 1186,
                "amount": 0,
                "name": "Folic acid",
                "unit": "UG"
              },
              {
                "id": 1259,
                "amount": 0,
                "name": "4:0",
                "unit": "G"
              },
              {
                "id": 1260,
                "amount": 0,
                "name": "6:0",
                "unit": "G"
              },
              {
                "id": 1262,
                "amount": 0,
                "name": "10:0",
                "unit": "G"
              },
              {
                "id": 1261,
                "amount": 0,
                "name": "8:0",
                "unit": "G"
              },
              {
                "id": 1263,
                "amount": 0,
                "name": "12:0",
                "unit": "G"
              },
              {
                "id": 1123,
                "amount": 0,
                "name": "Lutein + zeaxanthin",
                "unit": "UG"
              },
              {
                "id": 1057,
                "amount": 0,
                "name": "Caffeine",
                "unit": "MG"
              },
              {
                "id": 1058,
                "amount": 0,
                "name": "Theobromine",
                "unit": "MG"
              },
              {
                "id": 2000,
                "amount": 0,
                "name": "Sugars, total including NLEA",
                "unit": "G"
              },
              {
                "id": 1109,
                "amount": 0.3,
                "name": "Vitamin E (alpha-tocopherol)",
                "unit": "MG"
              },
              {
                "id": 1120,
                "amount": 0,
                "name": "Cryptoxanthin, beta",
                "unit": "UG"
              },
              {
                "id": 1122,
                "amount": 0,
                "name": "Lycopene",
                "unit": "UG"
              },
              {
                "id": 1107,
                "amount": 0,
                "name": "Carotene, beta",
                "unit": "UG"
              },
              {
                "id": 1108,
                "amount": 0,
                "name": "Carotene, alpha",
                "unit": "UG"
              },
              {
                "id": 1185,
                "amount": 0.1,
                "name": "Vitamin K (phylloquinone)",
                "unit": "UG"
              },
              {
                "id": 1110,
                "amount": 57,
                "name": "Vitamin D (D2 + D3), International Units",
                "unit": "IU"
              },
              {
                "id": 1180,
                "amount": 65,
                "name": "Choline, total",
                "unit": "MG"
              },
              {
                "id": 1190,
                "amount": 13,
                "name": "Folate, DFE",
                "unit": "UG"
              },
              {
                "id": 1187,
                "amount": 13,
                "name": "Folate, food",
                "unit": "UG"
              },
              {
                "id": 1104,
                "amount": 100,
                "name": "Vitamin A, IU",
                "unit": "IU"
              },
              {
                "id": 1105,
                "amount": 30,
                "name": "Retinol",
                "unit": "UG"
              },
              {
                "id": 1106,
                "amount": 30,
                "name": "Vitamin A, RAE",
                "unit": "UG"
              },
              {
                "id": 1112,
                "amount": 1.4,
                "name": "Vitamin D3 (cholecalciferol)",
                "unit": "UG"
              },
              {
                "id": 1114,
                "amount": 1.4,
                "name": "Vitamin D (D2 + D3)",
                "unit": "UG"
              },
              {
                "id": 1062,
                "amount": 377,
                "name": "Energy",
                "unit": "kJ"
              },
              {
                "id": 1018,
                "amount": 0,
                "name": "Alcohol, ethyl",
                "unit": "G"
              },
              {
                "id": 1210,
                "amount": 0.205,
                "name": "Tryptophan",
                "unit": "G"
              },
              {
                "id": 1211,
                "amount": 0.803,
                "name": "Threonine",
                "unit": "G"
              },
              {
                "id": 1215,
                "amount": 0.542,
                "name": "Methionine",
                "unit": "G"
              },
              {
                "id": 1217,
                "amount": 0.715,
                "name": "Phenylalanine",
                "unit": "G"
              },
              {
                "id": 1218,
                "amount": 0.618,
                "name": "Tyrosine",
                "unit": "G"
              },
              {
                "id": 1222,
                "amount": 1.108,
                "name": "Alanine",
                "unit": "G"
              },
              {
                "id": 1224,
                "amount": 2.734,
                "name": "Glutamic acid",
                "unit": "G"
              },
              {
                "id": 1225,
                "amount": 0.879,
                "name": "Glycine",
                "unit": "G"
              },
              {
                "id": 1226,
                "amount": 0.648,
                "name": "Proline",
                "unit": "G"
              },
              {
                "id": 1177,
                "amount": 13,
                "name": "Folate, total",
                "unit": "UG"
              },
              {
                "id": 1178,
                "amount": 2.3,
                "name": "Vitamin B-12",
                "unit": "UG"
              },
              {
                "id": 1253,
                "amount": 67,
                "name": "Cholesterol",
                "unit": "MG"
              },
              {
                "id": 1258,
                "amount": 0.247,
                "name": "Fatty acids, total saturated",
                "unit": "G"
              },
              {
                "id": 1264,
                "amount": 0.045,
                "name": "14:0",
                "unit": "G"
              },
              {
                "id": 1272,
                "amount": 0.131,
                "name": "22:6 n-3 (DHA)",
                "unit": "G"
              },
              {
                "id": 1275,
                "amount": 0.082,
                "name": "16:1",
                "unit": "G"
              },
              {
                "id": 1278,
                "amount": 0.093,
                "name": "20:5 n-3 (EPA)",
                "unit": "G"
              },
              {
                "id": 1280,
                "amount": 0.018,
                "name": "22:5 n-3 (DPA)",
                "unit": "G"
              },
              {
                "id": 1162,
                "amount": 0,
                "name": "Vitamin C, total ascorbic acid",
                "unit": "MG"
              },
              {
                "id": 1165,
                "amount": 0.056,
                "name": "Thiamin",
                "unit": "MG"
              },
              {
                "id": 1166,
                "amount": 0.046,
                "name": "Riboflavin",
                "unit": "MG"
              },
              {
                "id": 1079,
                "amount": 0,
                "name": "Fiber, total dietary",
                "unit": "G"
              },
              {
                "id": 1089,
                "amount": 0.34,
                "name": "Iron, Fe",
                "unit": "MG"
              },
              {
                "id": 1090,
                "amount": 21,
                "name": "Magnesium, Mg",
                "unit": "MG"
              },
              {
                "id": 1091,
                "amount": 222,
                "name": "Phosphorus, P",
                "unit": "MG"
              },

              {
                "id": 1103,
                "amount": 32.1,
                "name": "Selenium, Se",
                "unit": "UG"
              }
            ]
          }
        }
      ]
    },
    "recipes": {
      "edges": [
        {
          "node": {
            "id": "UmVjaXBlOjNiNDYxMDdiLWQ3Y2MtNDBkNy05ZGQyLTMzMmQwNTZiYTdhMg==",
            "name": "Oreo Cookies Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjk2NTFkYTYzLTBlYmUtNDZjOS05YzUzLWFkYTNmY2NiOWQyZQ==",
            "name": "Supercharged Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjI4YTdiMmI3LTlmM2QtNGE3Mi1hYWJiLWQyNTlhMGIwZTFmMg==",
            "name": "Liquid Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmZlYzhhYjBjLTE2MDMtNDNkNi1iMTM2LTJiZGNhYTQxMDkzMg==",
            "name": "Fried Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmJmOWE5YTMzLTg0YjctNGIyNi1hYzMzLTY1OGEyOTFlMjdiNw==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmM5ZGYwMjM2LTI0N2UtNGIyNi1hYjFiLWZlNjhiZTI3NzAyYQ==",
            "name": "Ultimate Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjQyODY5YTQwLTY0ZTctNGRiYS05MmM1LWE5ZWIxY2UwZDgwMQ==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmMwNGU2Y2Q0LTYzZmItNDg0ZS04OTUyLWFjZTExNTVmMjgzYg==",
            "name": "Pumpkin Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjA3ODFhZmYxLTUyN2MtNDhmMy04MzFkLTI4NTAyY2FlMzAzMw==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjdjMTExNTRhLTRlYWItNDg1Yy05NjdiLThkNmQ2ZTI1MGY0NA==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjM0MTkwNWI0LThkMmEtNDVjNi1iZDI3LTMzNjVjYjk3OTNjZQ==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjI5YWNjZGUxLWFiODItNDI2Ni04MmY4LTI2YzkzZTI1ODliMQ==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjVhNmEyOWVmLWEzZmEtNDQ1MS1hNGYzLTg4NWEyY2MwZjM0Ng==",
            "name": "Yoda Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjI3MDljYzgwLTJiMmMtNDdhZC1hOTYxLTA5YTlhOGI0MzBhNA==",
            "name": "Homemade Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjZhMTFmYjFjLTZlNjctNGIyOS1iM2JmLTcwNWRhNmY4Y2ViNQ==",
            "name": "Santa Hat Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmU1YWMyNDJhLTE3NzUtNDQ1Yy1hODNhLTVkNjFkZGZiNTEzMQ==",
            "name": "Homemade Peppermint Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmFlM2FiODVkLWU4YjQtNDg1Ny1hNmE3LWQ4NTg0ZmYzOTZjZA==",
            "name": "Homemade Mint Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjkyNTMxMmVmLTU5MmUtNDU3Yi1hOTY2LWNmOTJiMDJmY2Y2Zg==",
            "name": "Homemade Celebration Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOjRlZjE0MDZkLWZjM2UtNDA4ZC1hOTU5LTlhYzkxZGI5NTdhZQ==",
            "name": "Chocolate Covered Oreos"
          }
        },
        {
          "node": {
            "id": "UmVjaXBlOmUzMmQyMmQxLWI5MjEtNDYyYS1iOGVmLThmMWIzYjU4NWMxMg==",
            "name": "Chocolate-Dipped Oreos"
          }
        }
      ]
    }
  }
}
{
  "query": "fish",
  "first": 1
}

Use the tab to add variables, pass them as a parameter to the GraphQL query, and use them to fetch data.

commonFoods
brandedFoods
recipeSearch
restaurantSearch
data type to be searched
query variables
barcode
QUERY VARIABLES