---
title: "Personalized food-name autocomplete — driven by user + community search history"
method: GET
path: "/api/food-log/autocomplete"
tags: ["Food Log"]
---

# Personalized food-name autocomplete — driven by user + community search history

`GET /api/food-log/autocomplete`

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

Substring-matches (`LIKE '%term%'`) against the user's own prior logged selections first (personal tier), then the community-wide top selections from the last 30 days (global tier). Prefix matches rank above non-prefix substring matches. Zero LLM calls. Returns an empty array for queries under 2 characters.

## Query parameters

- `q` string, required
- `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)
