Notion-sdk

Latest version: v0.7.0

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.3.0

Changes
* Adds [GET and PATCH blocks](https://developers.notion.com/changelog/retrieve-and-update-blocks-with-get-and-patch-v1blocksid)
* Changes to reflect *backwards incompatible* Notion-Version `2021-08-16` [changes](https://developers.notion.com/changelog/notion-version-2021-08-16)

0.2.3

Added [create database endpoint](https://developers.notion.com/reference/create-a-database).
Added `show_original` to rollup property functions.

0.2.2

Added ability to [archive (delete) a page](https://developers.notion.com/reference/patch-page#archive-delete-a-page).

0.2.1

Changes
Adds support for `url` in returned Page object per this change https://developers.notion.com/changelog/page-objects-now-return-url

0.2.0

Breaking changes

- The `HTTPResponseError` class is no longer exported, and `HTTPResponseError.isHTTPResponseError(error)` is replaced by `isHTTPResponseError(error)`.
- Most error class constructor signatures have changed. Please see the types for more details. Error class constructors no longer reference the `got` library.

New features

- The `got` library is replaced with `node-fetch`.
- You may now pass a `fetch` function when creating a `Client` instance. The client will use this fetch function for all HTTP requests.
- Error types have been reworked for improved type safety. No more stringly-typed errors! Inside a `isNotionClientError` type guard, both `error.name` and `error.code` are enumerated unions that can be used to further refine the type of `error`.
- `error.code` is guaranteed to be in your library's `APIErrorCode` or `ClientErrorCode` enum types, even if the API returns a new, unknown `code` in a response. In this case, `error.code` will be `ClientErrorCode.ResponseError`.
- Types have been updated according to the [API changes](https://developers.notion.com/changelog/database-objects-now-return-parent).

0.1.3

Releasing with initial feature set. Stay tuned - we'd love to evolve this library to meet many more needs.

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.