How to get someones badges outside roblox?

Hello!

I am trying to get the users badges from outside Roblox.
I tried using the inventory API but if I enter AssetType 21 (Badge), it will always return with the same error:

  "errors": [
    {
      "code": 2,
      "message": "Invalid asset type Id.",
      "userFacingMessage": "Something went wrong"
    }
  ]
}

I tried it with these Parameters:

How would I be able to get the player badges then, or is there another thing where I can search for one specific badge?

Thanks,
flojo

Use this endpoint to get a list of badges a user has been awarded: Badges Api

Thanks! Is there something where I can search for one specific badge, or do I have to loop through all badges of the user?

Do you want to get badge information by badge Id or do you want to check if the player has a badge?

I want to check if the player has a specific badge

Yes, you need to loop through all the badges that have been awarded to the user.

Alright, thank you so much Buzz!

1 Like