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

Search subtitles

POST
/xmb.api.v1.LibraryService/SearchSubtitles

Asks the shared retrieval service what subtitles exist for a file, ranked under its library's policy, with what the nightly pass last decided.

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
mediaFileUuid?string
Formatuuid
languages?array<>

Languages to ask for, best first. Empty means the library's policy.

Itemsitems <= 16
anyKind?boolean

Show every kind of track regardless of the library's flags — a person browsing may want the hearing-impaired one the policy hides.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.LibraryService/SearchSubtitles" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "candidates": [
    "map[cached:false downloads:48211 fileId:7351284 forced:false fromTrusted:true hashMatch:true hearingImpaired:false language:en machineTranslated:false provider:opensubtitles providerName:OpenSubtitles rating:8.5 release:Severance.S01E01.1080p.ATVP.WEB-DL.DDP5.1.H.264-NTb score:0.94 uploadedAt:2022-02-18T07:41:09Z]"
  ],
  "skipped": [
    "map[provider:podnapisi reason:not_configured]"
  ],
  "suggested": "map[cached:false downloads:48211 fileId:7351284 forced:false fromTrusted:true hashMatch:true hearingImpaired:false language:en machineTranslated:false provider:opensubtitles providerName:OpenSubtitles rating:8.5 release:Severance.S01E01.1080p.ATVP.WEB-DL.DDP5.1.H.264-NTb score:0.94 uploadedAt:2022-02-18T07:41:09Z]",
  "appliedProvider": "opensubtitles",
  "appliedFileId": "7351284",
  "appliedBy": "user:3"
}