Food search

GET /v1/food/search · $0.001 a call

Look up a food by name, for manual logging or to correct a scan. Returns the closest matches from the same reference nutrition database the scan endpoints use, best first, each with calories, protein, carbs, fat and fiber per 100 g. No model is involved, so it is fast and cheap.

For calorie trackers, recipe and meal planners.

Request

Send these fields as query parameters on GET /v1/food/search. No photo is needed.

FieldTypeDescription
qstring, up to 100 characters, requiredWhat to look up, in plain words.
limitnumber, 1 to 20How many matches to return, 1 to 20. Defaults to 5.

Photo tips. No photo. Short searches work best: "greek yogurt plain", "rice white cooked".

curl "https://truelens.keronlabs.com/v1/food/search?q=chicken%20breast%20roasted" \
  -H "Authorization: Bearer $TRUELENS_KEY"

Response

FieldDescription
summaryOne line, e.g. "5 matches for chicken breast roasted".
queryThe search text you sent.
foods[].idA stable id for this food. The same food always has the same id.
foods[].descriptionThe food name.
foods[].per_100gcalories, protein_g, carbs_g, fat_g, fiber_g per 100 g.

Example

Output of this API’s own code on the sample request above.

{
  "metadata": {
    "id": "req_9cf4da08fe7f40dab71a",
    "engine": "food/search",
    "status": "success",
    "cached": false,
    "credits_used": 0.1,
    "created_at": "2026-10-19T09:30:00.000Z",
    "processing_ms": 40
  },
  "summary": "5 matches for chicken breast roasted",
  "query": "chicken breast roasted",
  "foods": [
    {
      "id": "f_1gfmrlw",
      "description": "Chicken breast, roll, oven-roasted",
      "per_100g": {
        "calories": 134,
        "protein_g": 14.6,
        "carbs_g": 1.79,
        "fat_g": 7.65,
        "fiber_g": 0
      }
    },
    {
      "id": "f_1f9azos",
      "description": "Chicken breast, oven-roasted, fat-free, sliced",
      "per_100g": {
        "calories": 79,
        "protein_g": 16.8,
        "carbs_g": 2.17,
        "fat_g": 0.39,
        "fiber_g": 0
      }
    },
    {
      "id": "f_1q0hrlh",
      "description": "Chicken, broilers or fryers, breast, meat only, cooked, roasted",
      "per_100g": {
        "calories": 165,
        "protein_g": 31,
        "carbs_g": 0,
        "fat_g": 3.57,
        "fiber_g": 0
      }
    },
    {
      "id": "f_1b8wpw3",
      "description": "Chicken, broilers or fryers, breast, meat and skin, cooked, roasted",
      "per_100g": {
        "calories": 197,
        "protein_g": 29.8,
        "carbs_g": 0,
        "fat_g": 7.78,
        "fiber_g": 0
      }
    },
    {
      "id": "f_0754xpj",
      "description": "Chicken breast, baked, broiled, or roasted, skin eaten, from raw",
      "per_100g": {
        "calories": 192,
        "protein_g": 26.2,
        "carbs_g": 0,
        "fat_g": 8.8,
        "fiber_g": 0
      }
    }
  ]
}