Hi. I want to export my lists in json using API, but I took a problem with limit of 500 items. I use link:
https://api.themoviedb.org/3/list/127969?api_key=<<myapikey>>&language=ru-RU
and in result i get list with 500 items instead 1030 items, last 530 items a don't know how to get.
How to solve this problem?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on December 26, 2019 at 1:08 PM
Hi @flobex,
If you need to get more than 500 items back, you should use v4 lists and then you can page through the results to get all of the items.
P.S. v3 now supports the v4 access token authentication, so you can switch to using the bearer token as a single means of auth for both v3 and v4.
Reply by flobex
on December 28, 2019 at 1:54 PM
Hello, thanks for answer.
I saw it, but in v4 there is limit, 20 items. How to expand this limit?
Reply by Travis Bell
on December 28, 2019 at 2:00 PM
You need to page through the pages by using the
page
param.Reply by flobex
on December 28, 2019 at 3:11 PM
ok. how can i get just "id" from every item?
Reply by Travis Bell
on December 28, 2019 at 3:34 PM
You can't. You'll just have to parse the response and grab the ID manually. The returned objects are the same as found everywhere else (search, discover, popular, etc...)