Documentation menu

Query guide

Shape responses for the interface you need to test.

Combine pagination, sorting, exact filters, partial matches, search, and artificial delay.

Pagination and sorting

Control collection results

These parameters work on all top-level list endpoints. Posts search also supports them.

ParameterTypeRequiredDescription
_page or pageintegerOptionalPage number. Defaults to 1.
_limit or limitintegerOptionalItems per page. Defaults to 10 and is capped at 100.
_sortstringOptionalField to sort by. Defaults to id.
_orderasc | descOptionalSort direction. Defaults to asc.
_delayintegerOptionalArtificial response delay in milliseconds.
cURL request
curl 'https://api.apimocker.com/posts?_page=2&_limit=5&_sort=title&_order=asc'

Filtering

Match exact values

Add a field and value to the query string. Numeric IDs and boolean values are converted to their correct types before filtering.

Incomplete todos for user 1
curl 'https://api.apimocker.com/todos?completed=false&userId=1'

Posts for user 1
curl 'https://api.apimocker.com/posts?userId=1'

Partial matches

Use _like for text

Add _like to a string field for a case-insensitive substring match. You can combine it with pagination and sorting.

cURL request
curl 'https://api.apimocker.com/posts?title_like=web&_limit=5'

Loading states

Delay a response on purpose

Add _delay to GET list, search, or single-resource requests. The value is in milliseconds and is useful for skeletons, spinners, and route transitions.

Two-second response
curl 'https://api.apimocker.com/todos?_delay=2000'