You can already hit this api endpoint at https://<sitename>/user-badges/<username>.json and it returns the full list of badges. Are you looking for something else?
You can already hit this api endpoint at https://<sitename>/user-badges/<username>.json and it returns the full list of badges. Are you looking for something else?