Microsoft Graph API to read file stored in Sharepoint Site

Aich, Mainak 1 Reputation point


I am looking for a graph API to read a file which is stored in my MS SharePoint site hosted in Azure Cloud. E.g. my site name is <SiteName> and file name is <File1.xlsx>. Can you please suggest what will be the API to read the file content in response body?

I am testing the APIs in MS Graph Explorer.


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,014 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 35,266 Reputation points

    Hi @Aich, Mainak

    You can use this graph api endpoint to read file stored in a SharePoint site:{site id}/drive/root:/File1.xlsx  


    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.