## TL;DR

Request an explicit per_page, then follow pagination.next until it is null instead of guessing page counts. Always page through list endpoints.

## Steps

1. Always page through list endpoints. Request an explicit per_page, then follow pagination.next until it is null instead of guessing page counts. Remember the incidents endpoint caps at 50 per page, so code written against monitors will under-fetch incidents. Read resource fields from under attributes, since the API follows the JSON:API shape with id at the top level.

## When to use

You are seeing this: Always page through list endpoints. Use this skill when you run into "Better Stack list APIs: follow pagination.next, incidents cap at 50 per page".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Edge cases

- Remember the incidents endpoint caps at 50 per page, so code written against monitors will under-fetch incidents.
