APIs

The League websites use a series of different APIs to create the maps and other data available. These APIs are extremely informal, and they are in many cases different systems. The best way to figure out what they do are to open the example URLs and examine the data directly.

The in game user "LeagueOfAutomatedNations" has a copy of several API end points in public segments, the segment ids are listed in the endpoint descriptions below.

Alliances
/alliances.js
Available in public segment 99
This contains a variety of metadata about alliances, including their members.
Rooms
/map/[shard]/rooms.js - Example (shard1)
This lists all rooms with owners along with their levels (reserved rooms are marked as level `0`).
Clones
/vk/bots/members.json
This is a list of all known "clone" accounts. These are users who are running open source bots on their accounts.
Clones+
/vk/bots/league.json
Available in public segment 98
As above with some additional information about the open source bots.
Battles
/vk/battles.json
This feed contains a list of active conflicts along with metadata. This includes the classification level of each battle, it's participants, and when it took place.
Portal rooms
https://screepspl.us/data/[shard].portals.min.js - Example (shard0)
Available in public segment 97
A list rooms with portals and their destinations.
Novice Rooms
https://screepspl.us/data/[shard].novice.js - Example (shard0)
Available in public segment 96
A list rooms that are either novice or respawn areas with their end times.
Novice Areas
https://screepspl.us/data/[shard].novice.area.js - Example (shard0)
A list novice and respawn areas with their end times, and the rooms they contain.
Room info
https://screepspl.us/data/[shard].roominfo.js - Example (shard0)
A LARGE endpoint with a lot of info for each room
Room maps
https://screepspl.us/data/[shard].roommaps.js - Example (shard0)
A LARGE endpoint with map info for each room
Portals
https://screepspl.us/data/[shard].portals.js - Example (shard0)
A list of each portal and information. The portals.min.json format above maybe more useful.
Users
https://screepspl.us/data/[shard].users.js - Example (shard0)
A list of each user and their badge.