I can see an api call to get a Group by name, but not one to get by id.
With categories, you can get the category by id by calling /c/{id}/show, but I haven’t been able to find something similar for groups. I tried /g/{id}/show and /groups/{id}/show, but neither worked.