Chomp Food Database API Documentation
    Chomp Food Database API Documentation
    • Get a branded food item using a barcode
      GET
    • Get a branded food item by name
      GET
    • Get data for branded food items using various search parameters
      GET
    • Get raw/generic food ingredient item(s)
      GET

      Get a branded food item using a barcode

      GET
      /food/branded/barcode.php

      Get data for a branded food using the food's UPC/EAN barcode.#

      Example
      https://chompthis.com/api/v2/food/branded/barcode.php?api_key=API_KEY&code=CODE
      Tips
      Read our Knowledge Base article for helpful tips and tricks.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://chompthis.com/api/v2/food/branded/barcode.php?code='
      Response Response Example
      200 - Example 1
      {
          "items": [
              {
                  "allergens": [
                      "string"
                  ],
                  "barcode": "string",
                  "brand": "string",
                  "brand_list": [
                      "string"
                  ],
                  "categories": [
                      "string"
                  ],
                  "countries": [
                      "string"
                  ],
                  "country_details": {
                      "english_speaking": 0,
                      "non_english_speaking": 0
                  },
                  "description": "string",
                  "diet_flags": [
                      {
                          "compatibility_description": "string",
                          "compatibility_level": 0,
                          "diet_label": "string",
                          "ingredient": "string",
                          "ingredient_description": "string",
                          "is_allergen": true,
                          "is_compatible": "string"
                      }
                  ],
                  "diet_labels": {
                      "gluten_free": {
                          "compatibility_level": 0,
                          "confidence": 0,
                          "confidence_description": "string",
                          "is_compatible": true,
                          "name": "string"
                      },
                      "vegan": {
                          "compatibility_level": 0,
                          "confidence": 0,
                          "confidence_description": "string",
                          "is_compatible": true,
                          "name": "string"
                      },
                      "vegetarian": {
                          "compatibility_level": 0,
                          "confidence": 0,
                          "confidence_description": "string",
                          "is_compatible": true,
                          "name": "string"
                      }
                  },
                  "has_english_ingredients": true,
                  "ingredient_list": [
                      "string"
                  ],
                  "ingredients": "string",
                  "keywords": [
                      "string"
                  ],
                  "minerals": [
                      "string"
                  ],
                  "name": "string",
                  "nutrients": [
                      {
                          "data_points": 0,
                          "description": "string",
                          "measurement_unit": "string",
                          "name": "string",
                          "per_100g": 0,
                          "rank": 0
                      }
                  ],
                  "package": {
                      "quantity": 0,
                      "size": "string"
                  },
                  "packaging_photos": {
                      "front": {
                          "display": "string",
                          "small": "string",
                          "thumb": "string"
                      },
                      "ingredients": {
                          "display": "string",
                          "small": "string",
                          "thumb": "string"
                      },
                      "nutrition": {
                          "display": "string",
                          "small": "string",
                          "thumb": "string"
                      }
                  },
                  "palm_oil_ingredients": [
                      "string"
                  ],
                  "serving": {
                      "measurement_unit": "string",
                      "size": "string",
                      "size_fulltext": "string"
                  },
                  "traces": [
                      "string"
                  ],
                  "vitamins": [
                      "string"
                  ]
              }
          ]
      }

      Request

      Query Params

      Responses

      🟢200Success
      application/json
      Body

      🟠400400
      🟠401401
      🟠404404
      🔴500500
      Modified at 2023-08-15 06:31:04
      Next
      Get a branded food item by name
      Built with