---
title: "Paginate alternative matches for a multi-ingredient option (powers the mobile \"show more\" swap control)"
method: GET
path: "/api/food-log/ingredient-alternatives"
tags: ["Food Log"]
---

# Paginate alternative matches for a multi-ingredient option (powers the mobile "show more" swap control)

`GET /api/food-log/ingredient-alternatives`

## 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/ingredient-alternatives`
- Auth: HTTP bearer

The initial fatsecretSearch response for a multi-ingredient query ships 3 options per ingredient (primary + 2 alternatives). This endpoint returns additional options for a single ingredient — positions `offset..offset+limit-1` from FatSecret's search results — in the same FoodOption shape so the mobile client can append to the existing alternatives array without re-fetching the original search. Defaults: offset=3 (skip the 3 already shown), limit=5. Stateless; re-runs searchFoodsWithNutrition on each call.

## Query parameters

- `searchTerm` string, required
- `quantity` number
- `unit` string
- `brand` string
- `offset` number
- `limit` number

## Response `200`

- unknown

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
