Find an API

Search public APIs with auth details & Postman guides

← All APIs

Chomp Food Database API Documentation

chompthis · Developer Tools

Developer Tools No Auth Free & Open tools

## 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/)**. ### Getting Started * **[Subscribe](https://chompthis.com/api/#pricing)** 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

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Get a branded food item using a barcode

## 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](https://desk.zoho.com/portal/chompthis/kb/articles/im-having-trouble-getting-matche

https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/barcode.php?code=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/barcode.php?code=example"
import requests
params = {
    "code": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/barcode.php",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/barcode.php');
url.searchParams.set('code', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/barcode.php")
	q := baseURL.Query()
	q.Set("code", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/barcode.php")
uri.query = URI.encode_www_form({
  "code" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/barcode.php?" . http_build_query([
    "code" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Get a branded food item by name

## Search 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 **[food lookup tool](https://chompthis.com/api/lookup.php)**. > This API endpoint is only available to Standard and Prem

https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/name.php?name=test&page=1&limit=1

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/name.php?name=test&page=1&limit=1"
import requests
params = {
    "name": "test",
    "page": "1",
    "limit": "1"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/name.php",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/name.php');
url.searchParams.set('name', 'test');
url.searchParams.set('page', '1');
url.searchParams.set('limit', '1');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/name.php")
	q := baseURL.Query()
	q.Set("name", "test")
	q.Set("page", "1")
	q.Set("limit", "1")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/name.php")
uri.query = URI.encode_www_form({
  "name" => "test",
  "page" => "1",
  "limit" => "1"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/name.php?" . http_build_query([
    "name" => "test",
    "page" => "1",
    "limit" => "1"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Get data for branded food items using various search parameters

## Search for branded food items using various parameters. **Example** > ```https://chompthis.com/api/v2/food/branded/search.php?api_key=API_KEY&brand=BRAND&country=COUNTRY&page=1``` **Tips** * Get started by using the **[Query Builder](https://chompthis.com/api/build.php)**. > This API endpoi

https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/search.php?diet=Vegan&page=1&brand=example&limit=1&trace=example&country=US&keyword=test&mineral=example&vitamin=example&allergen=example&category=example&nutrient=example&palm_oil=example&ingredient=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/search.php?diet=Vegan&page=1&brand=example&limit=1&trace=example&country=US&keyword=test&mineral=example&vitamin=example&allergen=example&category=example&nutrient=example&palm_oil=example&ingredient=example"
import requests
params = {
    "diet": "Vegan",
    "page": "1",
    "brand": "example",
    "limit": "1",
    "trace": "example",
    "country": "US",
    "keyword": "test",
    "mineral": "example",
    "vitamin": "example",
    "allergen": "example",
    "category": "example",
    "nutrient": "example",
    "palm_oil": "example",
    "ingredient": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/search.php",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/search.php');
url.searchParams.set('diet', 'Vegan');
url.searchParams.set('page', '1');
url.searchParams.set('brand', 'example');
url.searchParams.set('limit', '1');
url.searchParams.set('trace', 'example');
url.searchParams.set('country', 'US');
url.searchParams.set('keyword', 'test');
url.searchParams.set('mineral', 'example');
url.searchParams.set('vitamin', 'example');
url.searchParams.set('allergen', 'example');
url.searchParams.set('category', 'example');
url.searchParams.set('nutrient', 'example');
url.searchParams.set('palm_oil', 'example');
url.searchParams.set('ingredient', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/search.php")
	q := baseURL.Query()
	q.Set("diet", "Vegan")
	q.Set("page", "1")
	q.Set("brand", "example")
	q.Set("limit", "1")
	q.Set("trace", "example")
	q.Set("country", "US")
	q.Set("keyword", "test")
	q.Set("mineral", "example")
	q.Set("vitamin", "example")
	q.Set("allergen", "example")
	q.Set("category", "example")
	q.Set("nutrient", "example")
	q.Set("palm_oil", "example")
	q.Set("ingredient", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/search.php")
uri.query = URI.encode_www_form({
  "diet" => "Vegan",
  "page" => "1",
  "brand" => "example",
  "limit" => "1",
  "trace" => "example",
  "country" => "US",
  "keyword" => "test",
  "mineral" => "example",
  "vitamin" => "example",
  "allergen" => "example",
  "category" => "example",
  "nutrient" => "example",
  "palm_oil" => "example",
  "ingredient" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/chompthis.com/1.0.0-oas3/food/branded/search.php?" . http_build_query([
    "diet" => "Vegan",
    "page" => "1",
    "brand" => "example",
    "limit" => "1",
    "trace" => "example",
    "country" => "US",
    "keyword" => "test",
    "mineral" => "example",
    "vitamin" => "example",
    "allergen" => "example",
    "category" => "example",
    "nutrient" => "example",
    "palm_oil" => "example",
    "ingredient" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Chomp Food Database API Documentation?

Chomp Food Database API Documentation is a Developer Tools API. Developers commonly use developer tools APIs for:

  • automating code review and quality checks
  • integrating CI/CD pipelines and build systems
  • managing feature flags and A/B tests
  • monitoring errors and application performance
  • generating and validating test data

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Chomp Food Database API Documentation is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide · Learn about API keys · What is REST?

Open documentation ↗