notion
Notion API + ntn CLI: pages, databases, markdown, Workers.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- notion
- author
- community
- license
- MIT
- version
- 2.0.0
- metadata
- { "hermes": { "tags": [ "Notion", "Productivity", "Notes", "Database", "API", "CLI", "Workers" ], "homepage": "https://developers.notion.com" } }
- platforms
- [ "linux", "macos", "windows" ]
- description
- Notion API + ntn CLI: pages, databases, markdown, Workers.
- when-to-use
- Use when reading or writing Notion pages, databases, markdown, file uploads, or Workers via the ntn CLI or the Notion API (curl).
- argument-hint
- ntn api v1/search|ntn api v1/users|ntn api v1/pages <parent[page_id]> [properties...]|ntn api v1/pages/<id>/markdown|ntn api v1/pages/<id>/markdown -X PATCH|ntn api v1/blocks/<id>/children|ntn api v1/data_sources/<id>/query -X POST|ntn files create|ntn files list|ntn workers new|ntn workers deploy|ntn workers exec
- prerequisites
- { "env_vars": [ "NOTION_API_KEY" ] }
02 资源文件 6
- 参考文档references/block-types.md3.0 KB
- 参考文档references/flavored-markdown.md1.0 KB
- 参考文档references/http-path.md4.5 KB
- 参考文档references/ntn-cli.md5.0 KB
- 参考文档references/property-types.md1023 B
- 参考文档references/workers.md2.3 KB
03 SKILL.md 正文
Notion
Talk to Notion two ways. Same integration token works for both — pick by what's available.
◆ ntn CLI — Notion's official CLI. Shorter syntax, one-line file uploads, required for Workers. macOS + Linux only as of May 2026 (Windows support "coming soon"). Default when installed.
◆ HTTP + curl — works everywhere including Windows. Default fallback when ntn isn't installed.
Global rules
- An integration token is required for both paths — create it at notion.so/my-integrations and store it as
NOTION_API_KEY; skipntn loginand use the token instead. - Share target pages/databases with the integration in Notion (page menu
...→Connect to→ your integration name); without this the API returns 404 for that page even though it exists. - Rate limit is ~3 requests/second average — the CLI doesn't bypass it; batch and back off rather than hammering.
- Always pass
-sto curl to suppress progress bars (cleaner agent output); pipe JSON throughjqwhen reading.
Routing
| Step | Reference | Purpose |
|---|---|---|
Setup, ntn CLI commands, path choice, notes |
references/ntn-cli.md |
Integration-token setup, ntn install, raw API shorthand, search/read/create/patch/query/upload command blocks, env vars, and the choosing-the-right-path table. |
| Cross-platform HTTP + curl fallback | references/http-path.md |
Full curl command set for search, pages, blocks, data sources, properties, and file uploads — the default on Windows or when ntn is absent. |
| Common property formats + API versioning | references/property-types.md |
Property type reference for building data sources. |
| Block types | references/block-types.md |
Block type reference for reading/writing page content as blocks. |
| Notion-flavored markdown | references/flavored-markdown.md |
Notion-flavored markdown blocks and inline tags used by the /markdown endpoints. |
| Notion Workers | references/workers.md |
Workers scaffold, webhook capability, and lifecycle commands. |
04 同仓库更多 Skills
github-workflow
Umbrella for GitHub auth, repo management, issues, PRs, Mergify, and releases. Subsumes github-auth and repo-manager.
brave-automation
baa CLI: Brave profiles, Google sessions, credentials.
aes
AES docs, layers, rule fixes, and legacy migration.
pretext
Build creative browser demos with DOM-free text layout.
popular-web-designs
54 real design systems (Stripe, Linear, Vercel) as HTML/CSS.
p5js
p5.js sketches: gen art, shaders, interactive, 3D.