Find User here you can look for a user

[API] Player Info

4y
#1
Update 20220330: This API has been depreciated in favor of the New Player Info API which gives additional information.

https://mc1.my-colony.com/api.php?pf=6&g=1&u=bastecklein
(replace bastecklein with desired username)

Returns JSON formatted array data containing a list of all user's colonies on the server.

[{
"name":"Domination",
"charter":"jGTKNfWT",
"independent":"April 19, 2017",
"population":"189595",
"founded":"April 8, 2017",
"screenshot":"https:\/\/www.my-colony.com\/screenshots\/ss-606928.jpg",
"lastactive":"2019-10-10 21:06:08",
"account":"bastecklein"
},
{
"name":"New Munson",
"charter":"4stQvrHA",
"independent":"October 14, 2018",
"population":"12343",
"founded":"April 12, 2018",
"screenshot":"https:\/\/www.my-colony.com\/screenshots\/ss-882625.jpg",
"lastactive":"2019-09-09 20:12:27",
"account":"bastecklein"
},
{
"name":"Imperial Munson",
"charter":"8Ksj9SAy",
"independent":"0",
"population":"8507",
"founded":"September 2, 2018",
"screenshot":"https:\/\/www.my-colony.com\/screenshots\/ss-900950.jpg",
"lastactive":"2019-10-15 02:00:22",
"account":"bastecklein"},
... ]

From there, you can drill down even further using the Colony Info API on one of the charter codes.
Owner of Ape Apps, LLC
4y
#2
Danke !
Creator of Coloniae
Admin of the MC2 translation project
1y
#3
Hi @bastecklein , could you please make it so that it returns if yes or no this player exists. Even returning [] is fine as long as it returns "invalid user" if the user doesnt exists (current behaviour is to return [] even if user doesn't exist)
Creator of Coloniae
Admin of the MC2 translation project
1y
#4
I might have to make a new endpoint then if I change the default behavior
Owner of Ape Apps, LLC
1y
#5
I have made a new API @Sobeirannovaocc that now checks for existence of player on the server, as well as the last time they were online:

/viewpage.php?p=43073
Owner of Ape Apps, LLC
My Colony





Welcome
Ape Apps, LLC is an independent software development company founded in 2010 by Brandon Stecklein. Over the years, Ape Apps has published over 400 apps and games across various platforms. You can get in touch with Brandon on Twitter or by leaving a post on his wall @bastecklein
App of the Day