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()
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת ticao2 🇧🇷 pt-BR
ב-נובמבר 12, 2023 ב-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
ב-נובמבר 14, 2023 ב-11:54לפני חצות יום
@Kanisius, you cannot limit the fields that are returned.