fishbowlAPI API

Filtering, Sorting & Pagination

Fishbowl API Overview

The Fishbowl API provides flexible options for retrieving data efficiently. You can filter results to refine your queries, sort them to control the order, and paginate through large datasets to optimise performance.

Filtering

Most endpoints support filtering through the filter query parameter. You can filter data based on specific fields associated with the entity you are querying.

Example: Filter Guests by Email

> GET /api/public/guest?filter\[]=customerEmailAddress:dev@fishbowl.com > > OR > > GET /api/public/guest?filter\[customerEmailAddress]=dev@fishbowl.com

Sorting

You can control the order of results by using the order parameter. By default, results are ordered by their created date.

Example: Sort Guests by Last Name

> GET /api/public/guest?order\[]=lastName:desc > > OR > > GET /api/public/guest?order\[lastName]=desc

Pagination

For endpoints returning large datasets, pagination is used to control the number of results per request. Use the total property in API responses to paginate by increasing your offset.

Example: Get the First 20 Guests

> GET /api/public/guest?limit=20\ > GET /api/public/guest?limit=20\&offset=20\ > GET /api/public/guest?limit=20\&offset=40