favorites
List what I viewed recently
Runs user.getRecentlyViewed, newest first, one entry per hotel, from the last 50 views; filter with entityType. Returns { items }: each is { entityType, entityId, hotelKey, ref, name, imageUrl, city, country, starRating } where entityId equals hotelKey for a supplier hotel. ref is freshly minted on every response and opens GET /v1/hotels/{ref}; it is null when the row cannot mint one. The display fields are the snapshot the client sent when it saved the row, and are null for rows saved before snapshots existed (render a placeholder; never fail). Each item also has viewedAt.
get/v1/recent-views
Request
- Base URL: https://api.getmyhotels.com
- URL: https://api.getmyhotels.com/v1/recent-views
- Auth: HTTP bearer
Query parameters
entityType'hotel' | 'flight' | 'car'
limitinteger
Example:20
Response
Success
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.