Return Sharepoint search results in external site's search engine

Copper Contributor
Hey,
 
This is a general question, and sorry if I am not using the right technical terms 😕
 
We have this SharePoint site that is used as our intranet, where official documentation is stored. We have this other platform for forums and conversations, and we would like to be able to return SharePoint search results (from our intranet) when a user searches for terms in this external tool.
 
So the idea would be to create some sort of federated search that would include SP as one of its sources of results. 
 
Is this something that can be done? Are there any setting up guidance anywhere or examples of this working?
 
Cheers,
J
2 Replies

@JulienVDC  

To integrate SharePoint search results into an external site's search engine is known as federated search or enterprise search. SharePoint provides an API that allows you to query and retrieve search results programmatically.
Below mentioned will help you
  1. Register an application in Azure AD to authenticate and authorize requests to the SharePoint Search API.
  2. Use the Search REST API to query SharePoint search results. You can use HTTP requests to fetch search results from SharePoint.
  3. Integrate the search results into your external platform's search engine. You may need to write custom code to parse the search results and display them in your external site.
    Microsoft provides documentation on setting up federated search with SharePoint.