Get contents of a table on a page using Confluence Rest API

Brage Mogstad
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!
March 12, 2025

Hello
I'm a developer trying to get the contents of a table residing on a confluence page, but I can only seem to get the HTML source for the page, but not the data that resides in the table.
Any advice, if possible, on how to get the contents of the table that resides in this page would be appreciated!

Regards
Brage 

My current code:
Integer li_ret
String ls_string 

li_ret = lnv_HttpClient.clearrequestheaders()
li_ret = lnv_HttpClient.setrequestheaders("Content-Type:text/html;charset=UTF-8;UserID:xxxxx;Password:xxxxx")

li_ret = lnv_HttpClient.GetResponseBody(ls_string, EncodingUTF8!)
li_rc = lnv_HttpClient.SendRequest("GET", "https://<MYURL>/wiki/spaces/MSW/database/2849210383")

if li_rc = 1 then
  li_ret = lnv_HttpClient.GetResponseStatusCode() if li_ret = 200 then
    li_ret = lnv_HttpClient.GetResponseBody(ls_string, EncodingUTF8!)
  end if
end if

1 answer

0 votes
Bill Sheboy
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.
March 12, 2025

Hi @Brage Mogstad -- Welcome to the Atlassian Community!

I do not believe there is a public endpoint to access a Confluence Database's data yet.  Here is the suggestion to add that feature: https://jira.atlassian.com/browse/CONFCLOUD-77328

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events