• Access Mode
  • Admin Group
  • Admin User
  • Attachments
  • Backup and Restore
  • Category
  • Child Content
  • Content Blueprint
  • Content Body
  • Content Descendant
  • Content Labels
  • Content Property
  • Content Resource
  • Content Restrictions
  • Content Version
  • Content Watchers
  • GlobalColorScheme
  • Group
  • Instance Metrics
  • Label
  • Long Task
  • Server Information
  • Space
  • Space Label
  • Space Property
  • Space Watchers
  • SpaceColorScheme
  • User
  • User Group
  • User Watch
  • Webhooks
  • Other operations
Server
Confluence Data Center / / REST API

Search

Postman Collection
OpenAPI
GET

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

Request

Query parameters

cqlcontext

string

expand

string

includeArchivedSpaces

string

limit

string

start

string

excerpt

string

cql

string

Request bodyapplication/json

string

Responses

returns a full JSON representation of a list of search results.

application/json

object
GET/rest/api/search
1 2 3 4 5 curl --request GET \ --url 'http://{baseurl}/confluence/rest/api/search' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '"<string>"'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 { "pageRequest": { "cursor": { "reverse": true, "cursorType": "SPACE" }, "limit": 2154, "start": 2154 }, "nextCursor": { "reverse": true, "cursorType": "SPACE" }, "prevCursor": { "reverse": true, "cursorType": "SPACE" }, "results": [ { "title": "Page Title", "excerpt": "This is an excerpt of the page content", "url": "http://localhost:8080/confluence/display/SPACEKEY/Page+Title", "resultParentContainer": { "title": "Demo Title", "displayUrl": "http://localhost:8080/confluence/display/SPACEKEY/Page+Title" }, "resultGlobalContainer": { "title": "Demo Title", "displayUrl": "http://localhost:8080/confluence/display/SPACEKEY/Page+Title" }, "iconCssClass": "<string>", "lastModified": "<string>", "friendlyLastModified": "<string>", "entity": {}, "entityRef": { "expanded": true, "idProperties": {} }, "resultParentRef": { "expanded": true, "idProperties": {} }, "resultGlobalContainerRef": { "expanded": true, "idProperties": {} }, "resourceType": { "name": "<string>", "type": "<string>", "url": "<string>" }, "entityType": "<string>" } ], "start": 25, "limit": 25, "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50", "self": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=25", "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0" }

Rate this page: