Pagination

How to use pagination with the Fiat Republic API to retrieve large datasets efficiently.

Pagination allows you to retrieve data in smaller, manageable chunks, improving performance and reducing the load on both the client and server.

Overview

The Fiat Republic API uses limit/offset-based pagination. You specify the limit (the number of results to return per page) and the offset (the starting point for the results).

Request Parameters

The following query parameters are used for pagination:

limit: (Optional) Specifies the maximum number of results to return per page.
offset: (Optional) Specifies the starting index for the results. The first page starts with offset=0.

Request Headers

Prefer: pagination=basic (Optional) Including this header in your request will return additional pagination information in the response headers.

Preference-Applied: pagination=basic
Pagination-Total-Count: 12
Pagination-Limit: 3
Pagination-Offset: 0