Access Confluence Page Data

Harpreet Singh February 18, 2020

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
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 21, 2020

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
AUG Leaders

Atlassian Community Events