Closed kimdv closed 2 years ago
We don't currently support this type of list, so it probably makes the most sense for us to hide it for now. An officiallist
is actually a collection from TMDB. For example, the fast and furious collection would be translated to a Trakt official list. But we don't expose that on the website or API yet.
I'll have an update for this next week. The search method will correctly return official lists (the object is the same as a standard list). Each list object will have a new type
field which can be set to personal
, official
, watchlist
, or recommendations
.
To get list info for an official list, use the /lists/:id
methods instead of the /users/:slug/lists/:id
methods.
{
"name": "Top Gun Collection",
"description": "Film series based on the character Lieutenant Pete \"Maverick\" Mitchell, a US Naval Aviator.",
"privacy": "public",
"type": "official",
"display_numbers": true,
"allow_comments": true,
"sort_by": "rank",
"sort_how": "asc",
"created_at": "2022-06-03T22:57:07.000Z",
"updated_at": "2022-06-03T23:29:40.000Z",
"item_count": 2,
"comment_count": 0,
"likes": 0,
"ids": { "trakt": 74, "slug": "top-gun-collection" },
"user": {
"username": "Trakt",
"private": false,
"name": null,
"vip": false,
"vip_ep": false,
"ids": { "slug": null, "trakt": 0 }
}
}
It seems that for "official" lists the user
is always not present. Is this expected? Is it documented somewhere?
Good catch, I'll have a fix out for this tomorrow.
Awesome! Please apply it for all custom list types so that we avoid special cases in our apps. :)
Official lists are the only special lists not tied to an actual user account. Everything else like watchlist, recommendations, and personal lists are all tied to a user.
To get list info for an official list, will /users/:slug/lists/:id
methods work when the user is added back to those responses?
No, the general /lists/:id
should be used for official lists. They aren't really tied to user.
This search result contains a type called
officiallist
. It is not documented and it have also not data?https://api.trakt.tv/search/list?query=Anna