Notion API Tools

👤 timenotspace 📦 v1.1.0 ⭐ 4.2 ⬇️ 7.3K 下载
💻 开发编程 免费 🔑 需 API Key

📖 技能介绍


name: notion-api description: Generic Notion API CLI (Node) for search, querying data sources (databases), and creating pages. Configure with NOTION_KEY (or ~/.config/notion/api_key).


notion-api (generic)

This skill provides a small Node-based CLI for the Notion API. It’s designed to be shareable: no hard-coded database IDs and no secrets in the repo.

Auth

Provide a Notion integration token via either:

  • NOTION_KEY env var, or
  • ~/.config/notion/api_key (first line)

Also make sure the target pages/databases are shared with your integration in Notion.

Commands (CLI)

Run via:

  • node scripts/notion-api.mjs <command> ...
node scripts/notion-api.mjs search "query" --page-size 10

Query a data source (database query)

node scripts/notion-api.mjs query --data-source-id <DATA_SOURCE_ID> --page-size 10
# optionally pass raw JSON body:
node scripts/notion-api.mjs query --data-source-id <ID> --body '{"filter": {...}, "sorts": [...], "page_size": 10}'

Create a page in a database

node scripts/notion-api.mjs create-page --database-id <DATABASE_ID> --title "My item" --title-prop Name

Output

All commands print JSON to stdout.

Notes

  • Notion API version header defaults to 2025-09-03 (override with NOTION_VERSION).
  • Rate limits apply; prefer page_size and minimal calls.

🤖 AI 评测

这个 Skill 质量扎实,代码实现可靠,没有多余的依赖,安装使用都很方便。它能完成 Notion 的搜索、查询、创建页面等常用操作,错误处理也比较完善,能清晰反馈问题。不足之处是缺少测试和详细的使用示例,新手可能需要花费一些时间理解用法。总体推荐,适合需要与 Notion 数据交互的用户。.

📊 多维度评分

适应性4.3
规范性3.9
有效性4.3
可靠性4.3
可信度4.3

📁 包含文件 (3 个)

📄 SKILL.md 1.4 KB
📄 _meta.json 129 B
📄 scripts/notion-api.mjs 7 KB

🔥 大家都在搜

wps 写作 pdf 苹果