Search for entities in confluence
Search for entities in Confluence using the Confluence Query Language (CQL). For example:
Example request URI(s):
-
http://localhost:8080/confluence/rest/api/search?cql=creator=currentUser()&type%20in%20(space,page,user)&cqlcontext={"spaceKey":"TST", "contentId":"55"} -
http://localhost:8080/confluence/rest/api/search?cql=siteSearch~'example'%20AND%20label=docs&expand=content.space,space.homepage&limit=10
/rest/api/searchcqlcontextstringthe execution context for CQL functions, provides current space key and content id. If this is not provided some CQL functions will not be available.
expandstringthe properties to expand on the search result, this may cause database requests for some properties
includeArchivedSpacesstringwhether to include content in archived spaces in the result, this defaults to false.
limitstringthe limit of the number of items to return, this may be restricted by fixed system limits.
startstringhe start point of the collection to return.
excerptstringthe excerpt strategy to apply to the result, one of : indexed, highlight, none. This defaults to highlight.
cqlstringthe CQL query see <a href='https://developer.atlassian.com/confdev/confluence-rest-api/advanced-searching-using-cql'>advanced searching in confluence using CQL</a>
application/jsonstringreturns a full JSON representation of a list of search results.
resultsSearchResult[]Show propertiesHide properties
SearchResulttitlestringexcerptstringurlstringresultParentContainerContainerSummaryShow propertiesHide properties
titlestringdisplayUrlstringresultGlobalContainerContainerSummaryShow propertiesHide properties
titlestringdisplayUrlstringiconCssClassstringlastModifiedstring<date-time>friendlyLastModifiedstringentityobjectresultGlobalContainerRefReferenceContainerSummaryShow propertiesHide properties
expandedbooleanidPropertiesobjectresultParentRefReferenceContainerSummaryShow propertiesHide properties
expandedbooleanidPropertiesobjectentityRefReferenceObjectShow propertiesHide properties
expandedbooleanidPropertiesobjectresourceTypeResourceTypeShow propertiesHide properties
namestringtypestringurlstringentityTypestringstartnumberlimitnumbersizenumber_linksobjectShow propertiesHide properties
basestringselfstringcontextstringnextstringprevstringreturned if the query cannot be parsed
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring