notion-client
Python client for the official Notion API
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-clientuv
uv add notion-clientpoetry
poetry add notion-clientInstalling 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
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
notion-to-md-pyConverts Notion pages to Markdown files via the…
permissive · top 15,000 on PyPI
notionUnofficial Python client for Notion.so API v3…
permissive · top 5,000 on PyPI
notion2mdExports Notion pages and blocks to Markdown…
permissive · top 15,000 on PyPI
aionotionaionotion is an asyncio-friendly Python library…
permissive · top 15,000 on PyPI
composio-clientA Python client library for the Composio REST…
permissive · top 5,000 on PyPI
python-intercomA Python client library for the Intercom API,…
unclear · top 15,000 on PyPI
vapi-server-sdkA Python SDK for the Vapi API, providing…
unclear · top 15,000 on PyPI
steel-sdkProvides a typed Python client for the Steel…
permissive · top 15,000 on PyPI
parallel-webProvides a Python client library for the…
permissive · top 5,000 on PyPI
pipedreamProvides a Python client library for accessing…
unclear · top 15,000 on PyPI