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

Search metadata

POST
/xmb.api.v1.LibraryService/SearchMetadata

Searches the configured metadata providers, for choosing what an unidentified item is.

Required scopes: xmb:admin

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
query?string

What to search for. Free text, because the whole point is that whatever was parsed out of the path was not right.

Length1 <= length
category?string

Which services to ask. Empty asks the ones the library's category uses.

libraryUuid?|

Search as this library: its provider policy decides who is asked, so the identify sheet never offers a candidate from a service the library turned off. Absent keeps the category's full set — the behaviour every caller had before the field existed.

Formatuuid
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.LibraryService/SearchMetadata" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "candidates": [
    "map[posterUrl:https://artworks.thetvdb.com/banners/v4/series/371980/posters/example.jpg provider:tvdb providerId:371980 score:0.97 title:Severance year:2022]"
  ]
}