Pagination

By default, Fintoc paginates 30 elements on each response from a List endpoint, such as the endpoint to List Movements. The API also returns the pagination information using the Link header, following the RFC standard. Beware: the Link header has nothing to do with Fintoc Links. It is just an unfortunate name collision 😕.

For each paginated request, the API returns the pagination information using the Link header. This header contains one or more URLs that direct to different pages.

Link: <https://api.fintoc.com/v1/links?page=1>; rel="first",
  <https://api.fintoc.com/v1/links?page=2; rel="next"

The possible rel values are:

NameDescription
nextLink that leads to the next page of the resource
lastLink that leads to the last page of the resource
firstLink that leads to the first page of the resource
prevLink that leads to the previous page of the resource

The following libraries parse the Link header so that you don't have to:

LanguageLibrary
Pythonrequests
RubyNitlink
JavaScriptparse-link-header