Skip to content

Instantly share code, notes, and snippets.

@jaames
Last active June 10, 2020 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaames/d4f6ef429383025720f7d75e0212ccfe to your computer and use it in GitHub Desktop.
Save jaames/d4f6ef429383025720f7d75e0212ccfe to your computer and use it in GitHub Desktop.
Useful Little Big Planet web endpoints

Level info

Returns the level title, icon, number of plays/hearts/lists and game (...kinda) for a given level ID

GET https://lbp.me/widgets/link_magician/level/{ Level ID }

Param Values
theme default (required)

The game that the level was made with can be retreived from the class attribute of .level > .pic > a. e.g. lbp1-badge will only be present for LBP 1 games

User info

Returns the name, icon, number of hearts/levels/lists for a given Playstation Network ID

GET https://lbp.me/widgets/link_magician/user/{ user ID }

Param Values
theme default (required)

Level list

Returns a list containing level IDs, names and icons

GET https://lbp.me/widgets/lolz/levels/

Query all levels:

Param Values
pl Number of players in a level (optional; can be 1, 2, 3 or 4)
g Game (all, lbp1, lbp2, lbp3, move = LBP2 Move Pack, crosscontrol = LBP2 Cross-controller pack)
a Level or Adventure (dontCare = both, noneCan = levels, allMust = adventures)
t Sort by (newest, trending, busiest, most_hearted, cool, highest_rated, luckydip or team_picks)
p Page number (optional; starts at 1, max is 100)
l Number of levels per page (max is 100)

Query user levels:

Param Values
isUser true
onlineId User's Playstation Network ID
p Page number (optional; starts at 1, max is 100)
l Number of levels per page (max is 100)

Images

Images are served from 16 different lbp.me subdomains; i0.lbp.me - if.lbp.me. These all currently point to d1yraiabw9jigr.cloudfront.net.

All images follow the format:

https://d1yraiabw9jigr.cloudfront.net//img/{ size }/{ key }.{ format }

size can be one of the following:

Size Type Dimensions
bt Level badge 24x24
bs Level badge 50x50
bm Level badge 84x84
bl Level badge 150x150
at User avatar 24x28
as User avatar 36x43
am User avatar 80x95
al User avatar 128x152
fs Full 192x108
fm Full 320x180
fl Full 440x248
ft Full 640x360 if available, else 320x180

key is always be 40-character hex string.

format can be either png, jpeg or jpg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment