What is an API?
API stands for Application Programming Interface. In simple terms, you can distract (GET) and sometimes enter (POST) data into a data source like a base. APIs are commonly used for interactions between 2 applications. 1 of those 2 applications often being a 3rd party application.
These 2 applications communicate through an HTTP call. Instead of applications using these HTML calls, any person can use these HTTP URLs to draw data from the Splinterlands API.
For example, if you want to know the balances of player kiokizz, you could use an URL to see that information: https://api.splinterlands.io/players/balances?username=kiokizz
The result would be a big string of information like the above example.
JSON Formatter
With a JSON formatter, you can make it look more readable. There are websites for JSON formatting, but it's also beneficial to use a browser extension (there are several good ones). Firefox even has one built-in.
Resources
The GitHub page of Kiokizz shows a good overview of the first Splinterlands API: https://github.com/kiokizz/Splinterlands-API
We have published swagger docs for our APIs which can be found at these 2 links: Swagger UI (splinterlands.com) & Vnext APIs.
Comments
0 comments
Article is closed for comments.