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.