View source: R/getNotionDatabase.R
getNotionDatabase | R Documentation |
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
)
secret |
Notion API token |
database |
Notion database ID. Use normalizeChromaPageIds if using directly from browser. |
filters |
A list built with filter operators (see filters) to query database. If NULL will query everything. |
show_progress |
show prints of progress? |
all_pages |
download all pages (loop thru paginations)? |
cover_icon |
also include cover and icon metadata? |
This is actually a POST request as per Notions API: https://developers.notion.com/reference/post-database-query
data.frame
Eduardo Flores
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.