Skip to content

Calorie Tracker API

Published July 17, 2026

A calorie tracker API is the call your tracker makes at the moment of logging. Calorie API returns the food. The tracker, the account, the daily goal, and the streak live in your database. We do not store them, and a tracker that expects us to is integrating the wrong product.

The phrase people also search, calorie counter API, is this same lookup. This page is the tracker flow around it.

Log one food

curl "https://api.calorieapi.com/api/v1/search/suggest?q=rice" \
  -H "X-API-Key: YOUR_API_KEY"

Suggest while they type. When they tap a row, GET /api/v1/foods/{id} returns calories, protein, carbohydrate, and fat per 100 grams. A 180 gram serving is that payload times 1.8. Write the result onto the log line with the food id. Tomorrow's breakfast, if it is the same rice, is a copy of that line. It is not another search.

Barcode logging is GET /api/v1/search/barcode/{upc}. A 404 is an unknown code, including after the Open Food Facts fallback. Show search. Do not retry the same code in a loop.

There is no endpoint for "add this to today's diary." If you need the vendor to hold the diary, that is FatSecret's platform, priced by country. See FatSecret API pricing.

Plans a tracker actually fits

Read on 1 October 2026 from pricing:

PlanPriceCalls / monthPer minuteA shipped, paid tracker
Free$01,00010No
Basic$1520,00030No. Paid, still non-commercial
Core$50150,00050No
Plus$1501,000,000200Yes. Header X-API-Usage-Type: commercial

The homepage already ranks for this query because the product is the tracker lookup. This article exists so the phrase has a page that shows the call sequence and the commercial line in the first screen. Link your docs and your app's settings page at Plus, not at Basic, if the tracker charges.

Natural language ("I had rice and chicken") is not supported. The Nutritionix alternative is the page for that requirement, and their starter plan is $499 a month. Photo logging is enterprise-only here. The Log Meal API note says when a photo vendor belongs in front of this lookup.

Cache, then the quota is about new foods, not about how often someone opens the app. That is the difference between a tracker that fits in 20,000 calls and one that does not.

Frequently Asked Questions

What is a calorie tracker API?

The nutrition lookup a calorie tracker calls: search, autocomplete, barcode, and per-100g calories. The tracker app stores the meals.

Is there a free calorie tracker API?

Yes. 1,000 calls a month, no credit card, non-commercial use. A tracker you sell needs Plus or Enterprise.

Does it track the user for me?

No. There is no diary endpoint. You save the food id and the scaled calories in your own database.

How do I avoid burning the quota?

Call suggest while they type, call food details once when they confirm, and never call the API to redraw a day you already stored.

← Back to all articles

Start building with the Calorie API

Get a free API key and access 4M+ foods with search, barcode lookup, and full macro data.