Get issues of the project during scanning with a sensor

I want to collect the issues during the scan, to filter with their tags (and show with other metric), how can I do it without making an API call?

Thanks in advance.

Hey there.

An analysis must be submitted to SonarQube for processing before issues and metrics are available – it’s not possible to extract these issues at scan time only.