Get List of Hotels/Apartments/Resorts

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

Query Parameters

Parameter
Type
Required
Description

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

Parameter
Type
Required
Description

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 - Axios

cURL

Get list of hotels, apartments, and resorts

get

This endpoint retrieves a paginated list of available hospitality properties including hotels, apartments, resorts, and inns. It supports extensive filtering by location, price range, amenities, availability, property type, and keyword search to help merchants discover relevant accommodations.

Query parameters
citystringOptional

Filter properties by city name.

Example: Lagos
statestringOptional

Filter properties by state name.

Example: Lagos
countrystringOptional

Filter properties by country name.

Example: Nigeria
property_typestring · enumOptional

Filter by property type.

Example: hotelPossible values:
min_priceintegerOptional

Minimum room price to include.

Example: 20000
max_priceintegerOptional

Maximum room price to include.

Example: 50000
amenitiesstringOptional

Comma-separated list of amenities. Properties must have ALL specified amenities to be included.

Example: wifi,pool,gym
available_rooms_onlybooleanOptional

Only return properties with at least one available room.

Example: true
searchstringOptional

Case-insensitive keyword search on property name and description.

Example: Grand Paradise
pageintegerOptional

Page number for pagination.

Example: 1
per_pageintegerOptional

Number of results per page.

Example: 20
Responses
chevron-right
200

List of hotels, apartments, and resorts

application/json
successbooleanOptionalExample: true
statusintegerOptionalExample: 200
messagestringOptionalExample: List of hotels
get
/v2/merpi/hotels
200

List of hotels, apartments, and resorts

Response Fields

Root Level

Field
Type
Description

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

Field
Type
Description

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

Field
Type
Description

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

Field
Type
Description

latitude

number|null

GPS latitude coordinate

longitude

number|null

GPS longitude coordinate

Contact Object

Field
Type
Description

website

string|null

Hotel website URL

Business Object

Field
Type
Description

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

Field
Type
Description

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:

  1. Display hotels to your users with key information (name, location, price range, amenities)

  2. When a user selects a hotel, call Get Hotel Rooms to fetch available room types

  3. Alternatively, use Get Hotels & Rooms in One Endpoint to get hotel and room data in one call

  4. Finally, proceed to Book Hotel Room to complete the reservation

Last updated