Return only items matching a specific field value.
Section: cURL and API Recipes
Filter repos by language
bash
bash
curl -s https://api.github.com/orgs/github/repos?per_page=20 | jq '.[] | select(.language == "Go") | {name, language}'Explanation
A good example of combining `select()` with object projection.
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 cURL and API Recipes
Extract one field from API response
Print a single field like a repo name or count.
List names from API array
Extract one field from each array item in an API response.