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:
Name | Description |
---|---|
next | Link that leads to the next page of the resource |
last | Link that leads to the last page of the resource |
first | Link that leads to the first page of the resource |
prev | Link that leads to the previous page of the resource |
The following libraries parse the Link
header so that you don't have to:
Language | Library |
---|---|
Python | requests |
Ruby | Nitlink |
JavaScript | parse-link-header |