API: Difference between revisions

From PirateCraft
No edit summary
No edit summary
Line 2: Line 2:
PirateCraft application programming interface allowing access to data of the PirateCraft ecosystem.
PirateCraft application programming interface allowing access to data of the PirateCraft ecosystem.
This API has been created from scratch by [[GodsDead]] for the website https://piratemc.com
This API has been created from scratch by [[GodsDead]] for the website https://piratemc.com
'''API is No currently public - I am creating this page as a placeholder'''
 
'''API is NOT currently public, this page has been created as a placeholder'''


==Players API==
==Players API==

Revision as of 12:17, 14 November 2019

PirateCraft application programming interface allowing access to data of the PirateCraft ecosystem. This API has been created from scratch by GodsDead for the website https://piratemc.com

API is NOT currently public, this page has been created as a placeholder

Players API

You can query players data by username or UUID using:


curl https://api.piratemc.com/pirate/<username>

Crews API

This pulls overall data for all crews


curl https://api.piratemc.com/crews/<username>

Crew API

This pulls a specific crews data


curl https://api.piratemc.com/crew/<username>