getNotionDatabase: Returns a database as a data.frame

View source: R/getNotionDatabase.R

getNotionDatabaseR Documentation

Returns a database as a data.frame

Description

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).

Usage

getNotionDatabase(
  secret,
  database,
  filters = NULL,
  show_progress = FALSE,
  all_pages = TRUE,
  cover_icon = FALSE
)

Arguments

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?

Details

This is actually a POST request as per Notions API: https://developers.notion.com/reference/post-database-query

Value

data.frame

Author(s)

Eduardo Flores


Eflores89/notionR documentation built on Feb. 8, 2025, 10:25 a.m.