Parse groups and their member count

I would like to know how I could parse a group list like the one below:

And then retrieve the information like this:

  • chapter_netherlands (6)
  • chapter_poland (1)
  • etc.

For topics we can do amazing things like raw format topics and then parse that info. I want to be able to parse the group data. The goal is to use that information and display it on a map. Is there a nice way to request this info from the site? Or do I have to web carve it out of there with e.g. Python?

Discourse API covers 100% of the app, since we also use it for the the SPA app. You can learn how to use it with How to reverse engineer the Discourse API.

In this particular case the endpoint is

1 Like