Get particular paragraphs on the Confluence page

Galina Grudinina
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2022

I have a Confluence page with 3 sections. Inside each section, the link to the Jira ticket can be added.
My task is to check each section for updates and if there are any I have to retrieve the titles.
Attaching the template of the page.

I've tried to call the endpoint below, but the response is very big.
url = "https://domain-name/confluence/wiki/rest/api/content"

I've also tried to call this, but the response is again too big:
If I use  and try to call:
I'm not getting  enough info
I'm wondering if something from here will be useful, but I don't have space key:

Looking forward for someone's reply.



1 answer

0 votes
Ziana Hanafi December 26, 2022

Hi @Galina Grudinina ,

Instead of calling all pages in Confluence via "https://domain-name/confluence/wiki/rest/api/content" you can try to limit the results by searching for keywords or labels using CQL (Confluence Query Language) like below: 


It will search for pages having "docs" as label and text "advanced search" in its body. Hope this helps!


-- Ziana

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events