It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Access Confluence Page Data

Hi,

I am trying to access confluence page data using below rest api end point

https://xxxxxx.atlassian.net/rest/api/content?type=blogpost&start=0 &limit=10&expand=space,history,body.view,metadata.labels

using postman tool just to test what is the response.

I am getting 404 status code.

I have also tried 

https://xxxxxx.atlassian.net/confluence/rest/api/content?type=blogpost&start=0 &limit=10&expand=space,history,body.view,metadata.labels

with response below:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status>    <status-code>404</status-code>    <message>null for uri: https://xxxxx.atlassian.net/rest/api/content?type=blogpost&amp;start=0%20&amp;limit=10&amp;expand=space,history,body.view,metadata.labels</message></status>

.

Doesn't seems like with authentication issue.

Am i doing something wrong? Please advise.

Thanks.

1 answer

0 votes

Hi Harpreet,

Welcome to Atlassian Community. It's nice to meet you.

The 404 error means nothing exists at that location. Probably because you're not including "wiki" in the URL:

Confluence Cloud REST API Example GET

Example:

GET /wiki/rest/api/content

 Make sure you're using the above documentation to build your queries accurately. Please note that you also do need to authenticate via the Postman tool in order to view pages that are not available publicly.

If you continue to have issues, please let me know the full call you're making and the response.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,435 views 6 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you