Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Everything Else LittleBigPlanet 2
#1

LBP.me API

Archive: 31 posts


I'm just curious if anyone would like a LBP.me API for levels / profiles, this is the data I feed into my level/profile sigs but was wondering if anyone would like me to make it available for everyone.

http://i55.tinypic.com/2w5srpg.png

I also have one for users but its preety much the same as the user section on there (with LBP1 and LBP2 level spots published)
2011-02-21 02:00:00

Author:
fodawim
Posts: 363


Well as long as MM have nothing againts.... i say do it it will extend LBP features on web. Throuth you need to have server that will handle lot of web requests2011-02-21 02:05:00

Author:
Shadowriver
Posts: 3991


Well as long as MM have nothing againts.... i say do it it will extend LBP features on web. Throuth you need to have server that will handle lot of web requests
I haven't gotten 100% approval yet but tom talked to me before about something similar (a XML API) and he recommended I cache results to not kill their server.

ATM with my level sig maker its caching results for 10 minutes, but with this it would be 30 minutes due to the massive amount of requests that could happen.

(Also since Friday at about 5PM to right now my server has cached 144 levels/profiles for the sig, seems to be holding up smoothly so far.)
2011-02-21 02:12:00

Author:
fodawim
Posts: 363


Hi,

I think an API to the LBP Levels & user profiles would be awseome, note that I came here right now by googling "little big planet api" and not browsing this site (allthough I'm a member), so my interest is not based on "hey why not" but I was actively looking for information.
On another note I am a bit confused about who you are? Are you a MM representative? Are you managing lbp.me? Please explain
2011-02-22 08:39:00

Author:
freak42
Posts: 43


He is admin of LBP2blog.com and trying to make API out of lbp.me, i guess by riping HTML 2011-02-22 14:05:00

Author:
Shadowriver
Posts: 3991


most people guess I rip the LBP.me HTML but im actually using some json feeds of LBP.me 2011-02-22 22:18:00

Author:
fodawim
Posts: 363


Woah! Those json feeds aren't public though, are they?2011-02-23 08:01:00

Author:
freak42
Posts: 43


Woah! Those json feeds aren't public though, are they?
well tom told them to me, they arent secure but im not going to post them unless tom gave me the OK.
2011-02-23 23:04:00

Author:
fodawim
Posts: 363


well in any case I would be interested in accessing them to daddle around with customized recommendations...2011-02-24 10:11:00

Author:
freak42
Posts: 43


I would definitely be interested in an API of it and I would use it.2011-02-24 10:17:00

Author:
LittleBigDes
Posts: 920


Woah! Those json feeds aren't public though, are they?

But they need to be public in order to site to work, it's only matter if it documented or not, but thats does not matter for someone who wants to use them
2011-02-24 15:11:00

Author:
Shadowriver
Posts: 3991


But they need to be public in order to site to work, it's only matter if it documented or not, but thats does not matter for someone who wants to use them

nah, they can be encrypted, password protected or it can be plain illegal to access them. Frankly I do not want to take my chances.. been on sackbook.com lately?
2011-02-24 21:13:00

Author:
freak42
Posts: 43


nah, they can be encrypted, password protected or it can be plain illegal to access them. Frankly I do not want to take my chances.. been on sackbook.com lately?

Even if it encrypted it will be useless since in order to site to work you need to decrypt, only way to do it via browser is use SSL, but SSL is thing that will work on any software, in order to decrypt site need to give you a key to do so, so as all software can use it all software can decrypt. So it will only protect content that sever sent to you and nobody in between can read it, like routers connecting you with server can read what is not encrypted.

With legality, they can't make usage of those feeds illegal directly since there no law to that if it's public they, can't make laws from there back parts. I notice lot of people considered EULA rules braking to "illegal", actually this works in reverse way it allows Sony legally ban you from service that you registered to in state of law since you accepted the rules in aggredment. But if you flood the server with those feeds this might be considered as DoS attack which is illegal, which i heared sackbook did due high usage.

Only way MM could fix is is to send data only in html
2011-02-25 05:38:00

Author:
Shadowriver
Posts: 3991


i heared sackbook did due high usage.
Only way MM could fix is is to send data only in html
I think both of those are the reason tom told me to cache stuff for atleast 10 minutes (which I am doing via some very simple caching on my server).

Anyways little bit of an update, I got hold of a new way to parse some new-ish "data" to get recent activity streams, users photos, latest photos on a level, and maybe some more and I even added a little server section that will tell you if the servers are online (or atleast replying to pings)
EDIT SEE BELOW

(I'm still trying to get tom to say YES to me making it public but so far no reply)


Here is a full list of what data I can get from the lbp.me server for levels, still evaluating what I can do on users
15 Latest images taken in the level
10 Most recent entries in the Activity Feed
20 Latest Reviews
20 Latest Comments
2011-02-25 06:43:00

Author:
fodawim
Posts: 363


(I'm still trying to get tom to say YES to me making it public but so far no reply)


still evaluating what I can do on users


both would be awesome!
2011-02-25 15:18:00

Author:
freak42
Posts: 43


Hiho,

I just wanted to chime in again and letting you know that I (and probably others) are still interested in an api access and eagerly awaiting your surely fantastic news for us
2011-03-03 09:15:00

Author:
freak42
Posts: 43


Hiho,

I just wanted to chime in again and letting you know that I (and probably others) are still interested in an api access and eagerly awaiting your surely fantastic news for us
I'm still interested in making it but haven't gotten the approval of it yet...maybe soon

EDIT: I've decided that I will launch it soon (weekend hopefully) but without full approval (tom never has gotten back to me on it)
so I will launch it but be prepared for it to go offline if they request ok
2011-03-03 22:01:00

Author:
fodawim
Posts: 363


well I guess that's good enough for toying around a bit, although I won't invest any considerable time while MM's stance isn't clear.
Thanks for the info.
2011-03-04 20:09:00

Author:
freak42
Posts: 43


well I guess that's good enough for toying around a bit, although I won't invest any considerable time while MM's stance isn't clear.
Thanks for the info.
I dint think they mind it, they allowed me to do one before but it was a different method, but they gave me info on a feed I'm using which may be what they don't like about it......

Ok guys just a little pre-launch info, so far I have error handling for 11 errors.
Error #000 = Unknown Error
Error #001 = No LEVEL ID supplied
Error #002 = No SITE ID supplied
Error #003 = No SITE ID and LEVEL ID supplied
Error #004 = PSN Profile Can't be found [PSN ID is incorrect]
Error #005 = PSN Profile Doesn't publish to LBP.me
Error #006 = Level Can't be found [LEVEL ID is incorrect]
Error #007 = Level doesn't publish to the web
Error #008 = No PSN ID supplied
Error #009 = No PSN ID and no PLAYER ID supplied
Error #010 = Site ID has been banned from using the API [not implemented atm]
Error #011 = Site ID has not been approved to use the API

While debugging/playing around you will supply the site ID of de.bug, more info coming soon and photo links will most likely be disabled at launch due to some issues...
2011-03-04 22:27:00

Author:
fodawim
Posts: 363


special errors for double errors seems strange watch out on that or you will end up with 16 different errors instead of just making 4 errors in this way ^^' you use XML for errors too right?
How about separate tags for each error that been issued? like compilers do for example

Error #004 = PSN Profile Can't be found [PSN ID is incorrect] - would also add "or never played any LBP games" or something like that, since 404 error goes to PSN that don't made any LBP activity too

Heres for example my brother PSN that he never played LBP2 or LBP on his profile:

http://lbp.me/u/Lebrinho
2011-03-05 16:46:00

Author:
Shadowriver
Posts: 3991


special errors for double errors seems strange watch out on that or you will end up with 16 different errors instead of just making 4 errors in this way ^^' you use XML for errors too right?
How about separate tags for each error that been issued? like compilers do for example

Error #004 = PSN Profile Can't be found [PSN ID is incorrect] - would also add "or never played any LBP games" or something like that, since 404 error goes to PSN that don't made any LBP activity too

Heres for example my brother PSN that he never played LBP2 or LBP on his profile:

http://lbp.me/u/Lebrinho
Yeah my error system was crap gonna do a rewrite of it (used XML as error output too soo ) but, there will still be 2 PSN ID errors, one will be INVALID PSN ID (less than 3 chars or greater than 16)...

WOOTS its up just remember this is really ALPHA code so errors should be expected, photos are disabled atm but will be up soon.

heres a example http://api.lbp2blog.com/level.php?l=xsj7pe&site=lol
the level URL on LBP.me (such as http://lbp.me/v/xsj7pe) would be xsj7pe and just add it in where l=XXXXXX.

profiles are simple http://api.lbp2blog.com/profile.php?u=fodawim&site=lol just replace fodawim with the PSN id

please report any errors and some optimization will be happening on levels so be careful with them for now

Also for now as long as you supply a site ID it will be fine no enforcements on them atm...
2011-03-06 02:32:00

Author:
fodawim
Posts: 363


You changed mime header? my browser don't see it as XML, probably because server gives HTML mime. Also you linked localhost... genius 2011-03-06 04:21:00

Author:
Shadowriver
Posts: 3991


You changed mime header? my browser don't see it as XML, probably because server gives HTML mime. Also you linked localhost... genius
Yes I changed mime header, what browser are you using? I've noticed a few browsers won't display it properly (Mobile Safari, Google Chrome, Safari, seems it is webkit related but it works fine in firefox). and yesh I accidentally linked localhost XD sorry I do building on localcomp and forgot to use the live server for it....
2011-03-06 06:03:00

Author:
fodawim
Posts: 363


Hi fodawim,

thanks for this, exciting times indee!

Unfortunately, your feeds don't provide me with the information I am seeking which basically are all related information to rating and playing levels. (Basically the latest activity feeds on lbp.me of both players and levels as well as hearted levels and comments).
The reason I'd like to have this is because I wanted to experiment with a level recommendation system that takes your playing history and preferences into accoutn (oh that reminds me, the tag information would also be awesome).

Do you think there is a way for this to ever become available to outsiders?

Cheers and thanks for your work so far!
2011-03-06 09:48:00

Author:
freak42
Posts: 43


Unfortunately, your feeds don't provide me with the information I am seeking which basically are all related information to rating and playing levels. (Basically the latest activity feeds on lbp.me of both players and levels as well as hearted levels and comments).
The reason I'd like to have this is because I wanted to experiment with a level recommendation system that takes your playing history and preferences into accoutn (oh that reminds me, the tag information would also be awesome).
atm its not as good as I would like it, but in levels it takes the last 10 people who played your level and lists them, im still working on profiles and could most likely do something like that for profiles.
2011-03-06 14:25:00

Author:
fodawim
Posts: 363


Yea chrome, chromium to be exact 2011-03-06 15:24:00

Author:
Shadowriver
Posts: 3991


Yea chrome, chromium to be exact
ah try adding view-source: before the link and you should see the source of it atleast, it wont look good and it may be all collapsed but you could see it atleast

well did a update to profiles now shows latest 20 (I think) levels played/we from your activity feed and 30 latest hearts.

Although if someone plays a level with "" in its title the feed will break (such as my profile right now)...
2011-03-06 15:44:00

Author:
fodawim
Posts: 363


Bump, is anyone still remotely interested in this? If not I'm gona stop development and just scrap it.2011-03-09 05:00:00

Author:
fodawim
Posts: 363


Hi fodawin,

sorry for not replying earlier (real life sometimes interferes (seesh)).
I still am interested in getting as much information out of the lbp system as possible.
As said I am curious about interpreting level, comments, yay's, booh's and hearts of players and levels to make recommendations.

Currently however I can't access all (or even part) of the needed information as far as I understand, and even then, providing only the last -x- items of an information stream would probably give rise to a lot of issues (caching, hitting your server way too often, and so on), because I somehow need rather complete information of what's going on on MOST levels with MOST players and not only a tiny tidbit of what some people did on some levels, otherwise there is no way to even start thinking of recommending levels to players.

Do you think there is a way to get there?
2011-03-09 11:25:00

Author:
freak42
Posts: 43


Hi fodawin,

sorry for not replying earlier (real life sometimes interferes (seesh)).
I still am interested in getting as much information out of the lbp system as possible.
As said I am curious about interpreting level, comments, yay's, booh's and hearts of players and levels to make recommendations.

Currently however I can't access all (or even part) of the needed information as far as I understand, and even then, providing only the last -x- items of an information stream would probably give rise to a lot of issues (caching, hitting your server way too often, and so on), because I somehow need rather complete information of what's going on on MOST levels with MOST players and not only a tiny tidbit of what some people did on some levels, otherwise there is no way to even start thinking of recommending levels to players.

Do you think there is a way to get there?

I think the really only way to get that far would be official MM involvement, I would only be able to get the last few or so results to any querry.
2011-03-09 13:30:00

Author:
fodawim
Posts: 363


I think the really only way to get that far would be official MM involvement, I would only be able to get the last few or so results to any querry.

well then let's wait until the MM guy responds to you and keep our fingers crossed
2011-03-09 18:00:00

Author:
freak42
Posts: 43


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.