🏙️ Get All Cities
Retrieve all cities with optional filters and pagination
Returns a list of cities from the database. Supports filtering by active status, country name, country code, and pagination.
Query Parameters
- active (optional): Filter by active status - “true” or “false”
- country (optional): Filter by country name (partial match, case-insensitive)
- countryCode (optional): Filter by ISO country code (e.g., “AE”, “US”)
- limit (optional): Maximum number of results to return (default: 100)
- offset (optional): Number of results to skip for pagination (default: 0)
Response
Returns an object with:
- success: Boolean indicating success
- data: Array of city objects
- count: Number of cities returned
Examples
Query parameters
active
Filter by active status (true/false)
country
Filter by country name
countryCode
Filter by ISO country code (e.g., ‘AE’, ‘US’)
limit
Limit number of results
offset
Offset for pagination
Response
This endpoint returns an object.

