Skip to content

Pagination

List endpoints return:

{
"items": [],
"cursor": "next_cursor_or_null",
"hasMore": true
}

When hasMore is true, pass the returned cursor to fetch the next page.

For search endpoints, include cursor in the JSON request body:

Terminal window
curl https://api.afterlib.com/v1/ads/search \
-H "Authorization: Bearer $AFTERLIB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 25,
"cursor": "next_cursor_or_null"
}'

For collection items, include cursor as a query parameter:

Terminal window
curl "https://api.afterlib.com/v1/collections/00000000-0000-0000-0000-000000000000/items?itemType=ads&cursor=25" \
-H "Authorization: Bearer $AFTERLIB_API_KEY"

Use limit to control page size. Collection item reads default to 50 and allow up to 100.