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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.