skillfed

notion-client

Python client for the official Notion API

notion-client v3.1.0 4.4M downloads/30d#2,312 on PyPI2,176
Permissive license Active released

What it is and what it does

Notion-client is a Python SDK that wraps the official Notion API, designed as a Python equivalent to the reference JavaScript SDK. It provides both synchronous (Client) and asynchronous (AsyncClient) interfaces for interacting with Notion workspaces—querying databases, managing pages, listing users, and handling API responses. The library abstracts away the complexity of HTTP requests by grouping endpoint parameters into a single object, so you don't need to track which parameters go in the path, query, or body.

The client handles common API concerns automatically: it retries rate-limited requests (HTTP 429) and transient server errors (500, 503) with exponential backoff by default, emits structured logs for debugging, and raises typed APIResponseError exceptions with machine-readable error codes. It depends only on httpx for HTTP transport and typing_extensions for type hints, keeping the dependency footprint minimal. The package supports Python 3.8 through 3.14 and is marked as Production/Stable.

Use it for:

  • Automate data synchronization between Notion databases and external systems or scripts
  • Build integrations that query Notion pages and databases to generate reports or dashboards
  • Create bots or scheduled tasks that update Notion content programmatically
  • Develop async applications that interact with Notion without blocking the event loop
  • Handle bulk operations on Notion workspaces with automatic retry logic for reliability

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client library for the official Notion API that provides synchronous and asynchronous interfaces to query, create, and manage Notion databases, pages, and users.

Yes. This is the official Python SDK for the Notion API with active maintenance, no known vulnerabilities, low install friction, and permissive licensing. Install it if you need to integrate Notion into a Python application or automate Notion workflows. The synchronous and asynchronous interfaces, built-in retry logic, and comprehensive error handling make it a straightforward choice for Notion API access.

Install

notion-client on PyPI

pip

pip install notion-client

uv

uv add notion-client

poetry

poetry add notion-client

Installing notion-client

Before you install

Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release and carries 2176 GitHub stars, indicating stable community adoption.

License in practice

Licensed under the MIT License (permissive), which allows free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install notion-client

from notion_client import Client
import os

notion = Client(auth=os.environ["NOTION_TOKEN"])
users = notion.users.list()
print(users)

Requires a valid Notion integration token or OAuth access token set in the NOTION_TOKEN environment variable to authenticate with the Notion API.

Verify before relying

  • Rate-limit and retry behavior under high-volume request scenarios
  • Performance characteristics when querying large Notion databases
  • Compatibility with all Notion API endpoint types beyond the documented examples

Package facts

License not declared (permissive)
Python support supports the current Python release (<4,>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 2 — httpx, typing_extensions
Maintenance actively maintained — 94 days since the last release
Last repo commit
First released
Downloads 4,397,936/month — #2,312 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: notion_client-3.1.0-py2.py3-none-any.whl

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

notion api client pythonnotion database query sdknotion integration pythonnotion api wrappernotion page automationnotion sdk pythonnotion api sync async
notion-integrationasync-supportapi-client

More WWW/HTTP packages