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()
@Kanisius said: limit data
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()
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
ticao2 🇧🇷 pt-BR 的回复
于 2023 年 11 月 12 日 7:50上午
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
Travis Bell 的回复
于 2023 年 11 月 14 日 11:54上午
@Kanisius, you cannot limit the fields that are returned.