The List Recommendations endpoint is the core of the UK Travel Recommendation engine. It computes a cosine similarity score between the authenticated user’s stored preference vector and every attraction the user has not yet interacted with, selects the top candidates (up to 100 depending on any active geo filter), and then applies Maximal Marginal Relevance (MMR) re-ranking to ensure the final ten results are both personally relevant and diverse — preventing a feed dominated by near-identical attraction types. Because the endpoint reads the user’s live preference profile, the results shift with every like or dislike, making each call a fresh reflection of the user’s evolving tastes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/viet2811/uk-travel-recommendation/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
| Field | Value |
|---|---|
| Method | GET |
| Path | /api/recommendations/ |
| Auth | Bearer token required |
Query Parameters
Filter recommendations to attractions within a specific county. Matching is case-insensitive. When this parameter is supplied, the candidate pool is capped at 25 attractions before MMR re-ranking.Example:
county=CornwallFilter recommendations to attractions within a specific UK region. Matching is case-insensitive. When this parameter is supplied (and
county is not), the candidate pool is capped at 50 attractions before MMR re-ranking.Example: region=South EastFilter recommendations to attractions within a specific UK country. Matching is case-insensitive. When this parameter is supplied (and neither
county nor region is present), the candidate pool is capped at 75 attractions before MMR re-ranking.Example: country=EnglandOnly one geo filter is applied per request. Priority order is county → region → country. If you supply both
county and region, only the county filter is used.Attractions the user has already liked or disliked are fully excluded from the candidate pool before similarity ranking begins. Each call returns only unseen content.
Response
Returns an array of exactly 10 attraction objects after MMR re-ranking.200 OK
Unique identifier for the attraction. Used as the path parameter in the like, dislike, and bulk-like endpoints.
Display name of the attraction.
Broad category label for the attraction, e.g.
Heritage, Nature, Entertainment.Specific type label within the parent category, e.g.
Castle, National Park, Museum.Geographic latitude coordinate (WGS 84).
Geographic longitude coordinate (WGS 84). Note: field name is
longtitude (matches the database column).URL to the attraction’s Wikipedia article, if available. May be
null.A textual description of the attraction, typically derived from its Wikipedia summary.
List of image URL strings for the attraction. May be an empty array if no images are stored.
The UK county in which the attraction is located, e.g.
Cornwall, Yorkshire.The UK region in which the attraction is located, e.g.
South West, Yorkshire and The Humber.The UK country in which the attraction is located, e.g.
England, Scotland, Wales, Northern Ireland.