I have been using notion to track my habits and my finances. Now I want to get the data from the database using the Notion API. But the notion API requires Database ID and I can't seem to find it.
The official documentation is probably outdated or at least not working for UK users.
If your URL looks like below, then <long_hash_1>
is the database ID and <long_hash_2>
is the view ID.
https://www.notion.so/<long_hash_1>?v=<long_hash_2>
You must add your integration to the database!
Click the 3 dots, under Connections, there is an Add connections button.
If you still haven't found your URL, you can get it from either the web client or an APP client: