Notionapi
Unofficial Go API for Notion.so
Install / Use
/learn @kjk/NotionapiREADME
About notionapi
This is an unofficial, Go API for https://notion.so. Mostly for reading, limited write capabilities.
It allows you to retrieve content of a Notion page in structured format.
You can then e.g. convert that format to HTML.
Note: official Notion API is still in beta and not as capable as this unofficial API.
Documentation:
- tutorial: https://blog.kowalczyk.info/article/c9df78cbeaae4e0cb2848c9964bcfc94/using-notion-api-go-client.html
- API docs: https://pkg.go.dev/github.com/kjk/notionapi
You can learn how I reverse-engineered the Notion API in order to write this library.
Real-life usage
I use this API to publish my blog and series of programming books from content stored in Notion.
Notion serves as a CMS (Content Management System). I write and edit pages in Notion.
I use custom Go program to download Notion pages using this this library and converts pages to HTML. It then publishes the result to Netlify.
You can see the code at https://github.com/kjk/blog and https://github.com/essentialbooks/tools/
Implementations for other languages
- https://github.com/jamalex/notion-py : library for Python
- https://github.com/petersamokhin/knotion-api : library for Kotlin / Java
- https://github.com/Nishan-Open-Source/Nishan : library for node.js, written in Typescript
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
