Get List of Hotels
Retrieve a list of available hotels, apartments, and resorts. This endpoint supports extensive filtering options to help merchants discover relevant accommodations based on location, price, amenities,
GET /v2/merpi/hotels
/v2/merpi/hotelsQuery Parameters
business_id
string
No
Filter hotels by specific hospitality business
city
string
No
Filter by city name (e.g., "Ikeja", "Lagos", "Abuja")
state
string
No
Filter by state (e.g., "Lagos", "Abuja", "Kaduna")
country
string
No
Filter by country (default: "Nigeria")
property_type
string
No
Filter by property type: hotel, apartment, resort, inn
available_rooms_only
boolean
No
If true, only return hotels with available rooms
min_price
number
No
Minimum price per night (in Naira)
max_price
number
No
Maximum price per night (in Naira)
min_occupancy
number
No
Minimum guest capacity per room
max_occupancy
number
No
Maximum guest capacity per room
amenities
string
No
Comma-separated amenities (e.g., "wifi,pool,gym")
search
string
No
Search term for hotel name or description
per_page
number
No
Number of results per page (default: 20)
page
number
No
Page number for pagination (default: 1)
Header Parameters
X-API-KEY
string
Yes
Your API key to access this endpoint
TransactionMedium
string
Yes
Transaction medium: Web, Mobile, or POS
Example Requests
Basic request - Get all hotels:
Filter by city:
Filter by city and property type:
Filter by price range:
Filter by amenities:
Only show hotels with available rooms:
Complex filter - Lagos hotels with WiFi and pool, price range ₦20k-50k:
Code Examples
JavaScript - Fetch
JavaScript - Axios
cURL
Response
Success Response (200)
Response Fields
Root Level
success
boolean
Indicates if the request was successful
status
number
HTTP status code (200 for success)
message
string
Response message
data
object
Response data containing hotels and pagination info
Data Object
hotels
array
Array of hotel objects
next_page
number|null
Next page number if available, null if last page
count
number
Total number of hotels matching filters
per_page
number
Number of results per page
Hotel Object
id
number
Unique hotel identifier
name
string
Hotel name
location
string
Full address of the property
description
string
Hotel description and highlights
city
string
City where hotel is located
state
string
State where hotel is located
country
string
Country (Nigeria)
coordinates
object
GPS coordinates (latitude, longitude)
contact
object
Contact information (website)
business
object
Business information(id, name, photo, type, etc)
check_in_time
string
Standard check-in time
check_out_time
string
Standard check-out time
amenities
array
List of hotel amenities
images
array
Hotel images with URLs
property_type
string
Type: hotel, apartment, resort, or inn
status
string
Hotel status (active, inactive)
created_at
string
Record creation timestamp (ISO 8601 format)
updated_at
string
Last update timestamp (ISO 8601 format)
Coordinates Object
latitude
number|null
GPS latitude coordinate
longitude
number|null
GPS longitude coordinate
Contact Object
website
string|null
Hotel website URL
Business Object
id
string
ID of hospitality business
name
string
Name of hospitality business
photo
string
Logo of Hospitality Business
type
string
Type of business(which is always going to be hospitality). We have other business categories like Transport & Entertainment.
slug
string
slug of hospitality business
Image Object
id
number
Image identifier
image_url
string
Full URL to the image
alt_text
string
Alternative text for the image
Common Use Cases
1. Browse all hotels
Use this to display all available hotels without any filters.
2. Find hotels in a specific city
Perfect for location-based searches when users specify their destination.
3. Search for budget hotels
Filter hotels by price range to match user budget.
4. Find hotels with specific amenities
Show hotels that have all specified amenities.
5. Search by hotel name
Search for hotels by name or keywords in their description.
6. Only show hotels with available rooms
Filter out fully booked hotels to show only properties with availability.
7. Complex filtered search
Combine multiple filters for precise results.
Important Notes
Pagination: Use page and per_page parameters to navigate through results. Check next_page field to determine if more pages are available.
Amenities Filtering: When filtering by amenities, use comma-separated values without spaces (e.g., wifi,pool,gym). Hotels must have ALL specified amenities to appear in results.
Property Types: Valid values are hotel, apartment, resort, and inn.
Price Filtering: min_price and max_price filter based on room prices, not hotel-level pricing. Hotels are included if they have at least one room within the specified price range.
Search Parameter: The search parameter looks for matches in hotel names and descriptions. It's case-insensitive.
Next Steps
After retrieving the hotel list, you typically:
Display hotels to your users with key information (name, location, price range, amenities)
When a user selects a hotel, call Get Hotel Rooms to fetch available room types
Alternatively, use Get Hotels & Rooms in One Endpoint to get hotel and room data in one call
Finally, proceed to Book Hotel Room to complete the reservation
Last updated