notion
Skill3 starsChanged 5 months agoMITView on GitHub
Notion API via curl: pages, databases, blocks, search.
- Reads credentials
- Sends data out
61 other projects use a version of this, 38 of them edited.
Adopted by
Most recently taken up by
- rakaarwaky/agents-arwakyedited, first seen Oct 6, 2026
- AceDataCloud/Skillstheir own version, first seen Oct 5, 2026
- delorenj/skillsedited, first seen Oct 2, 2026
- coroboros/agent-skillstheir own version, first seen Sep 26, 2026
- obra/muse-skillstheir own version, first seen Sep 26, 2026
- jacobwell/muse-skillstheir own version, first seen Sep 25, 2026
Used with
Projects with it also use voice-call, bear-notes and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seedprodSkillvoice-call
Start voice calls via the OpenClaw voice-call plugin.
Also in 5 projects that use this
seedprodSkillbear-notes
Create, search, and manage Bear notes via grizzly CLI.
Also in 7 projects that use this
braxtonROSE4Skillgithub-repo-management
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
Also in 10 projects that use this
- +9 more from seedprod
Other versions61 projects use a version of this.
Word for word · 0
None found.
Edited · 38
- wanikua/danghuangshang★ 2.7k54% same
- aivrar/portable-hermes-agent★ 23218% same
- graniet/kheish★ 22179% same
- HybridAIOne/hybridclaw★ 15716% same
- AtlasOmnia/donna-starter★ 12210% same
- seedprod/openclaw-prompts-and-skills★ 9361% same
- emanueleielo/ciana-parrot★ 7726% same
- wanikua/become-ceo★ 6262% same
- AtlasOmnia/hermes-custom-pack★ 6110% same
- ariffazil/arifOS★ 5212% same
28 more not listed
Wrote their own version · 23
- vellum-ai/vellum-assistant★ 1.4ksame name
- taracodlabs/aiden★ 846same name
- getsentry/junior★ 365same name
- refly-ai/refly-skills★ 203same name
- kv0906/pm-kit★ 138same name
- magnus919/agent-skills★ 109same name
- aaronnat23/disp8ch★ 99same name
- L-LesterYu/OpenClaw-hot-skills-zh★ 56same name
- alanalvestech/hitank★ 38same name
- AceDataCloud/Skills★ 17same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skills/xiaohongshu-finance/CLAUDE.mdCLAUDE.md
- ibook-builderSkill
- chart-visualizationSkill
- image-wellSkill
- ioc-editSkill
- jiaoyiyuan-tonySkill
- mspm0-ccsSkill
- ssh-skillSkill
- tweet-card-generatorSkill
- xiaohongshu-financeSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 58 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use the Notion API via curl to create, read, update pages, databases (data sources), and blocks.
- Distinctive: line 22
Create an integration at https://notion.so/my-integrations
- Distinctive: line 32
All requests use this pattern:
- Very specific: line 159
Databases → Data Sources: Use /data_sources/ endpoints for queries and retrieval
- Very specific: line 161
Use database_id when creating pages (parent: {"database_id": "..."})
- Very specific: line 162
Use data_source_id when querying (POST /v1/data_sources/{id}/query)
- Very specific: line 185
When curl -d '...' contains variable interpolation ($VAR, backticks, nested quotes), shell escaping silently corrupts the JSON.
- Very specific: line 210
Use is_inline: true when creating data sources to embed them in pages
- Very specific: line 211
Add -s flag to curl to suppress progress bars (cleaner output for Hermes)
“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Notion API
Use the Notion API via curl to create, read, update pages, databases (data sources), and blocks. No extra tools needed — just curl and a Notion API key.
Prerequisites
- Create an integration at https://notion.so/my-integrations
- Copy the API key (starts with
ntn_orsecret_) - Store it in
~/.hermes/.env:NOTION_API_KEY=ntn_your_key_here - Important: Share target pages/databases with your integration in Notion (click "..." → "Connect to" → your integration name)
API Basics
All requests use this pattern:
curl -s -X GET "https://api.notion.com/v1/..." \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json"The Notion-Version header is required. This skill uses 2025-09-03 (latest). In this version, databases are called "data sources" in the API.
Common Operations
Search
curl -s -X POST "https://api.notion.com/v1/search" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json" \
-d '{"query": "page title"}'Get Page
curl -s "https://api.notion.com/v1/pages/{page_id}" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03"Get Page Content (blocks)
curl -s "https://api.notion.com/v1/blocks/{page_id}/children" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03"Create Page in a Database
curl -s -X POST "https://api.notion.com/v1/pages" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json" \
-d '{
"parent": {"database_id": "xxx"},
"properties": {
"Name": {"title": [{"text": {"content": "New Item"}}]},
"Status": {"select": {"name": "Todo"}}
}
}'Query a Database
curl -s -X POST "https://api.notion.com/v1/data_sources/{data_source_id}/query" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json" \
-d '{
"filter": {"property": "Status", "select": {"equals": "Active"}},
"sorts": [{"property": "Date", "direction": "descending"}]
}'Create a Database
curl -s -X POST "https://api.notion.com/v1/data_sources" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json" \
-d '{
"parent": {"page_id": "xxx"},
"title": [{"text": {"content": "My Database"}}],
"properties": {
"Name": {"title": {}},
"Status": {"select": {"options": [{"name": "Todo"}, {"name": "Done"}]}},
"Date": {"date": {}}
}
}'Update Page Properties
curl -s -X PATCH "https://api.notion.com/v1/pages/{page_id}" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json" \
-d '{"properties": {"Status": {"select": {"name": "Done"}}}}'Add Content to a Page
curl -s -X PATCH "https://api.notion.com/v1/blocks/{page_id}/children" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2025-09-03" \
-H "Content-Type: application/json" \
-d '{
"children": [
{"object": "block", "type": "paragraph", "paragraph": {"rich_text": [{"text": {"content": "Hello from Hermes!"}}]}}
]
}'Property Types
Common property formats for database items:
- Title:
{"title": [{"text": {"content": "..."}}]} - Rich text:
{"rich_text": [{"text": {"content": "..."}}]} - Select:
{"select": {"name": "Option"}} - Multi-select:
{"multi_select": [{"name": "A"}, {"name": "B"}]} - Date:
{"date": {"start": "2026-01-15", "end": "2026-01-16"}} - Checkbox:
{"checkbox": true} - Number:
{"number": 42} - URL:
{"url": "https://..."} - Email:
{"email": "user@example.com"} - Relation:
{"relation": [{"id": "page_id"}]}
Key Differences in API Version 2025-09-03
- Databases → Data Sources: Use
/data_sources/endpoints for queries and retrieval - Two IDs: Each database has both a
database_idand adata_source_id- Use
database_idwhen creating pages (parent: {"database_id": "..."}) - Use
data_source_idwhen querying (POST /v1/data_sources/{id}/query)
- Use
- Search results: Databases return as
"object": "data_source"with theirdata_source_id
Pitfalls
API calls timeout from certain regions
From servers in China (or other regions with poor connectivity to Notion), API calls frequently timeout with default settings. Use --max-time 30 for curl and timeout: 60 for terminal calls. Initial connection test (/v1/users/me) is the most likely to timeout — always use extended timeout there.
Always confirm target when user says "write to X"
Users may have multiple similar pages/databases (e.g. "交易笔记" page vs "每日交易复盘" database). Before writing, confirm which one they mean. When in doubt, default to the database (structured data) over the page (freeform notes).
Get full page ID after creating database entries
The page ID returned from POST /v1/pages may be truncated or in a different format than what PATCH /v1/blocks/{id}/children expects. Always query the database after creating an entry to get the full UUID before adding content blocks:
# After POST /v1/pages, query to get full ID:
curl -s -X POST "https://api.notion.com/v1/databases/{db_id}/query" \
-H "Authorization: Bearer $NOTION_API_KEY" \
-H "Notion-Version: 2022-06-28" \
-d '{"sorts": [{"property": "Date", "direction": "descending"}], "page_size": 1}'Shell escaping kills complex JSON payloads
When curl -d '...' contains variable interpolation ($VAR, backticks, nested quotes), shell escaping silently corrupts the JSON. Always write the payload to a temp file and use -d @file:
# In execute_code, build payload as a Python dict, dump to file:
import json
with open('/tmp/notion_payload.json', 'w') as f:
json.dump(payload, f, ensure_ascii=False)
# Then curl with -d @file:
terminal('curl -s -X POST ... -d @/tmp/notion_payload.json')This avoids all shell escaping issues with {"rich_text": [{"text": {"content": "..."}}]} nesting.
API version compatibility
The 2022-06-28 API version is the most stable and widely compatible. The newer 2025-09-03 renames databases to "data sources" and changes endpoint paths (/databases/ → /data_sources/). Use 2022-06-28 unless you specifically need the newer features.
Select fields accept new values dynamically
Notion API creates new select/multi_select options on the fly — you don't need to pre-define them in the database. Use any string value and it becomes a new option.
Notes
- Page/database IDs are UUIDs (with or without dashes)
- Rate limit: ~3 requests/second average
- The API cannot set database view filters — that's UI-only
- Use
is_inline: truewhen creating data sources to embed them in pages - Add
-sflag to curl to suppress progress bars (cleaner output for Hermes) - Pipe output through
jqfor readable JSON:... | jq '.results[0].properties' - See
references/notion-memory-db.mdfor the user's 记忆库 database schema and write pattern - See
references/trading-journal-workflow.mdfor writing daily trading notes (交易笔记)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

