notionapi 0.2.0
CRAN release: 2026-04-13
Updated to support Notion API version 2026-03-11 (previously 2022-06-28). All changes below reflect updates made to comply with the latest Notion API.
Breaking changes
DatabasesEndpoint$create()no longer acceptspropertiesparameter per API changes. UseDataSourcesEndpointto create databases with properties.DatabasesEndpoint$query()removed following API deprecation. UseDataSourcesEndpoint$query()instead.PagesPropertiesEndpoint$update()removed as the endpoint was deprecated in the Notion API.
New endpoints (per API additions)
DataSourcesEndpoint: Manage data sources (table views of databases) with$create(),$retrieve(),$update(),$query(), and$list_templates(). Supports full property configuration.FileUploadsEndpoint: Upload files to Notion with$create(),$send(),$complete(),$retrieve(), and$list(). Supports single-part (≤20MB), multi-part (>20MB), and external URL imports.ViewsEndpoint: Manage database views with$create(),$retrieve(),$update(),$delete(), and$list().ViewsQueriesEndpoint: Execute view queries with$create(),$results(), and$delete().CustomEmojisEndpoint: Access workspace custom emojis via$list().
Enhanced endpoints (per API updates)
Pages
$create()gainscontent,markdown,template, andpositionparameters.$update()gainsis_locked,template, anderase_contentparameters.$retrieve_markdown(): New method to retrieve page content as Notion-flavored Markdown.$update_markdown(): New method to update page content using Markdown withupdate_content,replace_content,insert_content, andreplace_content_rangeoperations.$move(): New method to move pages between parents.
