| 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 Alliance API provides information about a given alliance.
Access URL[]
The Alliance API can be accessed at the url:
baseurl/alliance/id={alliance id}&key={api key}
Returned JSON[]
accessurl=790
{
{
'leaderids': [53088],
'success': True,
'allianceid': '790',
'name': 'Rose',
'acronym': '🌹',
'score': '200753.27',
'color': 'pink',
'members': 56,
'member_id_list': [390, 1126, 3822, 5488, 5592, 53, 6206, 6769, 6912, 7646, 9669, 9841, 9846, 10483, 12102, 12837, 19950, 24122, 24900, 28677, 30809, 31831, 41593, 44334, 44443, 47243, 53088, 54095, 55132, 58349, 63120, 63163, 69426, 75173, 77044, 82005, 88166, 93884, 93883, 94036, 94185, 95367, 97065, 102532, 103398, 103847, 103893, 93998, 113879, 114264, 120198, 120821, 122042, 131199, 131693, 137331],
'vmodemembers': 1,
'accepting members': '0',
'applicants': 14,
'flagurl': 'http://i.imgur.com/Pt8GgzX.jpg',
'forumurl': 'https://discord.gg/UdWbGAd',
'irc': 'https://discord.gg/UdWbGAd',
'gdp': 154260722401.34,
'cities': 1061,
'soldiers': 13003697,
'tanks': 816521,
'aircraft': 92408,
'ships': 7672,
'missiles': 12,
'nukes': 60,
'treasures': 1
}
}