The Search endpoint enables fast, lightweight lookup of UK attractions by name. It performs a case-insensitive partial-match (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.
icontains) query against the full attraction database and returns a condensed representation — just id and name — with a maximum of 20 results. This trimmed response format is intentional: the endpoint is designed to power the onboarding import flow, where the user types an attraction name to locate it quickly before passing its id to the Bulk Like endpoint. Because it returns only identifiers and display names rather than full attraction objects, the response is compact and fast even when many matches exist.
Endpoint
| Field | Value |
|---|---|
| Method | GET |
| Path | /api/recommendations/search |
| Auth | Bearer token required |
Query Parameters
The search string to match against attraction names. Matching is case-insensitive and partial — the query
tower will match Tower of London, Blackpool Tower, and any other attraction whose name contains the substring.Omitting q or sending an empty string returns an empty array ([]).Example: q=TowerResponse
Returns an array of up to 20 attraction search result objects. Each object contains onlyid and name.
200 OK
Display name of the attraction, suitable for rendering in a search results list.
Empty Result
When theq parameter is absent, empty, or matches no attraction names, the endpoint returns an empty JSON array: