
Notion
Read, create, and update Notion pages and databases via the Notion REST API
Install
npx skills add taracodlabs/aiden --skill notion -g -a claude-code -y- Repository
- taracodlabs/aiden868
- Category
- Engineering
- Updated
- 16d ago
- License
- Apache-2.0
- Context cost
- Lightabout 982 tokens
- Runs scripts
- No, instructions only
What it does
Read, create, and update Notion pages and databases via the Notion REST API
Notion API Integration
Interact with Notion workspaces through the official REST API. Requires an Internal Integration token (NOTION_TOKEN) and pages/databases shared with that integration.
When to Use
- User wants to read content from a Notion page
- User wants to create a new page or database entry
- User wants to query a Notion database with filters
- User wants to append blocks to an existing page
- User wants to search across their Notion workspace
How to Use
1. Set up the integration token
The user must create an Internal Integration at https://www.notion.so/my-integrations and share their pages/databases with it.
# Set token in session (or add to .env)
$env:NOTION_TOKEN = "ntn_..."
2. Search workspace
$headers = @{ "Authorization" = "Bearer $env:NOTION_TOKEN"; "Notion-Version" = "2022-06-28"; "Content-Type" = "application/json" }
$body = '{"query": "meeting notes"}'
$resp = Invoke-RestMethod -Uri "https://api.notion.com/v1/search" -Method Post -Headers $headers -Body $body
$resp.results | Select-Object -ExpandProperty properties | ConvertTo-Json -Depth 5
3. Read a page
$pageId = "your-page-id" # from Notion URL: notion.so/Page-Title-<pageId>
$headers = @{ "Authorization" = "Bearer $env:NOTION_TOKEN"; "Notion-Version" = "2022-06-28" }
$page = Invoke-RestMethod -Uri "https://api.notion.com/v1/pages/$pageId" -Headers $headers
$blocks = Invoke-RestMethod -Uri "https://api.notion.com/v1/blocks/$pageId/children" -Headers $headers
$blocks.results | ForEach-Object { $_.paragraph.rich_text.plain_text }
