Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Do we have any Apis to get the Last Opened Documents
That is displayed in the the Office 365 Home Page.
Intention is to get the list of the last opened Documents using SpFx webpart.
Yes you can use the graph api. Check out the api with the graph explorer.
The api function you need is: https://graph.microsoft.com/v1.0/me/drive/recent
For "marketing reasons" this api command is in the onedrive section, but it returns your recent onedrive and sharepoint documents.
Required, but never shown