Query your mock APIs with powerful search, filtering, and sorting capabilities
Mock API Builder supports advanced query parameters for searching, filtering, sorting, and paginating your dataβjust like production APIs. These features work out of the box for all endpoints.
Full-text search across all fields or specific properties
Filter by specific field values with multiple operators
Order results by any field in ascending or descending order
Use the q parameter to search across all text fields:
GET /api/users?q=johnSearch within specific fields using field name as the parameter:
GET /api/users?name=johnGET /api/users?email=gmail.comGET /api/users?name=john&role=adminq searches across all text fieldsGET /api/users?role=adminReturns only users where role equals "admin"
GET /api/products?price_gte=100Returns products with price greater than or equal to 100
GET /api/products?price_lte=50Returns products with price less than or equal to 50
GET /api/users?status_ne=inactiveReturns users where status is not "inactive"
GET /api/posts?title_like=tutorialReturns posts where title contains "tutorial"
GET /api/users?role=admin&status=activeGET /api/products?price_gte=50&price_lte=200GET /api/users?_sort=nameSort users by name in ascending order (A-Z)
GET /api/users?_sort=name&_order=descSort users by name in descending order (Z-A)
GET /api/posts?_sort=createdAt,likes&_order=desc,descSort by creation date first, then by likes (both descending)
GET /api/posts?_sort=createdAt&_order=descGET /api/products?_sort=rating&_order=descGET /api/products?_sort=price&_order=ascGET /api/users?_limit=10Return only 10 users
GET /api/users?_page=2&_limit=10Return page 2 (users 11-20)
GET /api/users?_start=20&_limit=10Skip first 20 users, return next 10 (users 21-30)
GET /api/products?category=electronics&price_lte=500&_sort=price&_order=asc&_limit=20Electronics under $500, sorted by price (lowest first), 20 per page
GET /api/posts?q=tutorial&author=john&_sort=createdAt&_order=descSearch for "tutorial" posts by John, newest first
Paginated responses include helpful headers:
X-Total-CountTotal number of records (useful for calculating total pages)
LinkLinks to first, prev, next, and last pages