How to retrieve page URL using Notion API endpoints?

I’m working with the Notion API and trying to figure out how to get the actual page URL from the data I receive. When I fetch page information through the API, I get back basic details like the page ID, creation date, modification date, and other properties. However, I can’t find the page slug or the full URL anywhere in this response data. I need to extract the page URL for items that are stored in a database. Is there a specific API endpoint or method to get this information? Or do I need to construct the URL manually using some of the metadata that’s returned?

Been wrestling with Notion API integrations for years and manually building URLs gets old fast. Yeah, you can construct them with page IDs like others mentioned, but what about handling hundreds of pages or regular syncing?

I automated this with Latenode. Built a workflow that pulls from Notion’s API, formats URLs automatically, and pushes them wherever I need. No more manual string work or hyphen formatting headaches.

Bulk operations are where it really shines. Last project had 500+ Notion pages that needed migrating to a CRM. Would’ve taken days manually, but Latenode knocked out the API calls, URL building, and data mapping in 20 minutes.

It handles edge cases too - workspace permissions, database vs page URLs, rate limiting so you don’t hit API limits.

The Notion API doesn’t provide the page URL directly; instead, you need to construct it manually using the page ID from the response. The URL format is https://www.notion.so/{page_id}, where you replace {page_id} with the actual ID you receive. This method applies to database pages as well. I’ve been utilizing their API for several months, and I’ve found it to be consistently reliable. Just remember to remove any hyphens from the page ID, since they are not included in Notion URLs.

yep, grace’s got it! just wanna add that page ids can be tricky, sometimes they’re with dashes, and sometimes they ain’t. make sure to take those out before putting the url together. i had my share of confusions too, haha!

Had this exact problem last month building a client dashboard. The API gives you the page ID in the id field, but you’ve got to build the URL yourself. If you’re working with database pages, the URL will redirect to wherever the page actually lives in the workspace. Quick heads up - with shared workspaces, double-check your auth permissions. I’ve had URLs that were technically correct but still hit access denied pages. Once you nail the formatting though, manual construction works great.