Hi @Shadi Rashed
I recommend that you use the Microsoft Search API instead of the Drive API, the Search API allows you to search across OneDrive and SharePoint content more comprehensively.
POST https://graph.microsoft.com/v1.0/search/query
Content-Type: application/json
{
"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": ".xlsx"
}
}
]
}
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.