hi
I want to get all the TV shows info.
Then if i do http://api.themoviedb.org/3/discover/tv?api_key=mykey. I can see "total_pages": 3093, "total_results": 61856
But there is a max page limit 1000, which means i can not get page further than 1000.
But if i do filter by air_date:
http://api.themoviedb.org/3/discover/tv?api_key=mykey&first_air_date.lte=2000-01-01
I get: "total_pages": 375, "total_results": 7487
and
http://api.themoviedb.org/3/discover/tv?api_key=mykey&first_air_date.gte=2000-01-01 i get: "total_pages": 802, "total_results": 16021
7487+16021 = 23508
The total numbers are not even close.
So how can i get all of these IDs?
Thanks.
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsätta denna artikel eller lägga till den i en lista?
Inte medlem?
Svar från Travis Bell
den 3 juli 2015 vid 5:34 PM
Hi bennyae,
If you would like to bring down all of the data, you would be best to iterate though the ids instead. Start ad id 1 and run all the way up to the latest id found in /tv/latest. Discover isn't designed for this task.
Svar från swagle
den 5 september 2017 vid 12:13 AM
Hi Travis, this link is not deprecated. We would like to bring down all the TV data but would like to know how many records there are an the /tv/latest is deprecated. Can you tell me how else we can do this. Thank you.
Svar från Travis Bell
den 5 september 2017 vid 10:13 AM
@swagle The new link to /tv/latest is here.
A lot of has changed since 2015, if you are wanting to get all of the valid TV ids, you're better off using the newer daily ID exports. You can read about this here.
Svar från Purshotham
den 20 juni 2019 vid 12:58 PM
I there a way where we can limit the list size per page?
Svar från Travis Bell
den 20 juni 2019 vid 1:23 PM
Hi @Purshotham, no, all of our page sizes are locked at 20 items.