{
  "openapi": "3.1.0",
  "info": {
    "title": "NutriGraphAPI",
    "version": "1.0.0",
    "summary": "Food intelligence by barcode: ingredients, allergens, clean-label, nutrition and quality scores.",
    "description": "NutriGraphAPI returns food intelligence for UPC-indexed products. Every successful lookup returns two root objects: `scraped_data` (on-label and listing data) and `analysed_data` (the analysed layer). Build application logic against `analysed_data`.\n\nThe free Developer plan returns the full payload; the only limit is volume (1,000 calls per month). Request a free key: https://track.nutrigraphapi.com/trial?utm_source=openapi\n\n**Data notes**\n\n- Known gap: the allergen map in additionalInfo.allergens does not currently include a Soy key (keys: Celery, Crustaceans, Eggs, Fish, Gluten, Lupin, Milk, Peanuts, Sesame, Sugar, TreeNuts). Do not infer \"no soy\" from it. For soy, read the ingredient text (analysed_data.ingredients and scraped_data.ingredients) and the manufacturer declaration.\n- Allergen and dietary fields are informational and derived from ingredient text and manufacturer data, which can be out of date or wrong. They are not a guarantee, not medical advice and not a certification. Always check the pack.\n- Some product records are derived from Open Food Facts (https://world.openfoodfacts.org) and are made available under the Open Database License (ODbL) 1.0, https://opendatacommons.org/licenses/odbl/1-0/. Contains information from Open Food Facts. Attribution is required, and ODbL share-alike and attribution terms apply to those records.\n- Attribution: apps, pages or documents that display NutriGraphAPI data on the free and Professional plans must carry a visible credit linking to https://nutrigraphapi.com.\n- Caching: you may cache responses for up to 24 hours (keyed on barcode), then revalidate.\n\nThis spec was written from the public docs at https://www.nutrigraphapi.com/docs. If the two differ, the live API behaviour and the docs are authoritative; tell support@nutrigraphapi.com.",
    "termsOfService": "https://www.nutrigraphapi.com/legal.html",
    "contact": {
      "name": "NutriGraphAPI support",
      "email": "support@nutrigraphapi.com",
      "url": "https://www.nutrigraphapi.com/docs"
    },
    "license": {
      "name": "Specification: CC0 1.0. API data: see the Terms and the ODbL notice in the description.",
      "identifier": "CC0-1.0"
    }
  },
  "externalDocs": {
    "description": "Human-readable documentation",
    "url": "https://www.nutrigraphapi.com/docs"
  },
  "servers": [
    {
      "url": "https://sandbox.nutrigraphapi.com/api",
      "description": "Sandbox. Free Developer plan (1,000 calls per month); upgrade for production access."
    }
  ],
  "tags": [
    {
      "name": "Products",
      "description": "Look up a product by barcode, or request one we do not hold."
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/lookup": {
      "get": {
        "tags": [
          "Products"
        ],
        "operationId": "lookupProduct",
        "summary": "Look up a product by barcode",
        "description": "Returns the full payload (`scraped_data` and `analysed_data`) for a UPC-12 barcode. Counts against your monthly quota. Known gap: the allergen map in additionalInfo.allergens does not currently include a Soy key (keys: Celery, Crustaceans, Eggs, Fish, Gluten, Lupin, Milk, Peanuts, Sesame, Sugar, TreeNuts). Do not infer \"no soy\" from it. For soy, read the ingredient text (analysed_data.ingredients and scraped_data.ingredients) and the manufacturer declaration.",
        "parameters": [
          {
            "name": "barcode",
            "in": "query",
            "required": true,
            "description": "UPC-12 barcode. Leading zeros must be preserved.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{8,14}$"
            },
            "example": "039978009579"
          }
        ],
        "responses": {
          "200": {
            "description": "Product found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookupResponse"
                },
                "examples": {
                  "pringles": {
                    "summary": "Pringles Original (cached showcase record)",
                    "value": {
                      "_note": "Condensed for this example: the live response carries many more fields, and a scraped_data object.",
                      "analysed_data": {
                        "generalData": {
                          "gtin14": "0007218653506030",
                          "brandName": "Pringles",
                          "productTitle": "Pringles Original",
                          "category": "Snack Chip and Crisp",
                          "subCategory": "Chips",
                          "variant": "Original",
                          "numberOfIngredients": 7
                        },
                        "additionalInfo": {
                          "nova_group": "4",
                          "nutriscore_grade": "C",
                          "ecoscore": "B",
                          "traces": "May contain traces of other allergens",
                          "allergens": {
                            "Eggs": false,
                            "Fish": false,
                            "Milk": false,
                            "Lupin": false,
                            "Sugar": false,
                            "Celery": false,
                            "Gluten": true,
                            "Sesame": false,
                            "Peanuts": false,
                            "TreeNuts": false,
                            "Crustaceans": false
                          },
                          "dietary_preference": {
                            "Vegan": true,
                            "LowFodmap": false,
                            "NoRedMeat": true,
                            "Vegetarian": true,
                            "Pescatarian": true,
                            "KetoFriendly": false
                          },
                          "religious_labels": {
                            "Jain": true,
                            "Halal": true,
                            "Hindu": true,
                            "Kosher": true
                          },
                          "sustainability_labels": {
                            "Recycled": false,
                            "PlantBased": true,
                            "AnimalWelfare": true,
                            "OrganicPositioning": false,
                            "SocialResponsibility": false,
                            "SustainablePackaging": true
                          }
                        },
                        "npiFoodPackagesAllergensIntolerances": {
                          "eggStated": "No",
                          "eggQualified": "No",
                          "dairyStated": "No",
                          "dairyQualified": "No",
                          "fishStated": "No",
                          "fishQualified": "No",
                          "glutenQualified": "Yes",
                          "falcpaCommonAllergensStated": "Yes"
                        },
                        "cleanLabel": {
                          "artificialColorsQualified": "No",
                          "artificialFlavorsQualified": "No",
                          "preservativesQualified": "No",
                          "gmoPresenceQualified": "No",
                          "highFructoseCornSyrupQualified": "No",
                          "recognizableIngredientsQualified": "Yes",
                          "countOfIngredientsQualified": "7"
                        },
                        "ingredients": {
                          "stated": {
                            "ingredientList": [
                              {
                                "text": "Dehydrated potatoes",
                                "amount": 0,
                                "source": "OpenFoodFacts",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": true,
                                  "Halal": true,
                                  "Hindu": true,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": true,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Sunflower oil",
                                "amount": 0,
                                "source": "OpenFoodFacts",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": true,
                                  "Halal": true,
                                  "Hindu": true,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": true
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": true,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Wheat starch",
                                "amount": 0,
                                "source": "OpenFoodFacts",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": true,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": true,
                                  "Halal": true,
                                  "Hindu": true,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": true,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Rice flour",
                                "amount": 0,
                                "source": "OpenFoodFacts",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": true,
                                  "Halal": true,
                                  "Hindu": true,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": true,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Emulsifier (E471)",
                                "amount": 0,
                                "source": "OpenFoodFacts",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": true,
                                  "Halal": true,
                                  "Hindu": true,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": true,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Maltodextrin",
                                "amount": 0,
                                "source": "OpenFoodFacts",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": true,
                                  "Halal": true,
                                  "Hindu": true,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": true,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  },
                  "sourpatch": {
                    "summary": "Sour Patch Kids Hearts (cached showcase record)",
                    "value": {
                      "_note": "Condensed for this example: the live response carries many more fields, and a scraped_data object.",
                      "analysed_data": {
                        "generalData": {
                          "gtin14": "00070462007442",
                          "brandName": "Sour Patch Kids",
                          "productTitle": "Sour Patch Kids Hearts",
                          "category": "Candy & Chocolate",
                          "subCategory": "Gummy Candy",
                          "variant": "Pink and Red Heart Shaped Gummies",
                          "numberOfIngredients": 8
                        },
                        "additionalInfo": {
                          "nova_group": "4",
                          "nutriscore_grade": "D",
                          "ecoscore": "D",
                          "traces": "None",
                          "allergens": {
                            "Eggs": false,
                            "Fish": false,
                            "Milk": false,
                            "Lupin": false,
                            "Sugar": true,
                            "Celery": false,
                            "Gluten": false,
                            "Sesame": false,
                            "Peanuts": false,
                            "TreeNuts": false,
                            "Crustaceans": false
                          },
                          "dietary_preference": {
                            "Vegan": true,
                            "LowFodmap": false,
                            "NoRedMeat": true,
                            "Vegetarian": true,
                            "Pescatarian": true,
                            "KetoFriendly": false
                          },
                          "religious_labels": {
                            "Jain": false,
                            "Halal": false,
                            "Hindu": false,
                            "Kosher": false
                          },
                          "sustainability_labels": {
                            "Recycled": false,
                            "PlantBased": true,
                            "AnimalWelfare": false,
                            "OrganicPositioning": false,
                            "SocialResponsibility": false,
                            "SustainablePackaging": false
                          }
                        },
                        "npiFoodPackagesAllergensIntolerances": {
                          "eggStated": "No",
                          "eggQualified": "No",
                          "dairyStated": "No",
                          "dairyQualified": "No",
                          "fishStated": "No",
                          "fishQualified": "No",
                          "glutenQualified": "No",
                          "falcpaCommonAllergensStated": "No"
                        },
                        "cleanLabel": {
                          "artificialColorsQualified": "Yes",
                          "artificialFlavorsQualified": "Yes",
                          "preservativesQualified": "No",
                          "gmoPresenceQualified": "No",
                          "highFructoseCornSyrupQualified": "No",
                          "recognizableIngredientsQualified": "Yes",
                          "countOfIngredientsQualified": "8"
                        },
                        "ingredients": {
                          "stated": {
                            "ingredientList": [
                              {
                                "text": "Sugar",
                                "amount": 0,
                                "source": "Product Packaging",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": true,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": false
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Invert Sugar",
                                "amount": 0,
                                "source": "Product Packaging",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": true,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": false
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Corn Syrup",
                                "amount": 0,
                                "source": "Product Packaging",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": false
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Modified Corn Starch",
                                "amount": 0,
                                "source": "Product Packaging",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": false
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Tartaric Acid (<2%)",
                                "amount": 0,
                                "source": "Product Packaging",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": false
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Citric Acid",
                                "amount": 0,
                                "source": "Product Packaging",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": false
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  },
                  "cheezit": {
                    "summary": "Cheez-It Baked Snack Crackers Pepper Jack (cached showcase record)",
                    "value": {
                      "_note": "Condensed for this example: the live response carries many more fields, and a scraped_data object.",
                      "analysed_data": {
                        "generalData": {
                          "gtin14": "",
                          "brandName": "Cheez-It",
                          "productTitle": "Cheez-It, Baked Snack Crackers, Pepper Jack, 18oz (6 Count)",
                          "category": "Snack Foods",
                          "subCategory": "Crackers",
                          "variant": "Pepper Jack",
                          "numberOfIngredients": 15
                        },
                        "additionalInfo": {
                          "nova_group": "3",
                          "nutriscore_grade": "E",
                          "ecoscore": "B",
                          "traces": "Contains gluten, milk, soy",
                          "allergens": {
                            "Eggs": false,
                            "Fish": false,
                            "Milk": true,
                            "Lupin": false,
                            "Sugar": false,
                            "Celery": false,
                            "Gluten": true,
                            "Sesame": false,
                            "Peanuts": false,
                            "TreeNuts": false,
                            "Crustaceans": false
                          },
                          "dietary_preference": {
                            "Vegan": false,
                            "LowFodmap": false,
                            "NoRedMeat": true,
                            "Vegetarian": true,
                            "Pescatarian": true,
                            "KetoFriendly": false
                          },
                          "religious_labels": {
                            "Jain": false,
                            "Halal": false,
                            "Hindu": false,
                            "Kosher": true
                          },
                          "sustainability_labels": {
                            "Recycled": false,
                            "PlantBased": true,
                            "AnimalWelfare": false,
                            "OrganicPositioning": false,
                            "SocialResponsibility": false,
                            "SustainablePackaging": false
                          }
                        },
                        "npiFoodPackagesAllergensIntolerances": {
                          "eggStated": "No",
                          "eggQualified": "No",
                          "dairyStated": "Yes",
                          "dairyQualified": "Yes",
                          "fishStated": "No",
                          "fishQualified": "No",
                          "glutenQualified": "Yes",
                          "falcpaCommonAllergensStated": "Yes"
                        },
                        "cleanLabel": {
                          "artificialColorsQualified": "No",
                          "artificialFlavorsQualified": "No",
                          "preservativesQualified": "No",
                          "gmoPresenceQualified": "No",
                          "highFructoseCornSyrupQualified": "No",
                          "recognizableIngredientsQualified": "Yes",
                          "countOfIngredientsQualified": "Moderate"
                        },
                        "ingredients": {
                          "stated": {
                            "ingredientList": [
                              {
                                "text": "Enriched Flour (Wheat Flour, Niacin, Reduced Iron, Vitamin B1 [Thiamin Mononitrate], Vitamin B2 [Riboflavin], Folic Acid)",
                                "amount": 0,
                                "source": "Product Scrape",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": true,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": false,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": false,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Vegetable Oil (High Oleic Soybean, Soybean, Palm, And/Or Canola With TBHQ For Freshness)",
                                "amount": 0,
                                "source": "Product Scrape",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": false,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": false
                                },
                                "dietary_preference": {
                                  "Vegan": true,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": false,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": true,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "White Cheddar Cheese (Milk, Cheese Cultures, Salt, Enzymes)",
                                "amount": 0,
                                "source": "Product Scrape",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": true,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": false,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": true
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": false,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              },
                              {
                                "text": "Contains 2% Or Less Of Salt, Monterey Jack Cheese (Milk, Cheese Cultures, Salt, Enzymes), Green Bell Pepper, Red Bell Pepper, Natural Jalapeno Flavor, Spice, Monosodium Glutamate, Baking Soda, Yeast, Turmeric Extract Color, Annatto Extract Color, Soy Lecithin.",
                                "amount": 0,
                                "source": "Product Scrape",
                                "allergens": {
                                  "Eggs": false,
                                  "Fish": false,
                                  "Milk": true,
                                  "Lupin": false,
                                  "Sugar": false,
                                  "Celery": false,
                                  "Gluten": false,
                                  "Sesame": false,
                                  "Peanuts": false,
                                  "TreeNuts": false,
                                  "Crustaceans": false
                                },
                                "amountUOM": "",
                                "subIngredients": [],
                                "religious_labels": {
                                  "Jain": false,
                                  "Halal": false,
                                  "Hindu": false,
                                  "Kosher": true
                                },
                                "dietary_preference": {
                                  "Vegan": false,
                                  "LowFodmap": false,
                                  "NoRedMeat": true,
                                  "Vegetarian": true,
                                  "Pescatarian": true,
                                  "KetoFriendly": false
                                },
                                "food_safety_labels": {
                                  "GMO": false,
                                  "NoGMO": true,
                                  "Organic": false,
                                  "Hormones": false,
                                  "Carcinogenic": false,
                                  "ProductRecalls": false
                                },
                                "sustainability_labels": {
                                  "Recycled": false,
                                  "PlantBased": false,
                                  "AnimalWelfare": false,
                                  "OrganicPositioning": false,
                                  "SocialResponsibility": false,
                                  "SustainablePackaging": false
                                }
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/request": {
      "post": {
        "tags": [
          "Products"
        ],
        "operationId": "requestProduct",
        "summary": "Request a product we do not hold",
        "description": "Submit a barcode that returned 404 for onboarding. Products are typically added within 48 hours. Bulk lists are available on Enterprise plans.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductRequest"
              },
              "example": {
                "barcode": "012345678901",
                "product_name": "Example Product",
                "brand": "Example Brand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your key. Keep it private: do not embed it in client-side code or public repositories. Free key: https://track.nutrigraphapi.com/trial?utm_source=openapi"
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Barcode not in the database. Submit it via POST /request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "PRODUCT_NOT_FOUND",
              "upc": "012345678901",
              "message": "Submit via POST /api/request",
              "request_id": "req_abc123xyz"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Monthly quota exceeded (resets on the 1st for monthly plans).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ServerError": {
        "description": "Unexpected error. Retry with exponential backoff; contact support if persistent.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "upc": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "ProductRequest": {
        "type": "object",
        "required": [
          "barcode"
        ],
        "properties": {
          "barcode": {
            "type": "string",
            "description": "The UPC-12 that returned 404."
          },
          "product_name": {
            "type": "string",
            "description": "Optional. Helps onboarding."
          },
          "brand": {
            "type": "string",
            "description": "Optional."
          }
        }
      },
      "LookupResponse": {
        "type": "object",
        "description": "The live payload has many more fields than are modelled here; unknown fields are allowed.",
        "properties": {
          "scraped_data": {
            "type": "object",
            "additionalProperties": true,
            "description": "Raw on-label and listing data."
          },
          "analysed_data": {
            "$ref": "#/components/schemas/AnalysedData"
          }
        },
        "additionalProperties": true
      },
      "AnalysedData": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "generalData": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "upc12": {
                "type": "string"
              },
              "gtin14": {
                "type": "string"
              },
              "brandName": {
                "type": "string"
              },
              "brandOwner": {
                "type": "string"
              },
              "productTitle": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "subCategory": {
                "type": "string"
              },
              "segment": {
                "type": "string"
              },
              "variant": {
                "type": "string"
              },
              "numberOfIngredients": {
                "type": "integer"
              }
            }
          },
          "additionalInfo": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "nova_group": {
                "type": "string",
                "enum": [
                  "1",
                  "2",
                  "3",
                  "4"
                ],
                "description": "NOVA processing level (1 unprocessed, 4 ultra-processed)."
              },
              "nutriscore_grade": {
                "type": "string",
                "description": "Nutri-Score A to E."
              },
              "ecoscore": {
                "type": "string",
                "description": "Eco-Score A to E."
              },
              "traces": {
                "type": "string",
                "description": "May-contain / cross-contamination statement."
              },
              "allergens": {
                "$ref": "#/components/schemas/AllergenMap"
              },
              "dietary_preference": {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                },
                "description": "Vegan, Vegetarian, KetoFriendly, LowFodmap, Pescatarian, NoRedMeat."
              },
              "religious_labels": {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                },
                "description": "Kosher, Halal, Jain, Hindu."
              },
              "sustainability_labels": {
                "type": "object",
                "additionalProperties": {
                  "type": "boolean"
                },
                "description": "PlantBased, Recycled, SustainablePackaging, OrganicPositioning, SocialResponsibility, AnimalWelfare."
              }
            }
          },
          "npiFoodPackagesAllergensIntolerances": {
            "type": "object",
            "additionalProperties": true,
            "description": "Allergen and intolerance fields as `*Stated` (declared on pack) and `*Qualified` (analysed). Prefer the Qualified fields for application logic, and see the Soy note."
          },
          "cleanLabel": {
            "type": "object",
            "additionalProperties": true,
            "description": "30+ clean-label fields, each with a Stated and a Qualified variant (for example preservativesQualified)."
          },
          "claims": {
            "type": "object",
            "additionalProperties": true
          },
          "ingredients": {
            "type": "object",
            "additionalProperties": true,
            "description": "Ingredient lists as stated and qualified."
          },
          "nutritionalInformation": {
            "type": "object",
            "additionalProperties": true,
            "description": "stated and qualified nutrient arrays, per 100 g with daily values. qualified.backfillNutrientsProcessed=true means values were enriched rather than read from a label."
          },
          "servingSize": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "AllergenMap": {
        "type": "object",
        "description": "Boolean allergen flags. Known gap: the allergen map in additionalInfo.allergens does not currently include a Soy key (keys: Celery, Crustaceans, Eggs, Fish, Gluten, Lupin, Milk, Peanuts, Sesame, Sugar, TreeNuts). Do not infer \"no soy\" from it. For soy, read the ingredient text (analysed_data.ingredients and scraped_data.ingredients) and the manufacturer declaration.",
        "additionalProperties": {
          "type": "boolean"
        },
        "properties": {
          "Celery": {
            "type": "boolean"
          },
          "Crustaceans": {
            "type": "boolean"
          },
          "Eggs": {
            "type": "boolean"
          },
          "Fish": {
            "type": "boolean"
          },
          "Gluten": {
            "type": "boolean"
          },
          "Lupin": {
            "type": "boolean"
          },
          "Milk": {
            "type": "boolean"
          },
          "Peanuts": {
            "type": "boolean"
          },
          "Sesame": {
            "type": "boolean"
          },
          "Sugar": {
            "type": "boolean"
          },
          "TreeNuts": {
            "type": "boolean"
          }
        }
      }
    }
  }
}
