Skip to content
Lukas edited this page Dec 15, 2025 · 5 revisions

Frame API

api.sgc.se/public_api/frame/generate - POST

With this route, you can generate a custom Gamerbot level frame.

Required JSON:

  • name (String) - The name you want on the generated frame
  • frameId (Number) - Frame number you want the frame to generate with.
  • level (String) - The level the user is, will be generated on the frame
  • xpPercentage (number) - The xp percentage number, for example 0.3 (30%)
  • hexColor (String) - Hex color the background should be.

Optional JSON:

  • memberAvatar (String (url)) - Url for member avatar, aka discord profile picture.
  • cachedId (String) - If you send this it will cache the request with that id and if you request again it will send the cashed request. Use this for minimizing heavy requests

Example JSON body

{
    "userid": "249653220534779905",
    "frameId": "0",
    "hexColor": "#ffffff",
    "name": "lukas",
    "level": "500",
    "xpPercentage": 50
}

Payload: The payload is going to be a PNG picture

api.sgc.se/public_api/get/config - GET

Returns the frame config. This will come with all frames available and their names.

Payload

{
frames: [
    ...,
    {
        "name": "default",
        "frameLink": "https://api.sgc.se/public_api/frame/0",
        "id": 0
    },
    ...,
]
}

Link: https://api.sgc.se/public_api/frame/config

Clone this wiki locally