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 raw/generic food ingredient item(s)

      GET
      /food/ingredient/search.php

      Get data for a specific ingredient or a specific set of ingredients.#

      Example #1: Single Ingredient
      https://chompthis.com/api/v2/ingredient/search.php?api_key=API_KEY&find=raw broccoli
      Example #2: Set of Ingredients
      https://chompthis.com/api/v2/ingredient/search.php?api_key=API_KEY&find=raw broccoli,mashed potatoes,chicken drumstick
      Tips
      Expose ingredient endpoints by using our food lookup tool.
      This API endpoint is only available to Standard and Premium API subscribers. Please consider upgrading your subscription if you are subscribed to the Limited plan. Read this if you aren't sure how to upgrade your subscription.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://chompthis.com/api/v2/food/ingredient/search.php?find='
      Response Response Example
      200 - Example 1
      {
          "items": [
              {
                  "calorie_conversion_factor": {
                      "carbohydrate_value": 0,
                      "fat_value": 0,
                      "protein_value": 0
                  },
                  "categories": [
                      "string"
                  ],
                  "common_name": "string",
                  "components": [
                      {
                          "data_points": 0,
                          "gram_weight": 0,
                          "is_refuse": true,
                          "name": "string",
                          "pct_weight": 0
                      }
                  ],
                  "footnote": "string",
                  "name": "string",
                  "nutrients": [
                      {
                          "data_points": 0,
                          "description": "string",
                          "footnote": "string",
                          "max": 0,
                          "measurement_unit": "string",
                          "median": 0,
                          "min": 0,
                          "name": "string",
                          "per_100g": 0,
                          "rank": 0
                      }
                  ],
                  "portions": [
                      {
                          "data_points": 0,
                          "description": "string",
                          "footnote": "string",
                          "gram_weight": 0,
                          "measurement_unit": "string",
                          "modifier": "string"
                      }
                  ],
                  "protein_conversion_factor": 0,
                  "score": "string",
                  "search_term": "string"
              }
          ]
      }

      Request

      Query Params

      Responses

      🟢200Success
      application/json
      Body

      🟠400400
      🟠401401
      🟠404404
      🔴500500
      Modified at 2023-08-15 06:31:04
      Previous
      Get data for branded food items using various search parameters
      Built with