. . . . .. .. .: . . .. . . .:.. .. .. .. . .. .+... . .. .::..: .. ... ..............:.+. . .. . .:..::::---=. ..:---:. . .=--=-:.-::..=:-:. . .. ..... . . .-. . .:==-----+=-:. :--:.=.-..... . .-===::---:-:::::. ..::-:--:. . .:.=.::--.. . ..... ..:-=== ===.-:: .::::..:: .:.... ..:==-=+=+=-=-=::.+.:.... .:-:::.. ...+... .:.:::-=++::.. .=.. . .. ..-...:..::+====.++=-:+::.... .::::---=::.. ..:::-=+==-+X+===-:.:-+=--::=:: ..::.:. .:..:+::=:::--=+XX+---:...::.... .. ..:.+....:--.::-:---=+X++++==-:::::......::==++--:..:==--=-=--==+X==++=---+-=+==--::. .:::: :-::::--+=--=+XXXXX++=---:=-:.:....=.... .. ..::::-=-::=++==+XX.XX+X+----==.--::.:-=+X+X+===-=X+===----== XXXX++++==++++++==-:....:::.==-=--==XXX=XXXX-X:++==-++=:::--:::::....= ...:.-::-====-.-=++:+XXXXXX+==-==++=----- =XXXXXXXXXXXXX++=---:==+X.XX.+XXXXXX+X+XX++++-:.::--=X++:X =XXXXX++.XX++X++X+++--::--:-::::.:. .-..::.-=====-=-=++:+XXXXXX+==-==++=----- =XXXXXXXXXXXXX++=---:==+X.XX.+XXXXXX+X+XX++++-:.::--=X++:X =XXXXX++.XX++X++X+++--::--:-::::.:.

Pagination

Understand how to work with paginated responses.
View
epuraı
epuraı
K
  • Introduction
  • Quickstart
  • SDKs
  • Guides

    • Introduction
    • Quickstart
    • Authentication
    • Pagination
    • Errors
  • API Reference

    • Feeds
    • Feed Posts
    • Categories
    • AI
  • Sign in

Pagination

All list endpoints in the Repurai API return results in pages rather than all at once.

Pagination parameters

ParameterTypeDefaultMaxDescription
pageinteger1—The page number to retrieve.
pageSizeinteger20100How many results to return per page.

Response format

Every list response wraps results in the same format:

{
  "data": [...],
  "page": 1,
  "pageSize": 20,
  "hasMore": true
}
FieldTypeDescription
dataarrayThe results for this page.
pageintegerCurrent page number.
pageSizeintegerNumber of results per page.
hasMorebooleantrue if there are more results after this page.

Fetching all pages

Request page 2 with 50 results per page:

curl "https://repurai.com/api/v1/posts?page=2&pageSize=50" \
  -H "Authorization: Bearer rep_your_api_key"

To fetch everything, keep requesting the next page while hasMore is true:

async function* fetchAllPosts(apiKey) {
  let page = 1
  let hasMore = true

  while (hasMore) {
    const res = await fetch(
      `https://repurai.com/api/v1/posts?page=${page}&pageSize=100`,
      { headers: { Authorization: `Bearer ${apiKey}` } }
    )
    const json = await res.json()
    yield* json.data
    hasMore = json.hasMore
    page++
  }
}
PreviousAuthentication
NextErrors

© Copyright 2026. All rights reserved.