WARNING
Stars Update

The stars update has completely overhauled the 5beam API works, so there is a chance that some of the endpoints here are missing information or are outdated. If you're trying to do something and the documentation here isn't clear, PLEASE don't persevere, contact me on DISCORD

zelo101
or alternatively my ZELO.DEV
/qa
page so I can fix it ASAP.

WARNING
CORS

To prevent abuse, endpoints that require authentication only work for allowed domains. If you want to use these endpoints for a site, please contact Contact DISCORD

zelo101
with your domain.

INFO
Supported Mods
  • Mawilite's "5*30"
  • The Golden Guard's "Golden 5"

While these mods are supported, they are currently missing some features such as advanced search and validation when uploading.


Contact DISCORD

zelo101
if you'd like to have your 5b mod supported!

STRUCT
Level
{
  "area": 576,
  "background": 0,
  "characters": [
    "9azb46ypgafu271"
  ],
  "charactersCount": 1,
  "created": "2022-07-23 00:03:45.441Z",
  "creator": {
    "avatar": "",
    "created": "2022-07-08 01:10:53.329Z",
    "discordId": "189004032600309760",
    "id": "m44nvxs3tjoqor0",
    "roles": "admin",
    "stars": [],
    "updated": "2025-07-21 01:03:29.136Z",
    "username": "zelo.dev"
  },
  "data": "loadedLevels=\r\nTime to explore\r\n32,18,01,00,L\r\n................................\r\n................................\r\n................................\r\n................................\r\n................................\r\n................................\r\n................................\r\n................................\r\n................................\r\n................................\r\n................................\r\n...........................4....\r\n666......................////.:.\r\n//6666........5...../////////>>>\r\n/////6666.....//////////////////\r\n////////////////////////////////\r\n////////////////////////////////\r\n////////////////////////////////\r\n01,03.50,00.00,10\r\n06\r\n00S Whoa!  Hold on a second, this place doesn't look familiar.  What happened?    I don't remember anything!\r\n00S Uh... well, um... uh.... gosh, I'm so confused.\r\n00H Oh, I know!  I'll look through my journal entries!   After all, I am a journal.  So, let's see...   five minutes ago, I...\r\n00S ...got eaten by Evil Leafy? WHAT?  That doesn't make any sense!\r\n00S Well, I guess I'll go look for my fellow FreeSmarters to get a sense of what's going on.\r\n99S Use the arrow keys to move and press the space bar to jump.\r\n000002",
  "dataHash": "05f9b5d04a54aa11dcfc04365032de57b7da81db0a22abe981f3c34b5290b4cd",
  "description": "first level from the 5b game",
  "difficulty": 0,
  "featured": true,
  "id": "1fck6fch07q3m0i",
  "modded": "",
  "plays": 14550,
  "stars": 0,
  "thumbnail": "blob_2S6FRCLMj3.png",
  "title": "5b 001",
  "unlisted": false,
  "updated": "2026-02-16 00:18:41.091Z"
}
STRUCT
Levelpack
{
  "created": "2023-11-16 22:22:49.169Z",
  "creator": {
    "avatar": "",
    "created": "2023-10-28 19:54:31.976Z",
    "discordId": "785868651151884298",
    "id": "q1pgyzg1s5oixzr",
    "roles": "",
    "stars": [],
    "updated": "2023-11-16 22:30:58.604Z",
    "username": "boatogravy"
  },
  "description": "",
  "featured": false,
  "id": "najny189ht21n9z",
  "levels": [
    "ugo367k39efnt61",
    "0o8dzf7fjtfjuqo",
    "l8sx1r7sa2lmj4d",
    "13ghtddsqdvz8xh",
    "w6mdo5qbay1ilv9",
    "zju440ha3mrtuxt",
    "5ww2ssp8r2qniln",
    "gbak1tpphfbecpt",
    "rwt50chfprm1ge1",
    "zeo7u9tdurqztvl",
    "1javepbnv6tdial"
  ],
  "modded": "",
  "plays": 10374,
  "stars": 0,
  "title": "5bRM",
  "updated": "2026-02-16 01:34:24.978Z"
}
STRUCT
User
{
  "avatar": "",
  "created": "2022-07-08 01:10:53.329Z",
  "id": "m44nvxs3tjoqor0",
  "stars": [],
  "username": "zelo.dev"
}
GET
api/ level
Parameters
NameDescriptionTypeDefaults
idLevel IDINTEGER

