Here's the api.
[ https://eliatopiaapi.al3x3y.repl.co/getPlayer/ ]
put the player's name after the last /
it will return the data like this:
Code: Select all
{
"Kami": {
"EquipedItems": {
"Armor": "romance armor_h1",
"Boots": "jungle shoes_h2",
"Helmet": "romance helmet",
"Pants": "romance legs",
"Weapon": "jungle bow"
},
"Main": {
"Area": "32",
"Guild": "Kamikaze Penguins",
"Level": "46",
"TotalHP": "50",
"TotalMP": "50",
"XP": "36667"
},
"Stats": {
"Archery": "50",
"Artillery": "0",
"Defense": "40",
"Expertise": "38",
"HP": "50",
"MP": "39",
"Magic": "0",
"Points": "0",
"Strenght": "0"
}
}
}

and you can get it from there like this (python):
Code: Select all
import requests
player = "Kami"
def getPlayer(player):
try:
playerData = requests.get("https://eliatopiaapi.al3x3y.repl.co/getPlayer/{}".format(player)).json()
print(playerData) #make sure that there is something. if you get an error it means that the player is not registered.
player_Data = playerData[player]
playerArea = player_Data["Main"]["Area"]
playerGuild = player_Data["Main"]["Guild"]
playerLevel = player_Data["Main"]["Level"]
print(f"\nName: {player}\nLevel: {playerLevel}\nGuild: {playerGuild}\nArea: {playerArea}")
except Exception as err:
print("this player is not registered.")
getPlayer(player)

i will add this in eliatopia.py (library made for eliatopia on that im currently working)
for any questions/issues pm me on discord: Kami#0402 or here.