Skip to content
Logan Serman edited this page Jan 14, 2015 · 1 revision

APIs accept a page and limit parameter to paginate their results. Pagination information is available to API consumers via the Link header on the response.

GET http://*.*/api/posts?page=2&limit=10
# => posts 11-20
# => Link: <http://*.*/api/posts?page=3&limit=10>; rel="next", <http://*.*/api/posts?page=10&limit=10>; rel="last"

By default, the results will not be paginated at all. You will still need to use the page parameter even if it is set to 1.

Clone this wiki locally