Hi @Patryk Koprowski ,
Hope you are doing well,
I am able to get the site search results using Get-MgSite -Search "" cmdlet Please follow the attached screen shot and grant the required permissions (Scopes).
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.