---
title: "Get the occupancy of a set of level crossings for a set of trains"
method: POST
path: "/level_crossing_occupancy"
tags: ["level_crossing"]
---

# Get the occupancy of a set of level crossings for a set of trains

`POST /level_crossing_occupancy`

## Request body

- object
  - `electrical_profile_set_id` integer, nullable
  - `infra_id` integer, required
  - `level_crossing_ids` Identifier[], required
  - `timetable_id` integer, required
  - `train_ids` integer[], required

## Response `200`

Occupancy periods of the given level crossings

- object

## Changes

> 77 revisions in range; 2 not diffed.

- **2026-06-02** `493896ca3a79` — 1 breaking
  - the `additionalProperties/items/allOf[subschema #2]/time_begin` response's property type/format changed from `string`/`date-time` to `integer`/`int64` for status `200`
- **2026-06-02** `30b1a910e482` — 1 breaking
  - the `additionalProperties/items/allOf[subschema #2]/time_begin` response's property type/format changed from `integer`/`int64` to `string`/`date-time` for status `200`
- **2026-06-01** `19436075117f` — 1 breaking
  - the `additionalProperties/items/allOf[subschema #2]/time_begin` response's property type/format changed from `string`/`date-time` to `integer`/`int64` for status `200`
- **2026-05-12** `8e6b47d9f599` — 1 breaking
  - the `additionalProperties/items/allOf[subschema #2]/time_begin` response's property type/format changed from `integer`/`int64` to `string`/`date-time` for status `200`
- **2026-05-11** `abd98d1fe2e2` — 1 breaking
  - the `additionalProperties/items/allOf[subschema #2]/time_begin` response's property type/format changed from `string`/`date-time` to `integer`/`int64` for status `200`

[Full history](https://skmtc.dev/openrailassociation/apis/osrd-editoast/changes/level_crossing_occupancy/post.md)

---

[API](https://skmtc.dev/openrailassociation/apis/osrd-editoast.md) · [All operations](https://skmtc.dev/openrailassociation/apis/osrd-editoast/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openrailassociation/osrd-editoast/revisions/e1fc96bc11fd/schema)
