| This page documents the API.
This page is about the API for the game. It contains information such as contents, structure, & other miscellany. See Category:API for other pages on the API. |
This endpoint is deprecated and planned to potentially be removed by December 2023. It is recommended to switch to v3 of the API.
==
Overview ==
The Alliances API provides a listing of every alliances that currently exists along with some basic information.
Access URL[]
The Alliances API can be accessed at the URL:
baseurl/alliances/?key={key}
Returned JSON[]
{
{
"alliances": [
//A bunch of alliances
{
"id": "1039",
"founddate": "2015-01-31 21:51:20",
"name": "Mensa HQ",
"acronym": "",
"color": "green",
"rank": 12,
"members": 55,
"score": 66263.22,
"leaderids": ["12663"],
"officerids": ["12695", "12826", "12838", "12822", "15421"],
"heirids": ["12956"],
"avgscore": 1204.7858,
"flagurl": "https:\/\/i.imgur.com\/1nM39ka.jpg",
"forumurl": "http:\/\/eusaforums.com\/forum\/index.php\/board,272.0.html",
"ircchan": "MensaHQ"
},
//Even more alliances
]}
- The Alliances API is structured as an array 'Alliances' with each array element being an object representing a single alliance.
- Alliances are listed by rank from highest to lowest.
- For some reason know only to Sheepy, a number of properties on here are lacking from the individual API.
- For alliances that do not have a particular property (e.g. alliance with no heirs or officers), those properties will not be present in the API request.