Skip to content
Healthy plant-based meals representing nutrition and food data for the Calorie API

Food database

Food Database API

Query 4M+ foods (generic foods, branded products, and restaurant items) through one REST food database API. Multi-word search with relevance ranking, brand and category filters, and a verified-only mode when data quality matters most.

4M+ foods
searchable foods
100
results per page (max)
any / all
word match modes
20
autocomplete suggestions

Every food returns complete nutrition data: per-100g macros, a structured nutrients array with micronutrients when available, and serving metadata that maps cleanly to meal-logging data models.

Full parameters and response shapes live in the API documentation, and you can try every endpoint in the playground without signing up.

GET /api/v1/search/foods
curl "https://calorieapiadmin.com/api/v1/search/foods?q=greek+yogurt&verified_only=true" \
  -H "X-API-Key: your_api_key_here"

What the food database api gives you

Multi-word ranking

Exact phrases rank first, then all-word and any-word matches, word order independent.

Verified foods filter

verified_only=true restricts results to curated entries with complete, quality-checked macros.

Autocomplete suggest

A lightweight suggest endpoint returns id, name, and brand for fast typeahead UIs.

Brands & categories

Filter search by brand and browse brand, category, and nutrient reference endpoints.

Complete macro data

Only foods with complete macro data are returned, no null-riddled results to clean up.

Predictable envelope

Paginated JSON (data, total, skip, limit) with stable food IDs you can cache aggressively.

Food Database API: frequently asked questions

How large is the food database?

The catalog covers 4M+ foods across generic, branded, and restaurant foods, with barcode lookup extending coverage through Open Food Facts.

Can I download the database in bulk?

No. Query and cache the foods your users actually log; IDs are stable. Bulk catalog scraping is not permitted.

How fresh is the data?

The catalog is continuously updated, and the Open Food Facts fallback covers newly released products before they land in the local database.

Does search return micronutrients?

Search results include per-100g macros; the food details endpoint adds the full nutrients array with vitamins and minerals when available.

Start building today

Create a free account, generate an API key, and make your first request in minutes.