Home > Forum > General > BPS REST API - PublicApiReport -> How much data can be returned in one call

BPS REST API - PublicApiReport -> How much data can be returned in one call
1

I am fetching report data from the following endpoint:
https://developer.webcon.com/2023/resources/rest_api5.0/#tag/PublicApiReport/paths/~1api~1data~1v5.0~1db~1{dbId}~1applications~1{appid}~1reports~1{reportid}/get

There are properties for page and size, but information on defaults and max is missing. This seems to be explicitly documented on other endpoints, so i am questioning myself if there are limits at this endpoint or not?
From testing it seems that default for page is 1 and for size is 20.

I would really like to get all available data at the endpoint in one call. So currently i am calling the endpoint once with size=1 specified and check if ViewContent data is returned. If valid data is received then the property "count" is updated with how much data is to fetch. Then i do a second call specifying size=count to retrieve all data. This can work if there is no restriction on how much data can be retrieved in one call.

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings