Chomp REST API v2 - Source Code
The Chomp Food & Nutrition Database API offers high-quality data on over 875,000 grocery products, branded foods, and raw ingredients in the United States and from all around the world. We take pride in being recognized as one of the industry leaders for grocery, branded, and raw food data. Our data is updated on a regular basis and is continually audited to ensure accuracy.

- Summary
- SDKs (0)
- Articles (6)
- How To(0)
- Source Code(12)
- Libraries(0)
- Developers (0)
- Followers (170)
- Changelog (0)
Sample Source Code (12)
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
Title | Description | |
---|---|---|
![]() | Chomp Using Palm Oil Ingredient PHP Sample Code | This Chomp PHP Sample CodeThis searches ingredients by passing palm oil related ingredients as a parameter. The response includes nutrition labels, ingredients, allergen information, compatible health diets, brand names, countries, categories, keywords, vitamins, and minerals. |
![]() | Chomp Using Trace Ingredient PHP Sample Code | This Chomp PHP Sample Code searches products by passing a specific trace ingredient as a parameter. The response includes nutrition labels, ingredients, allergen information, compatible health diets, brand names, countries, categories, keywords, vitamins, and minerals. |
![]() | Chomp Using Vitamin PHP Sample Code | This Chomp PHP Sample Code takes a vitamin to search for products. The response includes nutrition labels, ingredients, allergen information, trace ingredients, compatible health diets, brand names, countries, categories, keywords, vitamins, and minerals. |
![]() | Chomp Using Ingredient PHP Sample Code | This Chomp PHP Sample Code searches products by passing a specific ingredient as a parameter. The response includes nutrition labels, ingredients, allergen information, trace ingredients, compatible health diets, brand names, countries, categories, keywords, vitamins, and minerals. |
![]() | Chomp Using Allergen Ingredient PHP Sample Code | This Chomp PHP Sample Code searches for a product with allergen warnings and returns nutrition labels, ingredients, trace ingredients, compatible health diets, brand names, countries, categories, keywords, minerals, and vitamins. |
![]() | Chomp Using Product Name PHP Sample Code | This Chomp PHP Sample Code demonstrates how to lookup a product's information by name or a name similar to the search item. The response includes nutrition labels, ingredients, allergen information, trace ingredients, compatible health diets, brand names, countries, categories, keywords, vitamins, and minerals. |
![]() | Chomp Using a Barcode PHP Sample Code | This Chomp PHP Sample Code demonstrates how to lookup a product's information by barcode. The response includes nutrition labels, ingredients, allergen information, trace ingredients, compatible health diets, brand names, countries, categories, keywords, vitamins, and minerals. |
![]() | Chomp Using Mineral Iron PHP Sample Code | The Chomp Using Mineral Iron PHP Sample Code demonstrates how to search for products that contain iron. In addition to minerals, the response displays product, brand, ingredients, nutrition, and lifestyle ingredients. |
![]() | Chomp Using Diet Compatibility PHP Sample Code | The Chomp Using Diet Compatibility PHP Sample Code demonstrates how to find vegetarian products including a cereal keyword. Developers can use the query builder to access endpoints for advanced searches. |
![]() | Chomp Using Search Using Brand PHP Sample Code | The Chomp Using Search Using Brand PHP Sample Code demonstrates how to find a product by using a brand. The product's information contains name, UPC, ingredients, package size, serving size, gluten, and soybeans info. |
![]() | Chomp Using Search Nutrition Labels PHP Sample Code | The Chomp Using Search Nutrition Labels PHP Sample Code demonstrates how to find nutrition labels that contain product ID, brand, ingredients, package size, and serving size. |
![]() | Chomp Using a Product PHP Sample Code | The Chomp Using a Product PHP Sample Code demonstrates how to access nutrition labels, ingredients, healthy diets, brand names, minerals, and vitamins by using the Chomp Product ID. |