{
  "info": {
    "name": "Chomp Food Database API Documentation (v2)",
    "description": "Four endpoints: barcode lookup, search by name, advanced branded search, and ingredient search. Set the api_key collection variable to your key (base_url is preset to https://chompthis.com/api/v2), and every request is ready to run.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://chompthis.com/api/v2"
    },
    {
      "key": "api_key",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Barcode lookup",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/food/branded/barcode.php",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "food",
            "branded",
            "barcode.php"
          ],
          "query": [
            {
              "key": "api_key",
              "value": "{{api_key}}",
              "description": "Your Chomp API key."
            },
            {
              "key": "user_id",
              "description": "**Premium Subscribers Only.** A unique identifier (e.g., database ID or hashed string) for the user on your platform. \n\n**Important:** This is used for MAU (Monthly Active User) billing. Do not use a static string for all users.\n\n**Example:** `user_12345`",
              "value": "user_12345",
              "disabled": true
            },
            {
              "key": "code",
              "description": "The UPC or EAN barcode. Support includes GTIN-8, GTIN-12, and GTIN-13 formats.\n\n**Example:** `0842234000988`",
              "value": "0842234000988"
            }
          ]
        },
        "description": "Retrieve detailed data for a branded food item using its UPC/EAN barcode.\n\n**Troubleshooting Tips:**\nIf a lookup fails, try these normalization strategies:\n*   **UPC-A to EAN-13**: Prepend a leading `0` to a 12-digit code.\n*   **Pad EAN-8**: Prepend five leading zeros to an 8-digit code.\n*   **Leading Zeros**: Try removing all leading zeros if the product isn't found with them."
      }
    },
    {
      "name": "Search by name",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/food/branded/name.php",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "food",
            "branded",
            "name.php"
          ],
          "query": [
            {
              "key": "api_key",
              "value": "{{api_key}}",
              "description": "Your Chomp API key."
            },
            {
              "key": "user_id",
              "description": "**Premium Subscribers Only.** A unique identifier for the user on your platform. [Learn more](https://desk.zoho.com/portal/chompthis/en/kb/articles/monthly-active-users)\n\n**Example:** `user_12345`",
              "value": "user_12345",
              "disabled": true
            },
            {
              "key": "name",
              "description": "Keyword search for food items. Does not require an exact match.\n\n**Example:** `Starburst`",
              "value": "Starburst"
            },
            {
              "key": "limit",
              "description": "Maximum number of records to return. Default is `10`.\n\n**Example:** `10`",
              "value": "10",
              "disabled": true
            },
            {
              "key": "page",
              "description": "Page number for pagination. Default is `1`.\n\n**Example:** `1`",
              "value": "1",
              "disabled": true
            }
          ]
        },
        "description": "> **Available to Standard and Premium subscribers.** This endpoint is not included in the Limited plan.\n\nSearch for branded food items using a keyword or brand name."
      }
    },
    {
      "name": "Advanced branded search",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/food/branded/search.php",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "food",
            "branded",
            "search.php"
          ],
          "query": [
            {
              "key": "api_key",
              "value": "{{api_key}}",
              "description": "Your Chomp API key."
            },
            {
              "key": "user_id",
              "description": "**Premium Subscribers Only.** A unique identifier for the user on your platform. [Learn more about MAUs](https://desk.zoho.com/portal/chompthis/en/kb/articles/monthly-active-users)\n\n**Example:** `user_12345`",
              "value": "user_12345",
              "disabled": true
            },
            {
              "key": "allergen",
              "description": "Filter by a specific allergen (e.g., Peanuts, Shellfish, Gluten). We track over 1,000 distinct allergens.",
              "value": "",
              "disabled": true
            },
            {
              "key": "brand",
              "description": "Filter by brand name (e.g., Starbucks).",
              "value": "",
              "disabled": true
            },
            {
              "key": "category",
              "description": "Filter by food category (e.g., Plant Based Foods).",
              "value": "",
              "disabled": true
            },
            {
              "key": "country",
              "description": "Filter by country of sale (e.g., United States). Must be used with at least one other parameter.",
              "value": "",
              "disabled": true
            },
            {
              "key": "diet",
              "description": "Filter by diet compatibility. Ingredients are algorithmically checked against dietary guidelines.\n\n**Supported:** Vegan, Vegetarian, Gluten Free.",
              "value": "",
              "disabled": true
            },
            {
              "key": "ingredient",
              "description": "Filter by a specific ingredient (e.g., Salt).",
              "value": "",
              "disabled": true
            },
            {
              "key": "keyword",
              "description": "Filter by a specific keyword (e.g., Organic). Must be used with at least one other parameter.",
              "value": "",
              "disabled": true
            },
            {
              "key": "mineral",
              "description": "Filter by a specific mineral (e.g., Potassium).",
              "value": "",
              "disabled": true
            },
            {
              "key": "nutrient",
              "description": "Filter by a specific nutrient (e.g., Caffeine, Calcium, Energy). Over 150 nutrients are indexed.",
              "value": "",
              "disabled": true
            },
            {
              "key": "palm_oil",
              "description": "Filter by ingredients derived from palm oil.",
              "value": "",
              "disabled": true
            },
            {
              "key": "trace",
              "description": "Filter by trace ingredients (e.g., Tree Nuts). Must be used with at least one other parameter.",
              "value": "",
              "disabled": true
            },
            {
              "key": "vitamin",
              "description": "Filter by a specific vitamin (e.g., Biotin).",
              "value": "",
              "disabled": true
            },
            {
              "key": "limit",
              "description": "Maximum number of records to return. Default is `10`.",
              "value": "",
              "disabled": true
            },
            {
              "key": "page",
              "description": "Page number for pagination. Default is `1`.",
              "value": "",
              "disabled": true
            }
          ]
        },
        "description": "> **Available to Standard and Premium subscribers.** This endpoint is not included in the Limited plan.\n\nSearch for branded food items using a combination of various parameters such as brand, category, ingredients, and nutritional content."
      }
    },
    {
      "name": "Ingredient search",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{base_url}}/food/ingredient/search.php",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "food",
            "ingredient",
            "search.php"
          ],
          "query": [
            {
              "key": "api_key",
              "value": "{{api_key}}",
              "description": "Your Chomp API key."
            },
            {
              "key": "user_id",
              "description": "**Premium Subscribers Only.** A unique identifier (e.g., database ID or hashed string) for the user on your platform. \n\n**Important:** This is used for MAU (Monthly Active User) billing. Do not use a static string for all users. [Learn more](https://desk.zoho.com/portal/chompthis/en/kb/articles/monthly-active-users)\n\n**Example:** `user_12345`",
              "value": "user_12345",
              "disabled": true
            },
            {
              "key": "find",
              "description": "A single ingredient or a comma-separated list of up to 10 ingredients.\n\n**Example:** `ground beef, raw broccoli`",
              "value": "ground beef, raw broccoli"
            },
            {
              "key": "limit",
              "description": "Maximum number of records to return per term. Default is `1`.\n\n**Example:** `1`",
              "value": "1",
              "disabled": true
            }
          ]
        },
        "description": "> **Available to Standard and Premium subscribers.** This endpoint is not included in the Limited plan.\n\nSearch for one or more raw or generic food ingredients and retrieve their detailed nutritional data."
      }
    }
  ]
}
