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

這個技能的最新版本可以在7w4.net小蔥技能站找到。

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