How to get search result from wiki to our webapp
Asked by Anish:

We are developing a new webapp like a forum for our company network. Webapp have a search tab which provides results from our new forum. Now we are planning to integrate wiki(confluence) search result with our web app search. So, How can we integrate wiki search result with our webapp results. Is there is any plugins or Api for doing this task.


Answers:
author: Davin Studer
body: Check out the REST API. There are methods for hooking into Confluence search.

[](https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API)<https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API>

comments: author: Anish
body: Since the documentation is not much descriptive, how we can implement searching a query using REST API..


author: Davin Studer
body: Here are some examples. There are even some for searching content.

[](https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API+Examples#ConfluenceRESTAPIExamples-FindingContent)<https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API+Examples#ConfluenceRESTAPIExamples-FindingContent>


author: Billy Schneider
body: Davin,

It looks like (at least with Confluence 5.5.2) that the closest API endpoint I could find on the REST documentation page [](https://docs.atlassian.com/atlassian-confluence/REST/latest/)<https://docs.atlassian.com/atlassian-confluence/REST/latest/>for search usage, "http://example.com/rest/api/content?title=something\&type=page", will *only* return pages with the exact case sensitive title 'something'. This is definitely not useful for API searching from another webapp.

The now Deprecated REST API Prototype does appear to have a search capability ([http://example.com/rest/prototype/1/search?query=something\&type=page](http://example.com/rest/prototype/1/search?query=something&type=page)), but since it is a now deprecated API (and only a Prototype to begin with) it probably isn't a solution to use in any production capacity.

I think I may spin this off into a separate question here on Atlassian Answers since I am having this issue as well (I'll link it here if I do).


author: Davin Studer
body: If you don't already have it you should get the [REST API Browser](https://marketplace.atlassian.com/plugins/com.atlassian.labs.rest-api-browser) for your Confluence install. If you do a search in the browser for "search" you will see this entry **"searchv3/1.0/search"**. I believe this is what you want.


author: Anish
body: That will be a great concern.


author: Davin Studer
body: Has your question been answered?


author: Billy Schneider
body: We looked into the **"searchv3/1.0/search"** endpoint, but were hesitant to rely on it since it is marked as a 'Private' API.


author: Billy Schneider
body: According to [](https://developer.atlassian.com/static/connect/docs/scopes/confluence-rest-scopes.html)<https://developer.atlassian.com/static/connect/docs/scopes/confluence-rest-scopes.html>:
> As opposed to public APIs, private APIs are not following the principles described in the [REST API Policy](https://developer.atlassian.com/display/HOME/Atlassian+REST+API+policy). While we strive to keep private APIs backward-compatible, we cannot guarantee compatibility. Private APIs can also be replaced by new public APIs and may become deprecated over time.


author: Davin Studer
body: My uderstanding is that private APIs are simply ones that require authentication, which since it is getting content from your system I would think would be a good thing.


author: Davin Studer
body: Good to know. I stand corrected. I guess I just never questioned what I thought it meant.