Is there any way to handle more than 500 hotspots from the WEB_API?

Hello,

The api/hotspots/search function has a page size limitation of 500 max.
I have more than 500 hotspots

Is there any way to handle more than 500 hotspots from the WEB_API ?

I want to retrieve Security Hotspots through WEB_API but I cannot have more than 500.

Regards

The Web API documentation for GET api/hotspots/search includes parameters for pagination (p and ps) to go past the first 500 results.

Hello,
When I try with ps=1000 I have this message:
{“errors”:[{“msg”:“Page size must be between 1 and 500 (got 1000)”}]}

You can not see more than 500 issues per request, that is a hard limit. The idea is that you increment p until there are no more issues, so you have to do multiple requests. p=1 on the first request, p=2 on the second request, …

Hello Hendrik,
Thanks!
Ok, I get it now. It works with the increment of p. :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.