How do I limit the data that enters the API? I only want 8 data that appears. I have a code like the following:
const response = await fetch(${BaseUrl}/movie/${Tipe}?api_key=${Apikey}
)
const Movies = await response.json()
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 ticao2 š§š· pt-BR
on November 12, 2023 at 7:50 AM
If I understood your question correctly...
The number/quantity of Items per Page and the number/quantity of Pages
cannot be changed, configured, specified, restricted, or anything like that.
There will always be up to 20 items per page.
And a maximum of 500 pages.
Therefore, at most 10,000 items.
Of course, depending on the parameters used in your API Request
this number/quantity can be much smaller.
Eventually zero.
In a Trending API Request, the quantities are greater. I do not know until when.
A maximum of 1,000 pages
Therefore a maximum of 20,000 items
Here's what Travis Bell, the Administrator, said on 2022-06-28:
https://www.themoviedb.org/talk/62bb2ea18b959e00526428c9#62bb37d2c613ce0094222e71
Reply by Travis Bell
on November 14, 2023 at 11:54 AM
@Kanisius, you cannot limit the fields that are returned.