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
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.
I want to use python get my page by API ,but i have met an error:
my page addr:
from atlassian import Confluence
confluence = Confluence(url="https://nannan666.atlassian.net/wiki", username="nannan666", password="xxxx")
# If you know Space and Title
content1 = confluence.get_page_by_title(space="CHARTGPT", title="page title")
# If you know page_id of the page
content2 = confluence.get_page_by_id(page_id=98517)
urn complexjson.loads(self.text, **kwargs)
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://nannan666.atlassian.net/wiki/rest/api/content?type=page&start=0&limit=1&spaceKey=CHARTGPT&title=page+title
Hello @nannan666 ,
Have you tried to access the URL from a third party application like Postman or Insomnia first?
This is a good place to start so you can confirm you are setting up the call correctly.
Consider request headers as well.
I am not familiar with the library you are using but try and get this working with the Python requests library or the http.client libraries first.
Also try and call yourself in the first instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.