REST API: is there a way to get just one page?

I'm trying out the example here to read a page of our doc from Confluence, but it gives me every page in the entire space, not just the page I want. What am I doing wrong? Here's my url:

http://mysite.com/confluence/rest/api/content?type=page&spaceKey=MYSPACEKEY&Title=My+Page&expand=body.view

2 answers

1 accepted

1 vote
Accepted answer
Davin Studer Community Champion Apr 01, 2015

In the URL Title should be title. It is case sensitive.

Thank you. The example I used shows it as uppercase, but the second example and the rest of the doc does in fact show it as lower. Thanks.

Davin Studer Community Champion Apr 01, 2015

If you're an Atlassian employee looking at this mind fixing the typo?

1 vote

Hello, 

 

Could you try the command below and let us know if it works?

curl -u admin:atlassian http://192.168.213.129:8090/confluence/rest/api/content/2457602?expand=body.storage | python -mjson.tool

 

You can get more examples on this link.

 

Regards, 

Renato Rudnicki

The example code in the documentation has a capital "T" for "title". I fixed that in my code and it works great now. Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,527 views 25 14
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you