14.2.7
Read API
GET

/api/maps/{seed}

Reads the map for one seed. A seed not generated yet answers 202 and queues generation; a seed currently blocked by its server owner returns 403 with blockedUntil.

no auth20 / min · IP (uncached)since v1
Path · query
FieldInTypeRequiredDescription
seedpathintegerrequired1..2147483647.
Responses
StatusBodyWhen
200{"seed":1848055747,"rooms":["…"],"markers":[],"spawns":["…"],"doors":["…"],"teslas":["…"]}The map JSON. rooms is the room layout, spawns the candidate spawn points, doors and teslas the device positions. markers (actual placements) is empty in the public response. transitions and transitionCoverage appear only when present.
202{"status":"pending","job":"queued"}Not generated yet. Generation is queued; poll /api/jobs/{seed} or retry shortly. Generation usually takes seconds to a minute.
400{"error":"invalid seed"}Malformed seed.
403{"error":"blocked","blockedUntil":"2026-09-15T08:05:00Z"}Blocked by the server owner. Reload after blockedUntil. A permanent blocklist 403 carries no blockedUntil.
429{"error":"rate limited"}More than 20 uncached seeds per minute from this IP. Seeds already generated are not limited.
503{"status":"busy","error":"map unavailable"}The generation queue is full or generation failed. Retry shortly.
Response fields
FieldTypenullDescription
seedintegernoThe requested seed.
roomsarraynoRoom layout. Items are described in the rooms table below.
markersarraynoAlways an empty array in the public response.
spawnsarraynoDeterministic candidate spawn points. Items are described in the spawns table below.
doorsarraynoHeavy door positions. Empty for older dumps.
teslasarraynoTesla gate positions. Empty for older dumps.
transitionsobjectonly when setRoom transition data. Present only when available.
transitionCoverageobjectonly when setCoverage of the transition data. Present only when available.
rooms items
FieldTypenullDescription
namestringnoRoom name (the game's RoomName), e.g. HczArmory, LczClassDSpawn.
zonestringnoOne of LightContainment, HeavyContainment, Entrance, Surface, Other.
shapestringnoOne of Straight, Curve, TShape, XShape, Endroom, Undefined.
x, y, znumbernoWorld coordinates of the room centre. y is the floor: 100 for Light, -100 for Heavy and Entrance.
rotYnumbernoRotation around Y in degrees: 0, 90, 180 or 270.
variantstringyesGame prefab instance name. null for older dumps.
connarraynoCentres of the connected rooms as [{x, z}]. y and zone are added when the neighbour is on another floor.
spawns items
FieldTypenullDescription
kindstringnostructure or item.
catstringnoFor structure, the possible structure types joined by | (e.g. StandardLocker|SmallWallCabinet). For item, item:<ItemType> or item:group.
x, y, znumbernoWorld coordinates of the spawn point.
rx, rznumbernoCentre of the room this spawn belongs to. Match against x, z of rooms.
doors items
FieldTypenullDescription
namestringnoDoor name.
zonestringnoSame values as zone in rooms.
x, y, znumbernoWorld coordinates.
rotYnumbernoRotation around Y in degrees.
checkpointbooleannotrue for a checkpoint door between zones.
teslas items
FieldTypenullDescription
x, y, znumbernoWorld coordinates.
rx, rznumbernoCentre of the room it belongs to.
Example
curl https://slmaps.com/api/maps/1848055747 -H "User-Agent: MyServer/1.0"
Response example
{
  "seed": 1848055747,
  "rooms": [
    "…"
  ],
  "markers": [],
  "spawns": [
    "…"
  ],
  "doors": [
    "…"
  ],
  "teslas": [
    "…"
  ]
}

What the viewer does

On 202 the slmaps.com viewer polls /api/jobs/{seed}; on 403 it counts down from blockedUntil and reloads automatically when it passes. A window never exceeds 1 hour (20 minutes for an HTTP key) from the first report.

SLMAPS is the seed-map viewer for SCP: Secret Laboratory. These pages describe the public API of slmaps.com.slmaps.com ·