You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Howdy,
I want to gather page information about every page in my space programmatically. I am planning to do so through Python.
There's a metadata information called Page information for every page in Confluence. And this information is accessiable via URLs like:
https://example.net/wiki/pages/viewinfo.action?pageId=774671260
The page provides following metadata that describes page links, authors:
Is there any way I could collect this info via a Python script and REST API? I have scanned https://example.net/wiki/plugins/servlet/restbrowser#/ REST Browser but haven't found any matching API that would nail this task.
I would be happy to hear some recommendations or examples of scripts -- Python or JavaScript -- that solve this. Every input is appreciated.
Thank you in advance.
You can use the REST API, assuming your version of Confluence supports the following call:
Using requests library in Python or however you want, you can hit this endpoint: {Confluence Base URL}/rest/api/space/{Space Key}/content
This will give you the pages in a space and some information. You could then programmatically expand each page and grab the information you're looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.