7 Checks for an API Support Case About Missing Records Between Pages
Trace the page boundary, sort order and dataset changes before routing a report of missing API records.
The short answer
Collect two adjacent page responses and the requests that produced them. Check whether the second request used the continuation from the first response, then compare filters, sort values and the time of each request. Send the smallest pair of requests that shows the gap to the right owner.
A missing record is easier to investigate when the ticket shows the point where the list changed. Ask for the last record before the gap and the first record after it. Keep credentials and unrelated payload fields out of the ticket.
1. Collect the two adjacent pages
Record the requests and responses on each side of the gap.
Ask for the endpoint, request IDs, timestamps and record counts. Include redacted identifiers around the boundary and the parameters that affect which records appear. Preserve the order they came back in. Use a safe sample when the original response contains customer data.
- When it helps
- When the report only includes a missing record ID.
- What to watch
- A small boundary sample is easier to inspect than a full export.
2. Compare the continuation with the next request
Check which value the endpoint uses to continue.
GitHub’s REST documentation shows how a Link header supplies a URL for the next page. If the reported endpoint uses next links, compare the returned next URL with what the caller actually used, keeping private values in your approved support channel. A difference tells you which request to inspect first.1
- When it helps
- When a client generates its own next-page URL.
- What to watch
- Use the reported provider’s documented contract when comparing continuation values.
3. Check cursor direction and position
Confirm the cursor points to the intended side of the boundary.
Stripe documents that starting_after and ending_before point in opposite directions and cannot be combined on its list endpoints. Compare the recorded cursor to the boundary object required by the endpoint. Record both the parameter name and the object it refers to.2
- When it helps
- When a list overlaps or jumps after a forward or backward page request.
- What to watch
- A valid object ID can still select the wrong direction for the support case.
4. Compare the query and filters
Check the rules that decide which records belong in the list.
Line up account scope, date range, status filters and sort direction for both requests. Ask if a UI view or saved query changed between pages. In Elasticsearch, search_after uses the last hit’s returned sort values while the query and sort definition stay the same.3
- When it helps
- When a record is visible in a different query.
- What to watch
- Change one input at a time if the customer can show the gap in a safe test.
5. Look for tied sort values at the boundary
Record which fields decide the order when two rows tie.
Compare the sort values of the records around the gap. The Elasticsearch guide warns that equal sort values can be ordered inconsistently and discusses using a tie-breaker. If your endpoint’s published ordering rule is unclear, include the tied records in an engineering handoff.3
- When it helps
- When the missing and neighboring records share a timestamp.
- What to watch
- Keep the tie evidence in the case even if the record appears on a later attempt.
6. Check whether the dataset changed between requests
Record inserts, updates or deletes that could affect the order.
Ask when each request ran and what is known to have changed during the gap. Elasticsearch documents that a refresh between search requests can change ordering and describes a point in time as a way to preserve index state. If the endpoint has a documented snapshot option, note whether the caller used it.3
- When it helps
- When the gap only shows on a list that is being updated.
- What to watch
- Treat an unverified dataset change as a possibility to investigate.
7. Hand off the smallest case that shows the gap
Give the next owner one question to answer.
Route a continuation mismatch to the integration owner with the returned value and the next request. Send a repeatable gap with matching query inputs to the API owner with both response IDs and boundary sort values. If records may have changed, include the request times and the evidence for any updates.
- When it helps
- When the first-line agent needs to assign the case.
- What to watch
- Describe what the evidence shows and keep the cause open until it is confirmed.
Putting it into practice
Save the adjacent requests, their continuation and the boundary sort values. Those three pieces help the next owner distinguish a request change from a list whose order shifted.
Sources
- Using pagination in the REST API
Checked 23 November 2026 · Link headers and next-page URLs.
- Pagination
Checked 23 November 2026 · Cursor direction and mutually exclusive parameters on list methods.
- Paginate search results
Checked 23 November 2026 · Query and sort stability, tie-breakers and point-in-time searches.
How this guide was researched
Based on first-party API documentation. The support workflow, decision table, fictional case and illustration are original editorial work. No API account or dataset was tested.
A two-page diagnostic trace that links request continuation, matching inputs, sort boundary and dataset timing to the next support owner.
Editorial standards