Some data are not accessible in API

I suggest you check the Pagination section in Strapi’s documentation.

There are two ways to implement what you want based on your total data. Either change the page and get responses per 25, or change the pageSize and get all results at once.

page option: you want something like this http://localhost:1337/api/{collection-type_plural}?pagination[page]=X where X is the number of the page, 1,2,3…N

pageSize option: you want something like this http://localhost:1337/api/{collection-type_plural}?pagination[page]=1&pagination[pageSize]=Y. Where Y is the number of results you want to get in the response, 25, 50, 91, 100 etc. Please note that Strapi’s default maximum limit for pageSize is 100.

Cheers

1 Like