DISCLAIMER: Potterworld or Droobledore LLC is not in any way affiliated with Mojang AB, J.K. Rowling, Warner Brothers or any company, copyright or trademark.
PotterworldMC PotterworldMC PotterworldMC

Potterworld API

Joshios

Animorphus
Minecraft IGN: Joshios
Auralock Dark Follower Griffin Phoenix Vampire Werewolf SPEW
#2
Hey @Scoobydoolego,

That is the correct link for the API! For specific routes you may be able to use, check out this. As for how to use it, I would recommend looking this up! All APIs are similar, and they can be quite complex at first, but I’m sure you can get the hang of it. If you have any other questions, I can most likely help out!

Have a magical day!
 

Scoobydoolego

Graduate
Minecraft IGN: Scoobydoolego
Honeybadger
#3
I keep getting an error message similar to this whenever I put in one of the api.potterworldmc.com/player/whatever links. Do you have any idea what I can do? I've tried replacing the player with a username or adding a username at the end, but it doesn't work.


{
"statusCode": 400,
"error": "Bad Request",
"message": "child \"username\" fails because [\"username\" is required]",
"validation":
{"source": "query",
"keys": [
"username"]
}
}
 
#6
Alright. sorry to bring this up again, yet some parts of the API really mind-boggle me since I can't find documentation about it.

https://api.potterworldmc.com/games/logs/{instance}
^what king of logs? what are the possible ways to go at this part of the API?

https://api.potterworldmc.com/player/staff
Doesn't seem to do anything? I get redirected to a not found error page

https://api.potterworldmc.com/player/friends
{"statusCode":400,"error":"Bad Request","message":"child \"username\" fails because [\"username\" is required]","validation":{"source":"query","keys":["username"]}}
eventhough there is no way to add a player to the url, or at least no clue how to.

https://api.potterworldmc.com/player/balances
same problem as the one above

https://api.potterworldmc.com/buycraft/balance
same as the two above

https://api.potterworldmc.com/calendar
Seems to only show dates back in 2020. There is some sort of "NextPageToken", but I've got no clue how that system works.

Is there any form of documentation on the API? Or is it just trial and error and hope and pray haha
 

aaron ♡

Animorphus
Minecraft IGN: Aarooncia
Auralock Dark Follower Griffin Vampire Werewolf
#7
Alright. sorry to bring this up again, yet some parts of the API really mind-boggle me since I can't find documentation about it.

https://api.potterworldmc.com/games/logs/{instance}
^what king of logs? what are the possible ways to go at this part of the API?

https://api.potterworldmc.com/player/staff
Doesn't seem to do anything? I get redirected to a not found error page

https://api.potterworldmc.com/player/friends
{"statusCode":400,"error":"Bad Request","message":"child \"username\" fails because [\"username\" is required]","validation":{"source":"query","keys":["username"]}}
eventhough there is no way to add a player to the url, or at least no clue how to.

https://api.potterworldmc.com/player/balances
same problem as the one above

https://api.potterworldmc.com/calendar
Seems to only show dates back in 2020. There is some sort of "NextPageToken", but I've got no clue how that system works.

Is there any form of documentation on the API? Or is it just trial and error and hope and pray haha
Theres not an official guide, however a lot of the parts you mentioned require a code or SSH key, and is usually only available to higher-up staff members.
 
#8
Theres not an official guide, however a lot of the parts you mentioned require a code or SSH key, and is usually only available to higher-up staff members.
Aha, alright. that does explain the problems i was getting.

Then the most important one i had: how does the calender API work? since i want to make a function to check for the next available planned class, yet i cant switch to the next page so its a bit hard

greetings by the way aaron, long time no see :D