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

Search the catalogue

POST
/xmb.api.v1.RequestService/SearchCatalogue

Searches the metadata providers for anything requestable, with what this server already holds of each result.

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

Free text. Empty is allowed and means "whatever the discover feed says", which is what the board's tabs show before anybody types.

Lengthlength <= 512
category?string

Narrow to one kind. UNSPECIFIED asks about everything the server has a library for.

Value in"LIBRARY_CATEGORY_UNSPECIFIED" | "LIBRARY_CATEGORY_MOVIE" | "LIBRARY_CATEGORY_TV" | "LIBRARY_CATEGORY_ANIME" | "LIBRARY_CATEGORY_OTHER" | "LIBRARY_CATEGORY_ANIME_FILM"
mode?string

Which feed to draw when there is no query. Ignored when one is given — somebody who has typed a name is looking for that name.

Value in"DISCOVER_MODE_UNSPECIFIED" | "DISCOVER_MODE_POPULAR" | "DISCOVER_MODE_UPCOMING" | "DISCOVER_MODE_MOST_REQUESTED"
pageSize?integer
Formatint32
Range0 <= value <= 100
genre?string

A key from SearchCatalogueResponse.genres. Empty includes all genres. Only applies to Popular and Upcoming discovery, not a non-empty query.

Lengthlength <= 64
sort?string

Ordering for provider discovery. Ignored for title searches and Most requested.

Value in"CATALOGUE_SORT_UNSPECIFIED" | "CATALOGUE_SORT_POPULARITY" | "CATALOGUE_SORT_RATING" | "CATALOGUE_SORT_RELEASE_DATE" | "CATALOGUE_SORT_TITLE"
pageToken?string

Continue a Popular or Upcoming discovery feed. Use the returned token with the same category, mode, genre and sort. Empty starts a new feed.

Lengthlength <= 4096
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.RequestService/SearchCatalogue" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "entries": [
    "map[candidate:map[posterUrl:https://content.xmb.gg/v1/tmdb/t/p/w500/bones-poster.jpg provider:tvdb providerId:75682 score:0.97 title:Bones year:2005] category:LIBRARY_CATEGORY_TV holding:map[catalogueEpisodes:246 heldEpisodes:22 heldSeasons:[1] seriesUuid:3c5e7a9b-1d3f-4a5c-8e7a-9b1d3f5c7e9a state:CATALOGUE_HOLDING_STATE_PARTIAL] request:map[category:LIBRARY_CATEGORY_TV decidedAt:2026-10-19T10:15:00Z episodeCount:4 firstAskedAt:2026-10-18T19:04:12Z fulfilledCount:1 myScope:map[seasons:[map[episodeNumbers:[1 2 3 4] seasonNumber:2]]] myStatus:REQUEST_STATUS_APPROVED posterUrl:https://content.xmb.gg/v1/tmdb/t/p/w500/bones-poster.jpg record:map[provider:tvdb providerId:75682] requesters:[map[askedAt:2026-10-18T19:04:12Z avatarUrl:https://auth.xeonr.io/avatars/3.png displayName:luke initials:LU userId:3] map[askedAt:2026-10-19T08:30:00Z displayName:amara initials:AM userId:7]] scope:map[seasons:[map[episodeNumbers:[1 2 3 4] seasonNumber:2]]] search:map[attempts:4 lastAttemptAt:2026-10-22T06:00:00Z lastReason:12 releases seen, none acceptable — 9 wrong season, 3 below the quality profile nextSearchAt:2026-10-22T18:00:00Z stuck:false] seriesUuid:3c5e7a9b-1d3f-4a5c-8e7a-9b1d3f5c7e9a status:REQUEST_STATUS_APPROVED title:Bones totalRequesters:2 uuid:f1a3c5e7-9b1d-4f3a-8c5e-7a9b1d3f5c7e year:2005]]"
  ],
  "allowance": "map[limit:5 remaining:3]",
  "sources": [
    "tvdb",
    "tmdb"
  ],
  "genres": [
    "map[id:crime name:Crime]",
    "map[id:drama name:Drama]"
  ],
  "nextPageToken": "eyJwYWdlIjozfQ"
}