---
title: "Get foods in a date range"
method: GET
path: "/api/food"
---

# Get foods in a date range

`GET /api/food`

## Request

- Base URL: `https://healthpartner.shrynshjn.com`
- URL: `https://healthpartner.shrynshjn.com/api/food`
- Auth: none declared

## Query parameters

- `start` string, date-time, required
- `end` string, date-time, required
- `limit` integer
- `cursor` string
- `mealType` 'breakfast' | 'lunch' | 'dinner' | 'snack' | 'pre_workout' | 'post_workout'

## Response `200`

OK

- FoodQueryResponse
  - `foods` FoodItem[]
    - `id` string
    - `name` string
    - `qty` number
    - `unit` string
    - `calories` number
    - `protein` number
    - `carbs` number
    - `fats` number
    - `eatTime` string, date-time
  - `nextCursor` string, nullable

---

[API](https://skmtc.dev/shrynshjn/apis/health-partner-api.md) · [All operations](https://skmtc.dev/shrynshjn/apis/health-partner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shrynshjn/apis/health-partner-api/revisions/687e966e4267?raw)
