How to get more than 100 pages from getAll()?

I use next.js and get paths from builder.getAll(). I have the option to set a query param limit

Max number of results to return. The default is 30 and the maximum is 100 .
(Content API - Builder.io)

If I have more than 100 pages, how should I get paths in this case? Because probably I will get a 404 error on subsequent pages after the 100th?

I return fallback: false from getStaticPaths

  const pages = await builder.getAll("page", {
    options: { noTargeting: true },
    limit: 100,
  });
  return {
    paths: pages.map((page) => `${page.data?.url}`),
    fallback: false,
  };

Hi @Nastya,

You may find help at What's the maximum limit allowed in a single content API call?

1 Like