How can I extract "Created by" and "Title" names of different pages in confluence for a space?

Bharat Kalia
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 21, 2024

I am looking to help a user who wants to pull a report "created by" and "title" names of different pages for a space into a csv file. Is there any easy way to do? I am open to try it do it via rest api as well. 

 

We tried exporting the from "Analytics" but it doesn't give the "created by" column in the export file. I wonder if the "created by" has been removed recently from the analytics.

Thank you,

1 answer

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 22, 2024

@Bharat Kalia This Confluence Cloud REST API end-point will return all contents from a space. If you look at the response JSON, it contains both fields you're look for and a lot more!

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space/#api-wiki-rest-api-space-spacekey-content-get

Bharat Kalia
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 26, 2024

Thanks @Aron Gombas _Midori_ - The link seems to be deprecated. I was able to get the data using the v2 - https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-spaces-id-pages-get

Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2024

@Bharat Kalia Yes. "v1" is working and is marked as deprecated by Atlassian.

If you start fresh, then you should definitely use "v2" - due to being more future-proof.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events