Pagination
Talent Protocol API will have pagination on endpoints that return sets of data.
In order to paginate requests API consumers will need to check the
pagination
field inside each response. Check the following response example:
{
followers: [...],
pagination: {
total: 100,
next_cursor: "042a900c-06e6-47a0-8de3-b9a63c24a33b"
}
}
In order to fetch the next page a new request will need to be performed with the
next_cursor
value being passed as a query param.https://api.talentprotocol.com/api/v1/followers?id=<id>&next_cursor=<next_cursor>
You will reach the last page when the
next_cursor
is null
.{
followers: [...],
pagination: {
total: 100,
next_cursor: null
}
}
You can learn more about this in the next chapter.
Last modified 2mo ago