Food Log

Search FatSecret with AI parsing and coaching

Deprecated — use GET /food-log/quick-add-search instead (sources=catalog).

post/api/food-log/fatsecret-search

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/food-log/fatsecret-search
  • Auth
    HTTP bearer

Headers

x-timezonestring required

Request body

querystring required
timezonestring

Example request

{
  "query": "6 eggs and 2 slices of ham",
  "timezone": "America/New_York"
}

Response

unknown required

Example response

{
  "success": true,
  "query": "grilled chicken",
  "ingredientsFound": 3,
  "isMultiIngredient": false,
  "options": [
    {
      "id": "9876",
      "name": "Chicken Breast, Grilled",
      "brand": null,
      "description": "1 serving (3 oz)",
      "quantity": 1,
      "calories": 140,
      "protein": 26,
      "fat": 3,
      "carbs": 0,
      "fiber": 0,
      "sodium": 65,
      "sugar": 0,
      "servings": [
        {
          "serving_id": "57972",
          "serving_description": "100 g",
          "number_of_units": "100",
          "measurement_description": "g",
          "metric_serving_amount": "100",
          "metric_serving_unit": "g",
          "calories": "195",
          "protein": "29.55",
          "fat": "7.72",
          "carbohydrate": "0"
        },
        {
          "serving_id": "57969",
          "serving_description": "1 oz boneless, cooked",
          "number_of_units": "1",
          "measurement_description": "oz",
          "metric_serving_amount": "28.35",
          "metric_serving_unit": "g",
          "calories": "55",
          "protein": "8.38",
          "fat": "2.19",
          "carbohydrate": "0"
        }
      ]
    }
  ],
  "total": 3,
  "aiResponse": "Great protein choice! Grilled chicken fits perfectly into your Rewrite plan."
}

Changes

No recorded changes to this operation across all 34 revisions of this API.