Returns a STRUCT Level.

Also returns PROP starred if you are logged in.


To authenticate, include your TOKEN 5beam_auth in the "Authorization" header of your request. Example: "Authorization: Bearer (TOKEN HERE)".

POST
api/ level/ star
Auth Required
Parameters
NameDescriptionTypeDefaults
idLevel IDINTEGER

Stars or unstars a level.

GET
api/ levelpack
Parameters
NameDescriptionTypeDefaults
idLevelpack IDINTEGER
levelsInclude LevelsINTEGER0

Level codes:

Level Codes
CodeMeaning
0Return Level ID's
1Return STRUCT Levels (can be slow)

Returns a STRUCT Levelpack

Also returns PROP starred if you are logged in.


To authenticate, include your TOKEN 5beam_auth in the "Authorization" header of your request. Example: "Authorization: Bearer (TOKEN HERE)".

POST
api/ levelpack/ star
Auth Required
Parameters
NameDescriptionTypeDefaults
idLevelpack IDINTEGER

Stars or unstars a levelpack.

GET
api/ user
Parameters
NameDescriptionTypeDefaults
idUser IDSTRING

Returns a STRUCT User.

GET
api/ user/ page
Parameters
NameDescriptionTypeDefaults
idUser IDINTEGER
pagePage numberINTEGER
typeType ofINTEGER0
sortSort byINTEGER0
modOnly show levels / levelpacks that are for a specific 5b modSTRING

Returns a list of STRUCT Level created by the user.

Type codes:

Type Codes
CodeMeaning
0Levels
1Levelpacks

Sort codes:

Filter Codes
CodeMeaning
0Age (newest)
1Age (oldest)
2Plays (descending)
3Stars (descending)
GET
api/ user/ stars
Parameters
NameDescriptionTypeDefaults
idUser IDINTEGER
typeType ofINTEGER0

Returns the full list of STRUCT Level starred by the user.

Type codes:

Type Codes
CodeMeaning
0Levels
1Levelpacks
GET
api/ user/ stars/ page
Parameters
NameDescriptionTypeDefaults
idUser IDINTEGER
pagePage numberINTEGER
typeType ofINTEGER0
sortSort byINTEGER0
modOnly show levels / levelpacks that are for a specific 5b modSTRING

Returns a page of STRUCT Level starred by the user.

Type codes:

Type Codes
CodeMeaning
0Levels
1Levelpacks

Sort codes:

Filter Codes
CodeMeaning
0Age (newest)
1Age (oldest)
2Plays (descending)
3Stars (descending)
GET
api/ profile
Auth Required

Returns your STRUCT User.


To authenticate, include your TOKEN 5beam_auth in the "Authorization" header of your request. Example: "Authorization: Bearer (TOKEN HERE)".

GET
api/ page
Parameters
NameDescriptionTypeDefaults
pagePage numberINTEGER
typeType ofINTEGER0
sortSort byINTEGER0
featuredOnly featured levels / levelpacksBOOLEANfalse
modOnly show levels / levelpacks that are for a specific 5b modSTRING

Returns a list of STRUCT Level.

Type codes:

Type Codes
CodeMeaning
0Levels
1Levelpacks

Sort codes:

Filter Codes
CodeMeaning
0Age (newest)
1Age (oldest)
2Plays (descending)
3Stars (descending)
GET
api/ page/ random
Parameters
NameDescriptionTypeDefaults
pagePage numberINTEGER
typeType ofINTEGER0
sortSort byINTEGER0
featuredOnly featured levels / levelpacksBOOLEANfalse
modOnly show levels / levelpacks that are for a specific 5b modSTRING

Returns a list of STRUCT Level.

Type codes:

Type Codes
CodeMeaning
0Levels
1Levelpacks

Sort codes:

