The new Notion API has finally arrived, opening so many new possibilities. I’ve personally always wanted to be able to have a Notion calendar database of journal entries for each day and beemind the word count and now it’s possible!
To do this, I just made a script that will take the total number of words of all pages of a notion database and send that number to a Beeminder goal. It’s a fairly simple use of the two APIs but I’m just excited that it’s possible. I assume others have probably discovered better ways to do the same, but here’s my method for anyone interested:
I’ve made two versions of the code:
An iOS version run with a Siri Shortcut and Scriptable.
A NodeJS version
- Code found here.
They both require:
- A Notion integration and database shared with that integration (instructions found here).
- The ID of the Notion database you want to track (instructions found here as well).
- Your Notion API Key (Internal Integration Token) (found in the integration information).
- Beeminder auth_token, goal name (odometer type), username.
An automation could be made to run the code every so often and update the word count.
I’d appreciate any feedback and can answer questions from anyone who might want to try it out.