Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Which Confluence REST API to use for full text search?

Brian Levine February 18, 2019

Hello,

I want to be able to execute a "simple search" against confluence from my application using the REST API.  This would effectively mimic what happens when you do a search from the search bar in Confluence.  Eventually, I might want to more complex searches using CQL, but for now more of a simple full-text search capability would be fine.

I've seen reference to the searchv3 API, but this appears to be marked PRIVATE although I've seen others mention that they're using it.  search/v3/1.0/search?queryString= seems like exactly what I want.  What is the "right" way to do this and which REST API endpoint should I use?

Thanks!

1 answer

0 votes
Craig Castle-Mead
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2019

Hey Brian,

If you're feeling adventurous - the endpoint that Confluence Server (6.11.1 at least) uses is

 

https://confluence.example.org/json/contentnamesearch.action?query=search%20string%20goes%20here

 

NB: this isn't a documented/public API, so may well change in any version/update - use at your own risk.

 

CCM

Brian Levine February 18, 2019

Thanks Craig.  But I'm not that adventurous ;-)  I'm looking for the correct supported search API

 

Brian

Like Zak Laughton likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events