0

I would like to be able to receive a public Notion page URL and return the ID of that page. I don't know if that is possible using the API.

I've tried taking the end of this URL and using it to retrieve the page in postman https://www.notion.so/asnunes/Simple-Page-Text-4d64bbc0634d4758befa85c5a3a6c22f

https://api.notion.com/v1/pages/4d64bbc0634d4758befa85c5a3a6c22f

But it didn't work :/

fargoboyDC
  • 75
  • 2
  • 12

1 Answers1

0

The ID of the page is that alphanumeric string at the end of the URL before the query parameters. This would be what you would use when retrieving information from the page using the GET Page or GET block endpoints in the API.

If you do not have access to the page (i.e. your integration does not have access to the page in your workspace) you will not be able to use the API to make a request to it. You cannot use integrations to request information from other workspaces. Your integration is not authorized to access other workspaces.

adlopez15
  • 3,449
  • 2
  • 14
  • 19