Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JSON Output of Confluence Page - Page Id v/s Page Title

Suresh Venkat May 26, 2021

Hi,

I am getting JSON Output of a Confluence Page via REST API using Page Id and Page Title. When using Page Title, JSON Output gives me page content, where as while using Page ID, it gives Entire Space output without the content of the Page ID that I have specified.

REST API calls are as below. Any idea, where am I going wrong?

REST API with Page ID supplied

https://confluencesite:9443/rest/api/content?pageId=76350029&spaceKey=CoRFlowB&expand=body.storage,metadata.labels

REST API with Page Title supplied

https://confluencesite:9443/rest/api/content?title=4th%20page%20with%20two%20reviewers&spaceKey=CoRFlowB&expand=body.storage,metadata.labels

Page Id of page 4th page with two reviewers is 76350029

1 answer

0 votes
Thiago Masutti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2021

Hi @Suresh Venkat 
I hope you are well.

Checking the Confluence REST API reference guide, the GET /rest/api/content method doesn't expect a pageid.

To get page information using the ID, then you should use GET /rest/api/content/{id} .

I hope that helps.

Kind regards,
Thiago Masutti

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events