elizaOS/eliza✦ 精选0°

notion

仓库创建 2024年7月9日最近提交 1 小时前SkillHot 收录 1 小时前
▸ 精选理由

便于将工作流与外部系统无缝写入 Notion 工作区。

▸ 风险提示

需要保存 Notion API 密钥并妥善管理权限。

这个 Skill 做什么

通过 Notion API 创建、查询与更新页面、数据库与区块。

通过 Notion API 创建、查询和更新页面、数据库与区块,能把内容写入或从 Notion 拉取结构化数据。想把笔记、任务或数据程序化地存到 Notion,或批量修改页面属性、查询数据库时会用。使用前需配置 integration 和 API key,并把目标页面/数据库共享给该集成。

▸ 展开 SKILL.md 英文原文

Notion API for creating and managing pages, databases, and blocks. Use when the user wants to create a Notion page, query a Notion database, update Notion properties, search Notion, add content to Notion, manage Notion blocks, or interact with Notion data sources and workspaces via the API.

办公文档NotionAPI笔记自动化通用✓ ClawHub 收录
1.9w
Stars
5.6k
Forks
35
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/notion/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/elizaOS/eliza/develop/packages/skills/skills/notion/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# notion

Use the Notion API to create/read/update pages, data sources (databases), and blocks.

## Setup

1. Create an integration at https://notion.so/my-integrations
2. Copy the API key (starts with `ntn_` or `secret_`)
3. Store it:

```bash
mkdir -p ~/.config/notion
echo "ntn_your_key_here" > ~/.config/notion/api_key
```

4. Share target pages/databases with your integration (click "..." → "Connect to" → your integration name)

## API Basics

All requests need:

```bash
NOTION_KEY=$(cat ~/.config/notion/api_key)
curl -X GET "https://api.notion.com/v1/..." \
  -H "Authorization: Bearer $NOTION_KEY" \
  -H "Notion-Version: 2025-09-03" \
  -H "Content-Type: application/json"
```

> **Note:*
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有