Notion API Integration

Complete Notion API for databases, pages, blocks, users, search, comments, and property types with pagination and error handling.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Notion API Integration" with this command: npx skills add ivangdavila/notion-api-integration

Notion API Integration

Complete Notion API reference. See auxiliary files for detailed operations.

Quick Start

curl 'https://api.notion.com/v1/users/me' \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28"

Setup

On first use, read setup.md. Preferences stored in ~/notion-api-integration/memory.md.

When to Use

Any Notion operation: databases, pages, blocks, users, search, comments, properties.

Architecture

~/notion-api-integration/
├── memory.md      # Workspace context
└── databases.md   # Tracked database IDs

Quick Reference

TopicFile
Setup and memorysetup.md, memory-template.md
Databases: query, create, updatedatabases.md
Pages: CRUD, propertiespages.md
Blocks: content, childrenblocks.md
Property types referenceproperties.md
Filters and sortsfilters.md
Search and userssearch.md
Pagination patternspagination.md
Error handlingerrors.md

Core Rules

  1. API version header required - Always include Notion-Version: 2022-06-28 (or newer)
  2. Bearer token auth - Authorization: Bearer $NOTION_API_KEY
  3. Page IDs without dashes - Remove dashes from URLs: abc123def456 not abc-123-def-456
  4. Property names are case-sensitive - Match exactly as defined in database
  5. Pagination mandatory - Use start_cursor for results over 100 items
  6. Rate limits - 3 requests/second average, burst allowed
  7. Integration access - Pages must be shared with integration to access

Authentication

Required environment variable:

  • NOTION_API_KEY - Internal integration token (starts with ntn_ or secret_)
# All requests require these headers
curl 'https://api.notion.com/v1/...' \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28" \
  -H "Content-Type: application/json"

Common Traps

  • Missing Notion-Version header - 400 error
  • Page ID with dashes - 404 not found
  • Property name mismatch - Silent failure or error
  • Skipping pagination - Miss data beyond first 100
  • No integration access - 404 even if page exists

External Endpoints

EndpointPurpose
https://api.notion.com/v1/*All Notion API operations

No other endpoints are accessed.

Security & Privacy

Environment variable used:

  • NOTION_API_KEY - for API authentication

Sent to Notion: Database queries, page content, block updates via api.notion.com Stays local: API key (in environment variable only), ~/notion-api-integration/ preferences Never: Store API keys in files, access pages not shared with integration

Scope

This skill ONLY:

  • Makes requests to api.notion.com endpoints
  • Stores preferences in ~/notion-api-integration/
  • Provides curl and code examples

This skill NEVER:

  • Accesses files outside ~/notion-api-integration/
  • Makes requests to other endpoints
  • Stores API keys in files

Trust

By using this skill, data is sent to Notion (notion.com). Only install if you trust Notion with your workspace data.

Related Skills

Install with clawhub install <slug> if user confirms:

  • api — REST API patterns
  • pkm — Personal knowledge management
  • productivity — Task and productivity workflows

Feedback

  • If useful: clawhub star notion-api-integration
  • Stay updated: clawhub sync

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

aiq-assessment

AIQ(AI商数)评估工具。基于"三层18原子能力"框架,对个人或团队的AI协作效能进行 结构化评估。包含提示素养、算法共情、判断锐度三大维度,覆盖18个可量化的原子能力。 适用于自我诊断、招聘评估、团队AI成熟度审计等场景。触发词:AIQ、AI商数、AI能力评估、 AI协作效能、会不会用AI、AI Native...

Registry SourceRecently Updated
General

Reptile Pet Health Diagnosis Tool | 爬行类宠物健康诊断分析工具

Analyzes uploaded reptile or arachnid videos to identify scale, skin, and body issues, then generates a detailed health diagnosis report.

Registry SourceRecently Updated
General

Whop Digital Sales

Auto-create and manage digital products on Whop.com. Manages product lifecycle from creation to checkout link generation. Uses Whop REST API v1 with Company...

Registry SourceRecently Updated
General

ClawCap

Spending cap proxy for OpenClaw. Enforce hard daily and monthly limits across all your AI models (Claude, GPT, Gemini, and more) under one cap. Stop runaway...

Registry SourceRecently Updated