FatSecret · Schema

FatSecret Food Diary Entry

A single food diary entry recorded for a profile on a given date and meal.

Barcode ScanningCaloriesDietsExerciseFitnessFood DiaryHealthMacronutrientsNutritionRecipesWeight Tracking

Properties

Name Type Description
food_entry_id string
food_entry_name string
food_id string
serving_id string
number_of_units string
meal string
date_int string Days since the FatSecret epoch (1970-01-01).
calories string
carbohydrate string
protein string
fat string
View JSON Schema on GitHub

JSON Schema

fatsecret-food-entry-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fatsecret/refs/heads/main/json-schema/fatsecret-food-entry-schema.json",
  "title": "FatSecret Food Diary Entry",
  "description": "A single food diary entry recorded for a profile on a given date and meal.",
  "type": "object",
  "required": ["food_entry_id", "food_id", "date_int", "meal"],
  "properties": {
    "food_entry_id": { "type": "string" },
    "food_entry_name": { "type": "string" },
    "food_id": { "type": "string" },
    "serving_id": { "type": "string" },
    "number_of_units": { "type": "string" },
    "meal": {
      "type": "string",
      "enum": ["breakfast", "lunch", "dinner", "other"]
    },
    "date_int": {
      "type": "string",
      "description": "Days since the FatSecret epoch (1970-01-01)."
    },
    "calories": { "type": "string" },
    "carbohydrate": { "type": "string" },
    "protein": { "type": "string" },
    "fat": { "type": "string" }
  }
}