Forums

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

About using cursors to search confluence pages

青山 明
Contributor
January 27, 2022

Do a page search with cql in the confluence API. I know that if my search has multiple results, I can use cursor to get the results one by one. Is that correct? Also, if correct, are there any examples or samples somewhere?

1 answer

0 votes
Pramodh M
Community Champion
January 27, 2022

Hi @青山 明 

Welcome to Confluence!!

curl -s --request GET --header 'Accept: application/json' --user "${email}:${apptoken}" --url "https://${accountname}.atlassian.net/wiki/rest/api/search?cql=label?IN(%27confidential%27,%27classified%27)?AND?type=%27page%27?AND?space=${string}" | jq ".results | .[].title"

Here's one example to search the labels with confidential, non-confidential

Ref here

https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/

Thanks,
Pramodh

青山 明
Contributor
January 27, 2022

I received a reply, but the question is whether the cursor can be used when searching using cql of the confluence API and there are multiple search results. Is this correct?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events