API Specificationxmb.api.v1.DownloadService
List download options
Returns the qualities an episode may be downloaded at, with their estimated sizes, and whether this server allows downloads.
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
Length
1 <= length <= 128episodeUuid?string
Format
uuidmediaFileUuid?|
Which cut, when the viewer has chosen one. Absent takes the best.
Format
uuidcapabilities*
What the device decodes, so the encoded rungs are planned for it and the source is marked when it would not play. REQUIRED for playback's reason: there is no named-client fallback to guess from.
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.DownloadService/ListDownloadOptions" \ -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]]]]" }'{
"allowed": "true",
"refusal": "DOWNLOAD_REFUSAL_UNSPECIFIED",
"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]",
"options": [
"map[estimatedBytes:2147483648 exact:true rung:map[available:true bitrateBps:6219000 height:1080 id:source isSource:true selected:false width:1920]]",
"map[estimatedBytes:1080000000 exact:false rung:map[available:true bitrateBps:3128000 height:720 id:720p isSource:false selected:false width:1280]]"
],
"audioTracks": [
"map[channels:6 codec:eac3 id:a1 isDefault:true language:eng selected:true source:TRACK_SOURCE_EMBEDDED title:English 5.1]"
],
"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]"
]
}