Batch-check many beers against the cache
untappd_cache_has_had_manyCheck up to 500 beer IDs against cached Untappd check-in history in one call without API requests, returning had/not-had status and favorites for one user or a group.
Instructions
Cross-check a list of beer ids against a user's cached history in ONE call — NO API call. Consults BOTH sources (check-ins + distinct beers). Returns had/not-had per bid (with count and last date when had), plus favorite {is_favorite, sources, reason} per bid and brewery_favorite when its brewery (from cached beer metadata) is a favorite. Ideal for checking a whole venue menu at once. Pass usernames (instead of username) to check a GROUP: each bid then lists had_by / not_had_by and qualifies per mode — "none_had" (default: new to everyone) or "any_not_had" (at least one of them still needs it) — with qualifying_bids and a per-user freshness block. Run untappd_sync_user_beers first (for every user); the freshness block flags if coverage is incomplete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bids | Yes | Beer ids to check (1–500) | |
| mode | No | With usernames: "none_had" (default) keeps beers NONE of them has had (new to everyone); "any_not_had" keeps beers at least one of them has not had. | |
| username | No | Untappd username. Omit to use your own configured account (UNTAPPD_USERNAME). | |
| usernames | No | Check a GROUP of users (1–10) instead of one — e.g. everyone at the table. Use instead of username; each must be synced (untappd_sync_user_beers). |