Back to APIs list

Notion API examples & templates

Use these vals as a playground to view and fork Notion API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
notionWordCounterFetchDays
andreterron
notionWordCounterFetchDays
An interactive, runnable TypeScript val by andreterron
Script
notionSiteRss
bao
notionSiteRss
Generate an RSS feed for your Notion site. Prerequisite: the articles/posts needs to be in a Notion database. Create a Notion integration in http://notion.so/profile/integrations Go to the Notion database -> click ••• from top right -> Connections -> Connect to, select the integration from last step Fork this val Set up your NOTION_DATABASE_ID and NOTION_API_TOKEN in: https://www.val.town/settings/environment-variables Update the code to customize with your database properties (look out for "Customize based on your database") Share the RSS url
HTTP
notionValLinkTweet
stevekrouse
notionValLinkTweet
An interactive, runnable TypeScript val by stevekrouse
Script
date_me_doc_helpers
stevekrouse
date_me_doc_helpers
An interactive, runnable TypeScript val by stevekrouse
Script
importSmallStepsIntoNotion
thomasatflexos
importSmallStepsIntoNotion
An interactive, runnable TypeScript val by thomasatflexos
Express (deprecated)
notionGetDatabaseEditedAfter
stevekrouse
notionGetDatabaseEditedAfter
An interactive, runnable TypeScript val by stevekrouse
Script
dateme_notion_sync
stevekrouse
dateme_notion_sync
An interactive, runnable TypeScript val by stevekrouse
Cron
notionSiteProxy
chet
notionSiteProxy
// NOTE: This doesn't work great.
HTTP
notion_paperpile_detail_filler
nerdymomocat
notion_paperpile_detail_filler
An interactive, runnable TypeScript val by nerdymomocat
Cron
notionRecurringTasks
ciebiada
notionRecurringTasks
An interactive, runnable TypeScript val by ciebiada
Cron
grimPinkLimpet
jdan
grimPinkLimpet
// This approach will use the Notion API to update a block's color.
HTTP
getDateMeDatabase
stevekrouse
getDateMeDatabase
An interactive, runnable TypeScript val by stevekrouse
Script
notionDateDocTruncated
stevekrouse
notionDateDocTruncated
An interactive, runnable TypeScript val by stevekrouse
Script
todaysGrind
kamalnrf
todaysGrind
A simple Notion-powered API to get latest entry from my Coffee Journal. Usage Create an integration in Notion ( docs ) Use this Notion template for My Coffe Journal Update your enviroment vairables to include these keys Notion Integration API Key: NOTION_API_KEY Coffee Journal Database ID : COFFEE_TABLE_DB_ID
HTTP
cal
hydeptsa
cal
Remix of: bao/hydecal
HTTP
everyMonday
andreterron
everyMonday
Every Monday Prints every monday between 2 dates. I use it for quarterly planning. The output can be pasted in Notion as a bullet list.
Script