Chompthis

Chomp Food Database API Documentation

Important An [API key](https://chompthis.com/api/) is required for access to this API. Get yours at [https://chompthis.com/api](https://chompthis.com/api/).…

Developer tools#openapi#tools

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Important

An API key is required for access to this API. Get yours at https://chompthis.com/api.

Getting Started

  • Subscribe to the API.
  • Scroll down and click the "Authorize" button.
  • Enter your API key into the "value" input, click the "Authorize" button, then click the "Close" button.
  • Scroll down to the section titled "default" and click on the API endpoint you wish to use.
  • Click the "Try it out" button.
  • Enter the information the endpoint requires.
  • Click the "Execute" button.

Example

How Do I Find My API Key?

  • Your API key was sent to the email address you used to create your subscription.
  • You will also find your API key in the Client Center.
  • Read this article for more information.

Helpful Links

Endpoints 4

  • GETGet a branded food item using a barcode/food/branded/barcode.php?code=stringGet 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 *…
  • GETGet a branded food item by name/food/branded/name.php?name=string&limit=1&page=0Search for branded food items by name. Example > https://chompthis.com/api/v2/food/branded/name.php?api_key=API_KEY&name=NAME Tips * Get started by using our…
  • GETGet data for branded food items using various search parameters/food/branded/search.php?allergen=string&brand=string&category=string&country=string&diet=Vegan&ingredient=string&keyword=string&mineral=string&nutrient=string&palm_oil=string&trace=string&vitamin=string&limit=1&page=0Search for branded food items using various parameters. Example >…
  • GETGet raw/generic food ingredient item(s)/food/ingredient/search.php?find=string&limit=1Get data for a specific ingredient or a specific set of ingredients. Example #1: Single Ingredient >…

API details

Base URL
https://chompthis.com/api/v2
Authentication
An API key in the api_key query parameter
Operations
4 operations on 4 pathsGET 4
Description format
OpenAPI 3.0.0, API version 1.0.0-oas3
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Chomp Food Database API Documentation in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Chomp Food Database API Documentation collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the api_key query parameter. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Get a branded food item using a barcode” (GET /food/branded/barcode.php?code=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Chomp Food Database API Documentation?

Important An [API key](https://chompthis.com/api/) is required for access to this API. Get yours at [https://chompthis.com/api](https://chompthis.com/api/).… It is listed under Developer tools and has 4 endpoints.

Who publishes the Chomp Food Database API Documentation?

It is listed from Chompthis's public API description (an OpenAPI document), not published by Chompthis on Swastik Codes. Anyone who controls chompthis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Chomp Food Database API Documentation?

Requests go to https://chompthis.com/api/v2. Endpoint paths are added to this base URL.

How do I authenticate with the Chomp Food Database API Documentation?

With an API key in the api_key query parameter.

How many endpoints does the Chomp Food Database API Documentation have?

4 operations on 4 paths (4 GET).

Is forking the Chomp Food Database API Documentation free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.