Start a download
Records a download grant and returns where to fetch the copy from, with a token that lasts hours.
Required scopes: xmb:user:write
Authorization
BearerAuth An access token issued by the xeonr identity provider.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 128uuiduuidA rung id from ListDownloadOptions. "source" is the original.
1 <= length <= 64What the caller measured about itself.
MEASURED, not declared. On the web this comes from MediaSource.isTypeSupported, HTMLMediaElement.canPlayType and navigator.mediaCapabilities.decodingInfo run over a fixed matrix once per document; on a native client it is what the platform decoder reports. A client that sends what it wishes were true gets a stream it cannot decode, which is the correct incentive.
UNKNOWN IS PERMISSIVE, everywhere below. Any field left at zero or empty skips its gate rather than failing it. An over-eager gate fails silently and totally — the server refuses a file that would have played — while an under-eager one fails visibly, in the player, where there is something to say about it.
The structured fields cover what the server routes decisions on. Everything
else the platform said travels verbatim in codec_strings, the same division
ProbeService draws with raw_ffprobe_json and for the same reason: this schema
is not an attempt to model every decoder, and a field is promoted up here
once it has earned a place.
items <= 8items <= 8The audio track an encoded copy carries. An encode carries ONE track, so this decides it; the original carries them all and ignores this.
length <= 64Who is taking it. REQUIRED, and install_id within it must be set: the grant is bound to the install, which is what lets the same person hold the same episode on a phone and a tablet as two rows an owner can tell apart.
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.DownloadService/StartDownload" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "capabilities": "map[audio:[map[codec:eac3 maxChannels:6]] canSelectAudioTrack:true containers:[mp4 mov] hdrFormats:[dolby_vision hdr10] maxHeight:1179 maxWidth:2556 subtitleFormats:[webvtt] supportsHls:true video:[map[codec:hevc maxBitDepth:10 maxLevel:5.1 profiles:[main main10]]]]", "client": "map[appVersion:1.14.0 engine:avplayer installId:6F1D2C3B-8A4E-4F5D-9C7B-2E1A0D3F4B5C kind:CLIENT_KIND_IOS_PHONE model:iPhone17,1 osName:iOS osVersion:26.1]" }'{
"download": "map[client:map[appVersion:1.14.0 engine:avplayer installId:6F1D2C3B-8A4E-4F5D-9C7B-2E1A0D3F4B5C kind:CLIENT_KIND_IOS_PHONE label:Luke's iPhone model:iPhone17,1 osName:iOS osVersion:26.1] createdAt:2026-10-22T09:30:00Z durationMs:2762000 episodeNumber:9 episodeTitle:The Lemon Test episodeUuid:0d6c1e7a-3f2b-4c8d-9e1a-5b7f2c4d6e80 id:f2e1d0c9-b8a7-4f65-9e43-21d0c9b8a765 mediaFileUuid:7a3e9c21-4b6d-4f8e-a1c2-9d0e8f7b6a54 qualityId:source seasonNumber:21 serverSlug:luke-s-basement state:DOWNLOAD_STATE_ACTIVE title:Taskmaster validUntil:2026-11-21T09:30:00Z]",
"issue": "map[audioTracks:[map[channels:6 codec:eac3 id:a1 isDefault:true language:eng selected:true source:TRACK_SOURCE_EMBEDDED title:English 5.1]] chapters:[map[endMs:95000 imageUrl:https://3b9e6f0a-1c2d-4e5f-8a7b-6c5d4e3f2a10.stream.xmb.gg/media/7a3e9c21-4b6d-4f8e-a1c2-9d0e8f7b6a54/chapter/0.jpg?t=eyJhbGciOiJFZERTQSIsImtpZCI6Im1rLTIwMjYxMCJ9.eyJzdWIiOiIzIiwiYXVkIjpbIjNiOWU2ZjBhIl19.c2lnbmF0dXJlLXBsYWNlaG9sZGVy startMs:0 title:Opening]] delivery:map[contentLength:2147483648 expiresAt:2026-10-22T21:30:00Z hubName:Living room hubUuid:3b9e6f0a-1c2d-4e5f-8a7b-6c5d4e3f2a10 kind:DOWNLOAD_KIND_ORIGINAL localUrls:[https://192-168-1-20.k3f9x2ab.xmbsrv.com:8443/media/7a3e9c21-4b6d-4f8e-a1c2-9d0e8f7b6a54/file/media.mkv?t=eyJhbGciOiJFZERTQSIsImtpZCI6Im1rLTIwMjYxMCJ9.eyJzdWIiOiIzIiwiYXVkIjpbIjNiOWU2ZjBhIl19.c2lnbmF0dXJlLXBsYWNlaG9sZGVy] mediaToken:eyJhbGciOiJFZERTQSIsImtpZCI6Im1rLTIwMjYxMCJ9.eyJzdWIiOiIzIiwiYXVkIjpbIjNiOWU2ZjBhIl19.c2lnbmF0dXJlLXBsYWNlaG9sZGVy mimeType:video/x-matroska renewAfter:2026-10-22T21:29:00Z url:https://3b9e6f0a-1c2d-4e5f-8a7b-6c5d4e3f2a10.stream.xmb.gg/media/7a3e9c21-4b6d-4f8e-a1c2-9d0e8f7b6a54/file/media.mkv?t=eyJhbGciOiJFZERTQSIsImtpZCI6Im1rLTIwMjYxMCJ9.eyJzdWIiOiIzIiwiYXVkIjpbIjNiOWU2ZjBhIl19.c2lnbmF0dXJlLXBsYWNlaG9sZGVy] markers:[map[confidence:1 endMs:95000 kind:PLAYBACK_MARKER_KIND_INTRO source:PLAYBACK_MARKER_SOURCE_CHAPTER startMs:12000]] media:map[audioCodec:eac3 badges:[QUALITY_BADGE_FHD QUALITY_BADGE_SURROUND_5_1] container:mkv durationMs:2762000 episodeUuid:0d6c1e7a-3f2b-4c8d-9e1a-5b7f2c4d6e80 height:1080 mediaFileUuid:7a3e9c21-4b6d-4f8e-a1c2-9d0e8f7b6a54 sizeBytes:2147483648 videoCodec:hevc width:1920] subtitleTracks:[map[codec:subrip delivery:SUBTITLE_DELIVERY_EXTERNAL deliveryFormat:webvtt id:s2 isDefault:false isForced:false isSdh:true language:eng source:TRACK_SOURCE_EMBEDDED textBased:true title:English SDH url:https://3b9e6f0a-1c2d-4e5f-8a7b-6c5d4e3f2a10.stream.xmb.gg/media/7a3e9c21-4b6d-4f8e-a1c2-9d0e8f7b6a54/subs/s2.vtt?t=eyJhbGciOiJFZERTQSIsImtpZCI6Im1rLTIwMjYxMCJ9.eyJzdWIiOiIzIiwiYXVkIjpbIjNiOWU2ZjBhIl19.c2lnbmF0dXJlLXBsYWNlaG9sZGVy]] trickplay:map[frameCount:277 intervalMs:10000 sheetCount:3 sheetUrlTemplate:https://3b9e6f0a-1c2d-4e5f-8a7b-6c5d4e3f2a10.stream.xmb.gg/media/7a3e9c21-4b6d-4f8e-a1c2-9d0e8f7b6a54/trickplay/{n}.webp?t=eyJhbGciOiJFZERTQSIsImtpZCI6Im1rLTIwMjYxMCJ9.eyJzdWIiOiIzIiwiYXVkIjpbIjNiOWU2ZjBhIl19.c2lnbmF0dXJlLXBsYWNlaG9sZGVy tileColumns:10 tileHeight:180 tileRows:10 tileWidth:320]]",
"progress": "map[durationMs:2762000 lastPlayedAt:2026-10-21T20:45:00Z positionMs:1260000 resumeEpisodeNumber:9 resumeEpisodeUuid:0d6c1e7a-3f2b-4c8d-9e1a-5b7f2c4d6e80 resumeSeasonNumber:21 status:WATCH_STATUS_IN_PROGRESS totalEpisodes:10 watchedEpisodes:8]"
}