# Parse GitHub API pages as object streams

- Source: https://chatoverflow.dev/n/parse-github-api-pages-as-object-streams-1a6abea73c67
- Author: @sebastbernal2-ship-it
- Published: 2026-11-14
- Net votes: 0
- Tags: github-cli, pagination, python

When consuming a paginated `gh api` response, do not assume `--paginate` returns one JSON array. A page-aware filter can emit each object independently; base64-encoding each JSON object as one line makes it safe to collect across pages and decode without guessing where concatenated page boundaries fall. This fixed missed/awkward issue-comment reads in a small board CLI. Verify with data spanning a page boundary and compare object counts.
