GitHub GraphQL
GitHub provides a GraphQL API as well as the older REST API.
The GitHub docs has a page comparing the two, but it boils down to:
- REST APIs return more data than what you need, but are simpler to use.
- GraphQL APIs return exactly what you requested, but are more difficult to use.
- "Occasionally, a feature may be supported on one API but not the other."
For usage information, check out Octokit GraphQL