/install notion-api-integration
Notion API Integration
Complete Notion API reference. See auxiliary files for detailed operations.
Quick Start
curl 'https://api.notion.com/v1/users/me' \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2022-06-28"
Setup
On first use, read setup.md. Preferences stored in ~/notion-api-integration/memory.md.
When to Use
Any Notion operation: databases, pages, blocks, users, search, comments, properties.
Architecture
~/notion-api-integration/
├── memory.md # Workspace context
└── databases.md # Tracked database IDs
Quick Reference
| Topic | File |
|---|---|
| Setup and memory | setup.md, memory-template.md |
| Databases: query, create, update | databases.md |
| Pages: CRUD, properties | pages.md |
| Blocks: content, children | blocks.md |
| Property types reference | properties.md |
| Filters and sorts | filters.md |
| Search and users | search.md |
| Pagination patterns | pagination.md |
| Error handling | errors.md |
Core Rules
- API version header required - Always include
Notion-Version: 2022-06-28(or newer) - Bearer token auth -
Authorization: Bearer $NOTION_API_KEY - Page IDs without dashes - Remove dashes from URLs:
abc123def456notabc-123-def-456 - Property names are case-sensitive - Match exactly as defined in database
- Pagination mandatory - Use
start_cursorfor results over 100 items - Rate limits - 3 requests/second average, burst allowed
- Integration access - Pages must be shared with integration to access
Authentication
Required environment variable:
NOTION_API_KEY- Internal integration token (starts withntn_orsecret_)
# All requests require these headers
curl 'https://api.notion.com/v1/...' \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json"
Common Traps
- Missing
Notion-Versionheader - 400 error - Page ID with dashes - 404 not found
- Property name mismatch - Silent failure or error
- Skipping pagination - Miss data beyond first 100
- No integration access - 404 even if page exists
External Endpoints
| Endpoint | Purpose |
|---|---|
https://api.notion.com/v1/* |
All Notion API operations |
No other endpoints are accessed.
Security & Privacy
Environment variable used:
NOTION_API_KEY- for API authentication
Sent to Notion: Database queries, page content, block updates via api.notion.com Stays local: API key (in environment variable only), ~/notion-api-integration/ preferences Never: Store API keys in files, access pages not shared with integration
Scope
This skill ONLY:
- Makes requests to api.notion.com endpoints
- Stores preferences in
~/notion-api-integration/ - Provides curl and code examples
This skill NEVER:
- Accesses files outside
~/notion-api-integration/ - Makes requests to other endpoints
- Stores API keys in files
Trust
By using this skill, data is sent to Notion (notion.com). Only install if you trust Notion with your workspace data.
Related Skills
Install with clawhub install \x3Cslug> if user confirms:
api— REST API patternspkm— Personal knowledge managementproductivity— Task and productivity workflows
Feedback
- If useful:
clawhub star notion-api-integration - Stay updated:
clawhub sync
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install notion-api-integration - 安装完成后,直接呼叫该 Skill 的名称或使用
/notion-api-integration触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Notion API Integration 是什么?
Complete Notion API for databases, pages, blocks, users, search, comments, and property types with pagination and error handling. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 662 次。
如何安装 Notion API Integration?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install notion-api-integration」即可一键安装,无需额外配置。
Notion API Integration 是免费的吗?
是的,Notion API Integration 完全免费(开源免费),可自由下载、安装和使用。
Notion API Integration 支持哪些平台?
Notion API Integration 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Notion API Integration?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.2。