Meals

Search foods (local food_items + configured provider, e.g. FatSecret)

Returns unified lightweight search hits. Local (cached/custom) foods come first with a uuid id; provider hits have id: null and must be imported via POST /api/meals/foods/import before logging. Provider outages never fail the request; local results are returned with provider_error: true.

get/api/meals/foods/search

Request

  • Base URL
    https://api.hiyd.ai
  • Auth
    HTTP bearer

Query parameters

qstring

Search term

pagenumber

1-based page number (provider results)

pageSizenumber

Max results per source

category'breakfast' | 'lunch' | 'dinner' | 'snack' | 'beverage'

Filter by category (local results)

food_typestring

Filter by food type (local results)

Response

Unified food search hits

successboolean
countnumber
pagenumber
pageSizenumber
providerstring nullable
provider_errorboolean

Changes

No recorded changes to this operation across all 1 revision of this API.