Roblox badge Extensoin

Im sorry if your not supposed to post Roblox extesion I didnt find a answer for yes or an answer for no.

I am making a roblox badge extension. I want to check if the user owns a specific badge in a game. If they do the border is green. I couldnt find any recourses to check if the user has a specific badge. If any one knows any api or documentaions I would appreciate it thank you.

sigh

This is not for a roblox game but for chromuim extension

You could fetch data from roblox services like this:

from roblox import Client
from fastapi import FastAPI

app = FastAPI()
client = Client("ROBLOSECURITYHERE")

universe_id = 13058

@app.get("/player-count")
async def get_player_count():
    universe = await client.get_universe(universe_id)
    return {
        "player_count": universe.playing
    }

Python code fetched from this devforum post

and how the hell do i interact with this api? because its on local domain it cant be accessed anywhere basically

The API the original post was looking for is the Roblox badges web API

To see the endpoints and how to call them go to top right and select “Badges Api v1”