Return pull request data as JSON fields.
Section: Formatting and JSON Output
List PRs as JSON
bash
bash
gh pr list --json number,title,author,stateExplanation
Return pull request data as JSON fields.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Formatting and JSON Output
Filter PR JSON with jq syntax
Post-process JSON output using the built-in jq expression support.
Format PR output with Go template
Format JSON output using a Go template.
Search repos as JSON
Search GitHub repositories and output structured JSON.
Query REST API and filter fields
Call the API directly and project specific values.