Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.RailService

List upcoming episodes

POST
/xmb.api.v1.RailService/ListUpcoming

Returns episodes airing in the next few days, soonest first, marked with whether the server already has them.

Required scopes: xmb:user:read

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serverSlug?string
Length1 <= length <= 128
days?integer

How many days forward. Zero applies seven, which is the rail's window.

The shorthand, and the only thing a rail needs. A CALENDAR needs a window it can page — a month six months out, or the fortnight behind today that answers "did last week's episode ever turn up" — and that is what from and to are for. They win when both are set; days is then ignored rather than combined, because two windows intersected is a third window nobody asked for.

Formatint32
Range0 <= value <= 90
from?|

An explicit window, inclusive of from and exclusive of to. Both or neither: half a window is not a window, and guessing the other end would be the server inventing a horizon the caller did not ask for.

to?|
pageSize?integer
Formatint32
Range0 <= value <= 200
pageToken?string
Lengthlength <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.RailService/ListUpcoming" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "episodes": [
    "map[airDate:2026-10-26T01:00:00Z available:false episodeNumber:6 episodeTitle:Open House episodeUuid: monitored:true seasonNumber:2 title:map[category:LIBRARY_CATEGORY_TV librarySlug:tv posterUrl:https://api.xmb.xeonr.io/artwork/5f1c2a9e-3b7d-4e8a-9c21-6d4f8b0a7e13/poster.jpg shape:TITLE_SHAPE_SERIES title:Breaking Bad uuid:5f1c2a9e-3b7d-4e8a-9c21-6d4f8b0a7e13]]"
  ],
  "nextPageToken": "eyJvIjoxMjR9"
}