Query a database in Notion with desired filters and get a database as a data.frame in R or download the entire database (all pages).
getNotionDatabase(
secret,
database,
filters = NULL,
show_progress = FALSE,
all_pages = TRUE,
cover_icon = FALSE
)data.frame
Notion API token
Notion database ID. Use normalizeChromaPageIds if using directly from browser.
A list built with filter operators (see filters) to query database. If NULL will query everything.
show prints of progress?
download all pages (loop thru paginations)?
also include cover and icon metadata?
Eduardo Flores
This is actually a POST request as per Notions API: https://developers.notion.com/reference/post-database-query