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).
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.
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.
Run via:
node scripts/notion-api.mjs <command> ...node scripts/notion-api.mjs search "query" --page-size 10
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}'
node scripts/notion-api.mjs create-page --database-id <DATABASE_ID> --title "My item" --title-prop Name
All commands print JSON to stdout.
小葱技能站7w4.net,专业的AI技能分享平台。
2025-09-03 (override with NOTION_VERSION).page_size and minimal calls.这个 Skill 质量扎实,代码实现可靠,没有多余的依赖,安装使用都很方便。它能完成 Notion 的搜索、查询、创建页面等常用操作,错误处理也比较完善,能清晰反馈问题。不足之处是缺少测试和详细的使用示例,新手可能需要花费一些时间理解用法。总体推荐,适合需要与 Notion 数据交互的用户。.