Notion API Tools
Generic Notion API CLI (Node) for search, querying data sources (databases), and creating pages. Configure with NOTION_KEY (or ~/.config/notion/api_key).
timenotspace
@timenotspace
What This Skill Does
Command-line interface for the Notion API that supports searching across pages, querying databases with optional filters and sorts, and creating new pages in a database. Configured via a Notion integration token stored in an environment variable or config file.
Replaces manual Notion API calls or building custom scripts by providing a shareable, reusable CLI with no hard-coded IDs or secrets.
When to Use It
- Search Notion for pages matching a keyword across your workspace
- Query a Notion database to retrieve records with specific filters or sorting
- Create a new page in a Notion database with a given title and property
- Automate data extraction from Notion databases into JSON for further processing
- Integrate Notion search or page creation into shell scripts or CI/CD pipelines
Install
$ openclaw skills install @timenotspace/notion-apinotion-api (generic)
This skill provides a small Node-based CLI for the Notion API. It’s designed to be shareable: no hard-coded database IDs and no secrets in the repo.
Auth
Provide a Notion integration token via either:
NOTION_KEYenv var, or~/.config/notion/api_key(first line)
Also make sure the target pages/databases are shared with your integration in Notion.
Commands (CLI)
Run via:
node scripts/notion-api.mjs <command> ...
Search
node scripts/notion-api.mjs search "query" --page-size 10
Query a data source (database query)
node scripts/notion-api.mjs query --data-source-id <DATA_SOURCE_ID> --page-size 10
# optionally pass raw JSON body:
node scripts/notion-api.mjs query --data-source-id <ID> --body '{"filter": {...}, "sorts": [...], "page_size": 10}'
Create a page in a database
node scripts/notion-api.mjs create-page --database-id <DATABASE_ID> --title "My item" --title-prop Name
Output
All commands print JSON to stdout.
Notes
- Notion API version header defaults to
2025-09-03(override withNOTION_VERSION). - Rate limits apply; prefer
page_sizeand minimal calls.
Top skills in this category
Gog
@steipeteGoogle Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
API Gateway
@byungkyuCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, etc.
Notion
@steipeteNotion API for creating and managing pages, databases, and blocks.
Mcporter
@steipeteUse the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
Caldav Calendar
@asleep123Sync and query CalDAV calendars (iCloud, Google, Fastmail, Nextcloud, etc.) using vdirsyncer + khal. Works on Linux.