bencooper222 / notionapi

Unofficial Go API for Notion.so - with some added features to the html converter

Home Page:https://blog.kowalczyk.info/article/c9df78cbeaae4e0cb2848c9964bcfc94/using-notion-api-go-client.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

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

About

Unofficial Go API for Notion.so - with some added features to the html converter

https://blog.kowalczyk.info/article/c9df78cbeaae4e0cb2848c9964bcfc94/using-notion-api-go-client.html

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 96.3%Language:JavaScript 2.0%Language:CSS 1.2%Language:HTML 0.3%Language:Batchfile 0.2%Language:Shell 0.0%