Mind the Gates · Schema

Crossing

TransportationRailReal-Time DataOpen DataUnited KingdomSafety

Properties

Name Type Description
api integer
slug string Word slug, as in the page URL
name string
type stringnull Crossing type in plain words
region stringnull Network Rail route or NI
source string nr: Great Britain, live feeds can confirm. nir: Northern Ireland, timetable forecast only
generated_at string
status object
timeline array Forecast state windows for the next half hour, in order
direction_labels object
direction_captions object
trains array
meta object
View JSON Schema on GitHub

JSON Schema

mindthegates-uk-crossing-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mindthegates-uk/json-schema/mindthegates-uk-crossing-schema.json",
  "title": "Crossing",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mindthegates-uk-openapi.json#/components/schemas/Crossing",
  "type": "object",
  "required": [
    "api",
    "slug",
    "name",
    "generated_at",
    "status",
    "timeline"
  ],
  "properties": {
    "api": {
      "type": "integer",
      "const": 1
    },
    "slug": {
      "type": "string",
      "description": "Word slug, as in the page URL"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Crossing type in plain words"
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "description": "Network Rail route or NI"
    },
    "source": {
      "type": "string",
      "enum": [
        "nr",
        "nir"
      ],
      "description": "nr: Great Britain, live feeds can confirm. nir: Northern Ireland, timetable forecast only"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "type": "object",
      "required": [
        "state",
        "confirmed",
        "until",
        "marginal"
      ],
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "open",
            "closed",
            "unknown"
          ]
        },
        "confirmed": {
          "type": "boolean",
          "description": "True only when signalling data proves the barriers down"
        },
        "confirmed_source": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "signalling",
            "monitor",
            null
          ]
        },
        "until": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Median estimate of when the state changes; show with ~"
        },
        "marginal": {
          "type": "boolean",
          "description": "Open, but the next closure may be starting"
        },
        "held_note": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "timeline": {
      "type": "array",
      "description": "Forecast state windows for the next half hour, in order",
      "items": {
        "type": "object",
        "required": [
          "state",
          "start",
          "end"
        ],
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ]
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "conditional": {
            "type": "boolean",
            "description": "Depends on a train that may not run"
          },
          "parked": {
            "type": "boolean",
            "description": "A train stands on the approach"
          },
          "marginal": {
            "type": "boolean"
          }
        }
      }
    },
    "direction_labels": {
      "type": "object",
      "properties": {
        "up": {
          "type": "string"
        },
        "down": {
          "type": "string"
        }
      }
    },
    "direction_captions": {
      "type": "object",
      "properties": {
        "up": {
          "type": "string"
        },
        "down": {
          "type": "string"
        }
      }
    },
    "trains": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "headcode": {
            "type": [
              "string",
              "null"
            ]
          },
          "direction": {
            "type": [
              "string",
              "null"
            ]
          },
          "origin": {
            "type": [
              "string",
              "null"
            ]
          },
          "destination": {
            "type": [
              "string",
              "null"
            ]
          },
          "cancelled": {
            "type": "boolean"
          },
          "live": {
            "type": "boolean",
            "description": "Seen in live running data"
          },
          "delay_sec": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "disclaimer": {
          "type": "string"
        },
        "disclaimer_full": {
          "type": "string"
        },
        "disclaimer_emphasis": {
          "type": "string"
        },
        "known_coverage_gap": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mindthegates-uk-crossing"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.