如何通过Notion Public API获取页面的url?

How to get the url of a page via the Notion Public API?

根据关于如何检索页面的官方概念 Public API documentation,我可以获得页面属性和少量元数据(即“对象” , "id", "created_time", "last_edited_time"). 给定可用的元数据,如何获取页面 slug 或 URL? (我正在尝试获取数据库项目的页面 URL)。

使用 https://api.notion.com/v1/databases/database_id/query and you can find your page id in results[].id from the list of responses. Omit dashes from results[].id. https://notion.so/page_id 查询数据库将成为您的页面 URL。