Sync a user's complete venue history into the cache
untappd_sync_user_venuesFetch a user's full venue check-in history into cache to answer whether they have visited a given venue. Pages 25 venues per call, resumable, and stops before rate limits.
Instructions
Fetch a user's COMPLETE venue history (every venue they've checked in at, with first/most-recent visit dates and visit count) into the cache from user/venues. Unlike user/checkins — which only returns the ~50 most recent check-ins for anyone but yourself — user/venues pages any public/friend account's whole history, so this is how to answer "has this person been here?" (via untappd_cache_has_visited). Untappd serves 25 venues per page, so a 2,700-venue history is ~110 calls: resumable — fetches max_pages per call, saves progress after every page; run again until another_run_needed is false. Once complete, a re-run is a cheap refresh from the top that stops at the first page with no changed visits (a refresh cut short resumes where it stopped; another_run_needed stays true until it finishes). Stops BEFORE the ~100 calls/hour rate limit (or cleanly on a 429) with stopped_for_rate_limit and rate_limit.resume_at. Omit username for your own account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | No | Untappd username. Omit to use your own configured account (UNTAPPD_USERNAME). | |
| max_pages | No | Pages (25 venues each) to fetch this run (default 10, max 50). Keep modest to respect the ~100 calls/hour rate limit. |