Hi @Dipika Das
I can reproduce your question, and the api endpoint returns all driveitem collections instead of recently opened files.
As the case would need additional troubleshooting. I would advise you to raise a support case with Microsoft Graph, a specialized Support Engineer will be able to assist you better.
You can raise technical support request from:
https://portal.azure.com/#view/Microsoft_Azure_Support/HelpAndSupportBlade/~/overview or https://admin.microsoft.com/#/support/requests.
Hope this helps.
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.