A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi @captain_atharv ,
Based on my research and testing, there is no way to filter out folders while searching, as a workaround ,you can use the following Graph API to look only for files.
https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$expand=fields&$filter=fields/ContentType ne 'Folder'
Headers : Prefer HonorNonIndexedQueriesWarningMayFailRandomly
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.