Skip to content
Unofficial Go API for Notion.so
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd start on Dump() for debugging purposes Mar 24, 2019
s start on Dump() for debugging purposes Mar 24, 2019
tohtml
.gitignore
LICENSE Initial commit Jul 10, 2018
README.md
all_test.go refactor API to use a Client (fixes #2) Oct 14, 2018
client.go
constants.go add definition for sub_sub_header Feb 24, 2019
dbg.go
dump_structure.go start on Dump() for debugging purposes Mar 24, 2019
get_record_values.go
get_record_values_test.go simplify unmarshalling and expose low-level API calls Oct 14, 2018
get_signed_file_urls.go
go.mod add go.mod and go.sum Sep 8, 2018
go.sum add go.mod and go.sum Sep 8, 2018
inline_block.go update comments; shorten serialized json Jul 16, 2018
inline_block_test.go
load_page_chunk.go add DownloadFile() and GetSignedFileUrls() (fixes #4); add RawJSON to… Mar 22, 2019
load_page_chunk_test.go simplify unmarshalling and expose low-level API calls Oct 14, 2018
notes.md
page.go start on tohtml Mar 24, 2019
query_collection.go
submit_transaction.go

README.md

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.

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/books/

Implementations for other languages

You can’t perform that action at this time.