Get list of all the teams in your organization
GITHUB_TOKEN=<YOUR-GITHUB-TOKEN-WITH-org:read-CHECKED>
GITHUB_ORG=<YOUR ORGANIZATION>
curl -sH "Authorization: token $GITHUB_TOKEN" https://api.github.com/orgs/$GITHUB_ORG/teams\?per_page\=100
Note the "id":
for the Team of your choice
Ex: "id": 68705"
Get the team member list:
GITHUB_TEAM_ID=68705
curl -sH "Authorization: token $GITHUB_TOKEN" https://api.github.com/teams/$GITHUB_TEAM_ID/members\?per_page\=100