ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 4/5

notion-api

Generic Notion API CLI (Node) for search, querying data sources (databases), and creating pages. Configure with NOTION_KEY (or ~/.config/notion/api_key).

Why use this skill?

Use the OpenClaw Notion API skill to search, query databases, and create pages in Notion via CLI. Automate your workflow with secure, token-based authentication and flexible JSON integration.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/timenotspace/notion-api
Or

What This Skill Does

The notion-api skill provides a lightweight, Node-based Command Line Interface (CLI) designed to act as a bridge between OpenClaw and your Notion workspace. It enables automation of document management and data retrieval without requiring complex custom middleware. By providing a standardized interface for search, query, and page creation, it allows users to treat Notion as a structured data backend for AI agents. The utility is designed with security in mind, ensuring no hard-coded secrets or private database IDs exist within the codebase, relying instead on secure environment variables or local configuration files.

Installation

To integrate this utility into your OpenClaw environment, use the following CLI command: clawhub install openclaw/skills/skills/timenotspace/notion-api After installation, ensure you have your Notion integration token ready. Configure your authentication by either exporting the NOTION_KEY environment variable or placing your key on the first line of ~/.config/notion/api_key. Finally, remember to navigate to the specific page or database in your Notion workspace and explicitly share it with your integration to grant the necessary read/write permissions.

Use Cases

This skill is highly effective for automating workflows such as:

  • Knowledge Retrieval: Automatically searching your Notion documentation to provide context-aware responses to user queries.
  • Data Pipelines: Querying Notion databases to extract task lists or project metadata, which can then be processed or summarized by an AI agent.
  • Automated Logging: Programmatically creating new pages or database entries in response to specific system events or user interactions.

Example Prompts

  1. "Search my Notion workspace for any pages mentioning 'Project X' and summarize the findings."
  2. "Query the 'Inbound Leads' database in Notion using the JSON filter to find all entries marked as 'New' and list their names."
  3. "Create a new page in the 'Meeting Notes' database with the title 'Q3 Strategy Sync' using 'Name' as the title property."

Tips & Limitations

  • Rate Limits: The Notion API enforces strict rate limits. Always use the --page-size argument to minimize unnecessary data retrieval and avoid hitting API thresholds.
  • JSON Bodies: When using the --body flag for complex queries, ensure the JSON is correctly escaped and adheres to the official Notion API specification.
  • Version Control: While it defaults to 2025-09-03, you can override the API version using the NOTION_VERSION environment variable if you need to test specific API features or maintain compatibility with older scripts.

Metadata

Stars946
Views3
Updated2026-02-13
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-timenotspace-notion-api": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#notion#productivity#automation#node#api
Safety Score: 4/5

Flags: file-read, external-api