在 Notion 中哪里可以找到我的数据库的数据库 ID?
Where to find Database Id for my database in Notion?
我一直在使用概念来跟踪我的习惯和财务状况。现在我想使用概念 API 从数据库中获取数据。但是 API 这个概念需要数据库 ID,我似乎找不到它。
如果这只是为了你自己,you can get the database ID from the URL of the page:
If you're using the Notion desktop app, click on the Share button once again and select Copy link. Paste and navigate to this URL in your browser. You may need to log into the Notion workspace if you haven't already. Follow the instructions for the browser in the next bullet.
If you're using Notion in a browser and viewing the database as a full page, the database ID is the part of the URL after your workspace name and the slash (acme/) and before the question mark (?). The ID is 32 characters long, containing numbers and letters. Copy the ID and paste it somewhere you can easily find later.
https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=...
|--------- Database ID --------|
如果您正在为其他人创建集成,您可以使用 the Search endpoint to get all databases your integration has access to. There is also a List databases endpoint,但显然这已被弃用。
...notion.so/?v=
前面的一些id或hash是数据库ID。
官方文档可能已过时或至少不适用于英国用户。
如果您的 URL 如下所示,则 <long_hash_1>
是数据库 ID,<long_hash_2>
是视图 ID。
https://www.notion.so/<long_hash_1>?v=<long_hash_2>
您必须与您的集成共享数据库!
在您的数据库视图中单击 共享按钮,找到您的集成名称并打开旁边的开关。
如果您还没有找到您的URL,您可以从网络客户端或APP客户端获取:
- 如果您使用的是 Web 客户端,请转到数据库视图(例如板视图),然后可以在浏览器的地址栏中找到 URL。
- 如果您使用的是APP客户端,请转到数据库查看(例如看板视图),然后click/tap 分享按钮.复制邀请 link(在 Windows APP 中位于下角),link 就是您的 URL.
我一直在使用概念来跟踪我的习惯和财务状况。现在我想使用概念 API 从数据库中获取数据。但是 API 这个概念需要数据库 ID,我似乎找不到它。
如果这只是为了你自己,you can get the database ID from the URL of the page:
If you're using the Notion desktop app, click on the Share button once again and select Copy link. Paste and navigate to this URL in your browser. You may need to log into the Notion workspace if you haven't already. Follow the instructions for the browser in the next bullet.
If you're using Notion in a browser and viewing the database as a full page, the database ID is the part of the URL after your workspace name and the slash (acme/) and before the question mark (?). The ID is 32 characters long, containing numbers and letters. Copy the ID and paste it somewhere you can easily find later.
https://www.notion.so/myworkspace/a8aec43384f447ed84390e8e42c2e089?v=... |--------- Database ID --------|
如果您正在为其他人创建集成,您可以使用 the Search endpoint to get all databases your integration has access to. There is also a List databases endpoint,但显然这已被弃用。
...notion.so/?v=
前面的一些id或hash是数据库ID。
官方文档可能已过时或至少不适用于英国用户。
如果您的 URL 如下所示,则 <long_hash_1>
是数据库 ID,<long_hash_2>
是视图 ID。
https://www.notion.so/<long_hash_1>?v=<long_hash_2>
您必须与您的集成共享数据库! 在您的数据库视图中单击 共享按钮,找到您的集成名称并打开旁边的开关。
如果您还没有找到您的URL,您可以从网络客户端或APP客户端获取:
- 如果您使用的是 Web 客户端,请转到数据库视图(例如板视图),然后可以在浏览器的地址栏中找到 URL。
- 如果您使用的是APP客户端,请转到数据库查看(例如看板视图),然后click/tap 分享按钮.复制邀请 link(在 Windows APP 中位于下角),link 就是您的 URL.