使用脚本向Notion中导入一些本地数据时,可能需要用到Database的ID值,比如:
"parent": {
"type": "database_id",
"database_id": "database的ID值"
}
这里database的ID值就需要我们自己填入,如何才能找到ID呢?使用浏览器打开Notion,并使用page页面打开database:
这时候在浏览器可以看到页面的URL,如下:
https://www.notion.so/<long_hash_1>?v=<long_hash_2>
其中<long_hash_1>
为database ID,<long_hash_2>
为视图ID,将其复制下来即可使用
参考:https://stackoverflow.com/questions/67728038/where-to-find-database-id-for-my-database-in-notion