How to find team_id on Bountysource

bountysource

I would like to use Bountysource Badges which display all bounties for the specific team, e.g.:

However the URL for the badge is:

https://api.bountysource.com/badge/team?team_id=69

and the destination URL is: https://www.bountysource.com/teams/facebook/bounties

How do I know facebook = 69?

How do I find the team_id I should use for bounties of any team?

Or what other badge I can use to list all the open bounties that the team has open?

Best Answer

You can do this with the secret API:

curl https://api.bountysource.com/teams/facebook \
  -H 'Accept: application/vnd.bountysource+json; version=2'