API Reference
With the listrr.pro API you can read your lists and their movies and shows from your own tools, scripts or media servers. All endpoints are GET requests and answer with JSON.
Open the Swagger UI Join the Discord
Quick start
- Copy your API key from your account page.
-
Get the ids of your lists:
curl -H "X-API-KEY: <your-api-key>" https://listrr.pro/api/Import/MovieLists -
Request the movies of a list:
curl -H "X-API-KEY: <your-api-key>" https://listrr.pro/api/List/Movies/<list-id>
Authentication
Every request needs the API key of your account. There are three ways to send it, all endpoints accept all three.
curl -H "X-API-KEY: <your-api-key>" https://listrr.pro/api/List/My
curl -H "Authorization: APIKEY <your-api-key>" https://listrr.pro/api/List/My
curl "https://listrr.pro/api/List/My?apikey=<your-api-key>"
Warning
A key in the URL ends up in clear text in proxy logs, browser histories and monitoring tools. Only use it if your tool can do nothing but a URL.
A request without a key, or with an unknown key, gets 401 Unauthorized.
Endpoints
| Endpoint | Returns |
|---|---|
GET /api/List/{id} |
One list |
GET /api/List/My/{page?} |
Your lists, paged |
GET /api/List/Movies/{id}/... |
The movies of a list, paged |
GET /api/List/Shows/{id}/... |
The shows of a list, paged |
GET /api/Import/Radarr/{id} |
The TMDB ids of a movie list, for Radarr |
GET /api/Import/Sonarr/{id} |
The TVDB ids of a show list, for Sonarr |
GET /api/Import/MovieLists |
Your movie lists, unpaged |
GET /api/Import/ShowLists |
Your show lists, unpaged |
Parts marked with ? are optional. Paged endpoints return up to 128 entries per page, pages start at 1.
Lists
Get a list
GET /api/List/{id}
| Parameter | Description |
|---|---|
id |
The id of the list |
Response
{
"name": "Movie list",
"description": "Movies from 1977",
"items": 2,
"state": "None",
"type": "Movie",
"lastProcessed": "2023-11-14T23:15:00Z",
"excludedItems": [603],
"includeExternalLists": ["650000000000000000000011"],
"excludeExternalLists": ["650000000000000000000012"],
"isStatic": false,
"isBasicFilter": true,
"isExtensiveFilter": false,
"isPrivate": true,
"upvotes": 3,
"createdOn": "2023-11-14T22:15:00Z",
"modifiedOn": "2023-11-14T22:45:00Z",
"id": "650000000000000000000001"
}
| Field | Description |
|---|---|
items |
Number of entries at the last update |
state |
None, Scheduled, Updating, Error or SchduledForDeletion (yes, with that spelling) |
type |
Movie or Show |
excludedItems |
TMDB ids you removed from the list by hand |
includeExternalLists, excludeExternalLists |
Ids of the external lists that are included or excluded |
isStatic, isBasicFilter, isExtensiveFilter |
How the list is built |
isPrivate |
Only the owner can read the list |
| Status | When |
|---|---|
200 |
The list |
404 |
The list does not exist, or it is private and not yours |
Get your lists
GET /api/List/My/{page?}
| Parameter | Description |
|---|---|
page |
Page number, default 1 |
Returns the lists of your account in the paged format, each entry is a list like in Get a list.
Get the movies of a list
GET /api/List/Movies/{id}/{sortBy?}/{sortByDirection?}/{page?}
| Parameter | Description |
|---|---|
id |
The id of a movie list |
sortBy |
Name (default) or ReleaseDate |
sortByDirection |
Ascending (default) or Descending |
page |
Page number, default 1 |
Response
{
"items": [
{
"id": "650000000000000000000021",
"name": "Star Wars",
"releaseDate": "1977-05-25T00:00:00Z",
"imDbId": "tt0076759",
"tmDbId": 11
}
],
"count": 1,
"pages": 1
}
| Status | When |
|---|---|
200 |
A page of movies |
400 |
The list is a show list |
404 |
The list does not exist, is private and not yours, or its owner has more lists than their level allows |
The item limit of the list owner applies.
Get the shows of a list
GET /api/List/Shows/{id}/{sortBy?}/{sortByDirection?}/{page?}
Works like the movies of a list, for show lists. sortBy ReleaseDate sorts by the first air date. A movie list gets 400.
Response
{
"items": [
{
"id": "650000000000000000000031",
"name": "Game of Thrones",
"firstAirDate": "2011-04-17T00:00:00Z",
"imDbId": "tt0944947",
"tmDbId": 1399,
"tvDbId": 121361
}
],
"count": 1,
"pages": 1
}
tvDbId is 0 if the show has no TVDB id.
Import
These endpoints are made for Radarr and Sonarr. They are not paged and return the whole list at once.
Radarr import
GET /api/Import/Radarr/{id}
Response
[
{ "id": 11 }
]
id is the TMDB id. Movies without a TMDB id are left out. An empty list returns [].
| Status | When |
|---|---|
200 |
The TMDB ids of the movies |
400 |
No id, an unknown list, or a show list |
404 |
The list is private and not yours, or its owner has more lists than their level allows |
Sonarr import
GET /api/Import/Sonarr/{id}
Response
[
{ "tvdbId": "121361" }
]
Works like the Radarr import, for show lists. Shows without a TVDB id are left out.
Note
Filter lists send tvdbId as a string ("121361"), static lists as a number (121361). Make sure your client accepts both.
Your movie and show lists
GET /api/Import/MovieLists
GET /api/Import/ShowLists
Response
[
{
"id": "650000000000000000000001",
"name": "Movie list",
"description": "Movies from 1977"
}
]
All movie or show lists of your account, unpaged. Handy to find the ids for the import endpoints.
Good to know
Paging
Paged endpoints wrap their entries:
| Field | Description |
|---|---|
items |
The entries of this page |
count |
Number of entries on all pages |
pages |
Number of pages |
Item limit
Depending on the level of the list owner, a list returns a limited number of entries. This applies to /api/List/Movies, /api/List/Shows, /api/Import/Radarr and /api/Import/Sonarr, for static and filter lists.
- A static list keeps its first entries in the order of the list, a filter list the entries with the lowest TMDB ids.
sortByonly sorts the entries inside the limit, it never changes which entries are returned.countandpagescount the limited list.- Your own level does not matter when you read a list of someone else.
Dates
Dates are UTC, e.g. 2023-11-14T22:15:00Z. A date that was never set is sent as 0001-01-01T00:00:00 or 0001-01-01T00:00:00Z. Treat both as no date.
Missing values
No field is ever left out. A missing value is null for texts and lists, and 0 for numbers.