API to read Sharepoint site text content

Vikas Neelam 1 Reputation point Microsoft Employee
2022-07-12T09:12:21.207+00:00

Hello,

I would like to ask if it is possible to read the text content of sharepoint site by using REST API's?

Thanks,
Vikas.

Microsoft 365 and Office SharePoint Development
Microsoft Security Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Tong Zhang_MSFT 9,251 Reputation points
    2022-07-13T05:44:03.127+00:00

    Hi @Vikas Neelam ,

    Do you want to query text content in SharePoint site using Rest API? If yes ,you can use SharePoint Search REST API , for example: GET http://{server}/_api/search/query?querytext='sharepoint'.
    You can refer to this document: SharePoint Search REST API

    If I misunderstood ,please feel free to contact me. Thanks for your understanding.


    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.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.