API Specificationxmb.api.v1.SearchService
Search the library
Searches titles, episodes, people and collections this server holds, with a promoted answer and per-tab counts.
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 <= 128query?string
Length
1 <= length <= 256scope?string
Which tab.
Value in
"SEARCH_SCOPE_UNSPECIFIED" | "SEARCH_SCOPE_FILMS" | "SEARCH_SCOPE_SERIES" | "SEARCH_SCOPE_EPISODES" | "SEARCH_SCOPE_PEOPLE" | "SEARCH_SCOPE_COLLECTIONS"librarySlug?string
Narrow to one library. Empty is the whole server, which is what the bar searches.
Length
length <= 128pageSize?integer
Format
int32Range
0 <= value <= 100pageToken?string
Only meaningful inside a scope. See the file banner.
Length
length <= 128[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.SearchService/SearchLibrary" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"top": "map[person:map[imageUrl:https://api.xmb.xeonr.io/artwork/people/7b2e9f4c-1a6d-4c8b-9e35-0f2a7d6c3b18.jpg knownFor:Directing name:Denis Villeneuve uuid:7b2e9f4c-1a6d-4c8b-9e35-0f2a7d6c3b18]]",
"titles": [
"map[addedAt:2026-10-02T20:05:00Z badges:[QUALITY_BADGE_UHD] category:LIBRARY_CATEGORY_MOVIE genres:[Science Fiction] inMyList:false librarySlug:films libraryUuid:c4b7a1e9-2f6d-4a83-b5c0-8d1e9f3a6b27 posterUrl:https://api.xmb.xeonr.io/artwork/9a3e7c41-2b6f-4d8e-a1c5-0e7b3f9d2c64/poster.jpg runtimeMinutes:155 shape:TITLE_SHAPE_FILM sortTitle:Dune title:Dune uuid:9a3e7c41-2b6f-4d8e-a1c5-0e7b3f9d2c64 year:2021]"
],
"episodes": [
"map[episode:map[airDate:2010-05-23T00:00:00Z available:true badges:[QUALITY_BADGE_FHD] episodeNumber:10 kind:EPISODE_KIND_EPISODE runtimeMinutes:47 seasonNumber:3 title:Fly uuid:8c3a1f7e-5d2b-4e96-a0c4-7b9e2d1f6a38] title:map[category:LIBRARY_CATEGORY_TV librarySlug:tv posterUrl:https://api.xmb.xeonr.io/artwork/5f1c2a9e-3b7d-4e8a-9c21-6d4f8b0a7e13/poster.jpg shape:TITLE_SHAPE_SERIES title:Breaking Bad uuid:5f1c2a9e-3b7d-4e8a-9c21-6d4f8b0a7e13]]"
],
"people": [
"map[kind:CREDIT_KIND_DIRECTOR person:map[imageUrl:https://api.xmb.xeonr.io/artwork/people/7b2e9f4c-1a6d-4c8b-9e35-0f2a7d6c3b18.jpg knownFor:Directing name:Denis Villeneuve uuid:7b2e9f4c-1a6d-4c8b-9e35-0f2a7d6c3b18] titleCount:6 titles:[map[category:LIBRARY_CATEGORY_MOVIE librarySlug:films posterUrl:https://api.xmb.xeonr.io/artwork/9a3e7c41-2b6f-4d8e-a1c5-0e7b3f9d2c64/poster.jpg shape:TITLE_SHAPE_FILM title:Dune uuid:9a3e7c41-2b6f-4d8e-a1c5-0e7b3f9d2c64]]]"
],
"collections": [
"map[librarySlug:films libraryUuid:c4b7a1e9-2f6d-4a83-b5c0-8d1e9f3a6b27 sortTitle:Dune Collection title:Dune Collection titleCount:2 uuid:f8a2c5d1-4e7b-4096-a3c8-5b1d9e2f7a40 watchedCount:1]"
],
"context": "map[kind:CREDIT_KIND_DIRECTOR person:map[imageUrl:https://api.xmb.xeonr.io/artwork/people/7b2e9f4c-1a6d-4c8b-9e35-0f2a7d6c3b18.jpg knownFor:Directing name:Denis Villeneuve uuid:7b2e9f4c-1a6d-4c8b-9e35-0f2a7d6c3b18] titles:[map[addedAt:2026-10-02T20:05:00Z badges:[QUALITY_BADGE_UHD] category:LIBRARY_CATEGORY_MOVIE genres:[Science Fiction] inMyList:false librarySlug:films libraryUuid:c4b7a1e9-2f6d-4a83-b5c0-8d1e9f3a6b27 posterUrl:https://api.xmb.xeonr.io/artwork/9a3e7c41-2b6f-4d8e-a1c5-0e7b3f9d2c64/poster.jpg runtimeMinutes:155 shape:TITLE_SHAPE_FILM sortTitle:Dune title:Dune uuid:9a3e7c41-2b6f-4d8e-a1c5-0e7b3f9d2c64 year:2021]] totalCount:6]",
"counts": "map[all:14 collections:1 episodes:4 films:6 people:2 series:1]",
"nextPageToken": "eyJvIjo0OH0"
}