Filter Codes
CodeMeaning
0Age (newest)
1Age (oldest)
2Plays (descending)
3Stars (descending)
GET
api/ page/ trending
Parameters
NameDescriptionTypeDefaults
pagePage numberINTEGER
typeType ofINTEGER0
sortSort byINTEGER0
featuredOnly featured levels / levelpacksBOOLEANfalse
modOnly show levels / levelpacks that are for a specific 5b modSTRING

Returns a list of STRUCT Level.

Type codes:

Type Codes
CodeMeaning
0Levels
1Levelpacks

Sort codes:

Filter Codes
CodeMeaning
0Age (newest)
1Age (oldest)
2Plays (descending)
3Stars (descending)
GET
api/ daily

Returns the daily STRUCT Level.

GET
api/ search
Parameters
NameDescriptionTypeDefaults
textSearch textSTRING
typeType ofINTEGER0
pagePage numberINTEGER
sortSort byINTEGER0
featuredOnly featured levels / levelpacksBOOLEANfalse
area(Levels only) Filter levels based on size (width * height)INTEGER0
characters(Levels only) Filter levels based on characters presentARRAY
modOnly show levels that are for a specific 5b modSTRING

Returns a list of STRUCT Level who's title contains the search text. Levelpacks are not supported in search yet.

Type codes:

Type Codes
CodeMeaning
0Levels
1Levelpacks

Sort codes:

Filter Codes
CodeMeaning
0Age (newest)
1Age (oldest)
2Plays (descending)
3Stars (descending)

Area codes:

Area Codes
CodeMeaning
0Any
1<=576 (18 * 32)
2>=576 to <=1024
3>=1024

Character codes:

Character Codes
CodeMeaning
Book
Bubble
Ice Cube
Lego Brick
Match
Pencil
Ruby
Tune
Waffle
POST
api/ create/ level
Auth Required

Create a STRUCT Level. You will need to give 5beam the following using a FormData object:

PropertyMeaningType
titleLevel titleSTRING
descriptionLevel descriptionSTRING
difficultyLevel difficulty (0 - 7)INTEGER
dataLevel fileFile
moddedWhat mod this level is for (Leave blank for HTML5b / Flash 5b)STRING

To authenticate, include your TOKEN 5beam_auth in the "Authorization" header of your request. Example: "Authorization: Bearer (TOKEN HERE)".

POST
api/ create/ levelpack
Auth Required

Create a STRUCT Levelpack. You will need to give 5beam the following using a FormData object:

PropertyMeaningType
titleLevelpack titleSTRING
descriptionLevelpack descriptionSTRING
difficultyLevelpack difficulty (0 - 7)Array of INTEGERS
dataLevelpack fileFile
moddedWhat mod this levelpack is for (Leave blank for HTML5b / Flash 5b)STRING

To authenticate, include your TOKEN 5beam_auth in the "Authorization" header of your request. Example: "Authorization: Bearer (TOKEN HERE)".

POST
api/ modify/ level
Auth Required

Create a STRUCT Level. You will need to give 5beam the following using a FormData object:

PropertyMeaningType
titleLevel titleSTRING
descriptionLevel descriptionSTRING
difficultyLevel difficulty (0 - 7)INTEGER
dataLevel fileFile
moddedWhat mod this level is for (Leave blank for HTML5b / Flash 5b)STRING

To authenticate, include your TOKEN 5beam_auth in the "Authorization" header of your request. Example: "Authorization: Bearer (TOKEN HERE)".

POST
api/ modify/ levelpack
Auth Required

Create a STRUCT Levelpack. You will need to give 5beam the following using a FormData object:

PropertyMeaningType
titleLevelpack titleSTRING
descriptionLevelpack descriptionSTRING
difficultyLevelpack difficulty (0 - 7)Array of INTEGERS
dataLevelpack fileFile
moddedWhat mod this levelpack is for (Leave blank for HTML5b / Flash 5b)STRING

To authenticate, include your TOKEN 5beam_auth in the "Authorization" header of your request. Example: "Authorization: Bearer (TOKEN HERE)".

GET
api/ login/ oauth
Parameters
NameDescriptionTypeDefaults
redirectURIRedirect URISTRING

Public endpoint for logging into 5beam discord OAuth, returns an TOKEN 5beam_auth on successful login.