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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/timenotspace/notion-apiWhat 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
- "Search my Notion workspace for any pages mentioning 'Project X' and summarize the findings."
- "Query the 'Inbound Leads' database in Notion using the JSON filter to find all entries marked as 'New' and list their names."
- "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-sizeargument to minimize unnecessary data retrieval and avoid hitting API thresholds. - JSON Bodies: When using the
--bodyflag 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 theNOTION_VERSIONenvironment variable if you need to test specific API features or maintain compatibility with older scripts.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-timenotspace-notion-api": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, external-api