Notion API
This skill should be used when the user asks to "search Notion", "find in Notion", "search my Notion workspace", "create Notion page", "make a Notion page", "update Notion page", "edit Notion page", "query Notion database", "get Notion database", "read Notion page", "get page content from Notion", "list Notion pages", or mentions Notion integration, Notion workspace, or Notion API access.
What this skill does
# Notion API Integration
Access Notion pages, databases, and content through TypeScript scripts executed via Bun.
## Overview
This skill provides access to the Notion API for:
- **Search**: Find pages and databases across your workspace
- **Pages**: Get, create, and update pages
- **Databases**: Query database entries with filters and sorting
- **Blocks**: Read page content as blocks
All scripts return JSON and require a `NOTION_TOKEN` environment variable.
## Response Format
All scripts output JSON with a consistent structure:
### Success
```json
{"status": "success", "data": {...}}
```
### Authentication Required
```json
{
"status": "auth_required",
"message": "Set NOTION_TOKEN environment variable with your integration token...",
"setupUrl": "https://www.notion.so/my-integrations"
}
```
When you receive `auth_required`, display to the user:
```
To access Notion, you need to set up an integration:
1. Go to: https://www.notion.so/my-integrations
2. Create a new integration for your workspace
3. Copy the "Internal Integration Secret"
4. Set the NOTION_TOKEN environment variable with this token
5. Share your pages/databases with the integration (click "..." menu > "Add connections")
Let me know when you've completed setup.
```
### Error
```json
{"status": "error", "error": "Error description"}
```
## Search
Search for pages and databases across your Notion workspace.
All scripts are located at `${CLAUDE_PLUGIN_ROOT}/skills/notion/scripts/`.
```bash
# Search for pages/databases matching a query
bun run ${CLAUDE_PLUGIN_ROOT}/skills/notion/scripts/search.ts --query "meeting notes"
# Search only pages
bun run search.ts --query "project" --filter page
# Search only databases
bun run search.ts --filter database --top 20
# List all accessible items (no query)
bun run search.ts --top 10
```
## Pages
Get, create, and update Notion pages.
### Get Page
```bash
bun run ${CLAUDE_PLUGIN_ROOT}/skills/notion/scripts/pages.ts get --id <page-id>
```
### Create Page
```bash
# Create as child of another page
bun run pages.ts create --parent-id <page-id> --title "New Page"
# Create as child of another page with icon
bun run pages.ts create --parent-id <page-id> --title "New Page" --icon "๐"
# Create as database entry
bun run pages.ts create --parent-id <database-id> --parent-type database --title "New Entry"
# Create database entry with properties
bun run pages.ts create --parent-id <db-id> --parent-type database --title "Task" \
--properties '{"Status": {"select": {"name": "To Do"}}, "Priority": {"select": {"name": "High"}}}'
```
### Update Page
```bash
# Update title
bun run pages.ts update --id <page-id> --title "Updated Title"
# Update icon
bun run pages.ts update --id <page-id> --icon "๐"
# Archive page
bun run pages.ts update --id <page-id> --archived true
# Restore archived page
bun run pages.ts update --id <page-id> --archived false
# Update database page properties
bun run pages.ts update --id <page-id> --properties '{"Status": {"select": {"name": "Done"}}}'
```
## Databases
Query and get information about Notion databases.
### Get Database Schema
```bash
bun run ${CLAUDE_PLUGIN_ROOT}/skills/notion/scripts/databases.ts get --id <database-id>
```
Returns the database title, description, and all property definitions.
### Query Database
```bash
# Query all entries
bun run databases.ts query --id <database-id>
# Query with limit
bun run databases.ts query --id <db-id> --top 20
# Query with filter
bun run databases.ts query --id <db-id> --filter '{"property": "Status", "select": {"equals": "Done"}}'
# Query with multiple conditions (AND)
bun run databases.ts query --id <db-id> --filter '{"and": [
{"property": "Status", "select": {"equals": "In Progress"}},
{"property": "Priority", "select": {"equals": "High"}}
]}'
# Query with sorting
bun run databases.ts query --id <db-id> --sorts '[{"property": "Created", "direction": "descending"}]'
# Sort by last edited time
bun run databases.ts query --id <db-id> --sorts '[{"timestamp": "last_edited_time", "direction": "descending"}]'
```
### Common Filter Examples
```bash
# Text contains
--filter '{"property": "Name", "rich_text": {"contains": "project"}}'
# Checkbox is checked
--filter '{"property": "Done", "checkbox": {"equals": true}}'
# Date is after
--filter '{"property": "Due Date", "date": {"after": "2024-01-01"}}'
# Number greater than
--filter '{"property": "Score", "number": {"greater_than": 80}}'
# OR conditions
--filter '{"or": [
{"property": "Status", "select": {"equals": "Done"}},
{"property": "Status", "select": {"equals": "Archived"}}
]}'
```
## Blocks (Page Content)
Read page content as blocks.
### List Page Blocks
```bash
# Get blocks from a page
bun run ${CLAUDE_PLUGIN_ROOT}/skills/notion/scripts/blocks.ts list --id <page-id>
# Get blocks with limit
bun run blocks.ts list --id <page-id> --top 100
# Get blocks recursively (includes nested content)
bun run blocks.ts list --id <page-id> --recursive
```
### Get Specific Block
```bash
bun run blocks.ts get --id <block-id>
```
### Block Types
Blocks can be: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider, table, image, bookmark, and more.
Each block includes:
- `id`: Block identifier
- `type`: Block type
- `content`: Text content (if applicable)
- `hasChildren`: Whether block has nested blocks
- `children`: Nested blocks (when using --recursive)
## Authentication Setup
1. Go to https://www.notion.so/my-integrations
2. Click "New integration"
3. Give it a name and select the workspace
4. Copy the "Internal Integration Secret"
5. Set the environment variable:
```bash
export NOTION_TOKEN=secret_xxxxx
```
6. Share pages/databases with the integration:
- Open the page or database in Notion
- Click the "..." menu in the top right
- Select "Add connections"
- Find and select your integration
## Important Notes
- **Sharing required**: Pages and databases must be shared with your integration before they can be accessed
- **Rate limits**: Notion API allows ~3 requests per second on average
- **Page IDs**: Can be found in the page URL (the 32-character string after the page name)
- **Database IDs**: Same format as page IDs, found in the database URL
## Script Reference
| Script | Purpose |
|--------|---------|
| `search.ts` | Search pages and databases across workspace |
| `pages.ts` | Get, create, update pages |
| `databases.ts` | Get database schema, query entries |
| `blocks.ts` | Read page content as blocks |
## Additional Resources
For detailed API reference, see:
- **`references/notion-api.md`** - Notion API endpoints and parameters
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only โ no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.