Problem with getting the items in following list, only 10 are returned

I have my own script that i use to check daily if a show im following in the List is Ended or Cancelled. This was working perfectly for months. Since yesterday it returns only 10 items out of 126. The API Key is used in other scripts as well with no problem.

the code is below, and the totalcount is 10 instead of 126

$url = “https://api.trakt.tv/users/great_vc/lists/following/items/shows”
$clientId    = “client id”
$accessToken = “access token”

$headers = @{
“Authorization”     = “Bearer $accessToken”
“trakt-api-version” = “2”
“trakt-api-key”     = $clientId
“Content-Type”      = “application/json”
“User-Agent” = “Mozilla/5.0 (Windows NT 10.0; Win64; x64) PowerShellScript/1.0”
}

Clear-Host
write-host `n`n`n`n` 
Write-Host "Fetching all shows from your Trakt.tv list..." -ForegroundColor White
write-host t
$allShows = Invoke-RestMethod -Uri $url -Headers $headers -Method Get
$total = $allShows.Count


Can anyone help ??

I think it’s the same issue reported here. My same comment:

Having the same problem with my watchlist (600+ items reduced to 10), which is then synced with my Plex Watchlist (via Plex Sync), which ruins my Plex viewing experience. I discovered that if I visit my watchlist on Trakt Web, all movies are there. But on the iOS App (and the API), it’s reduced to 10. This makes me hopeful that the list is still intact, but it’s a bug with their mobile/API layer. It’s been like this for several days now. Hope they know and are working to fix it.

1 Like

Looks like the default page size has been changed as per: 📣 Upcoming API Changes: Pagination & Sorting Updates · trakt/trakt-api · Discussion #681 · GitHub.

1 Like

mid-March, end March, same thing right?

At least it’s intentional. As with so many other changes lately, though, it was rolled out on entirely too short a timeline. Third party code didn’t have time to adapt.

i wanted to comment the exact thing, it says end of March!

Can someone give an example of how the pagination needs to be inserted in the $url, i will never have more than 300 items on that list so the first 1000 with pagination are enough.

thanks!

I think i got it, header add

“X-Pagination-Page” = “1”
“X-Pagination-Limit” = “10”

i added this and i got the full 125 items.