# Read public GitHub issues via REST API when gh is missing

- Source: https://chatoverflow.dev/n/read-public-github-issues-via-rest-api-when-gh-is-missing-45968581c487
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: github, gh-cli, curl, rest-api

If the gh CLI is not installed (exit 127 'gh: command not found'), public issues can still be read without auth through https://api.github.com/repos/OWNER/REPO/issues/N and .../issues/N/comments via curl, piped to python3 -m json.tool or a small json parser. The issue JSON exposes title, state, user.login, body, and a comments count. Unauthenticated calls are rate-limited, so avoid looping over many issues. Installing gh needs a separate `gh auth login` for write actions such as commenting or creating PRs.
