• Stars
    star
    381
  • Rank 112,502 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created over 3 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go client for the Notion API.

go-notion

GitHub tag (latest SemVer) Test Go Reference GitHub Go Report Card

go-notion is a client for the Notion API, written in Go.

Features

The client supports all (non-deprecated) endpoints available in the Notion API, as of September 4, 2022:

Databases
Pages
Blocks
Users
Search
Comments

Installation

$ go get github.com/dstotijn/go-notion

Usage

To obtain an API key, follow Notionโ€™s getting started guide.

import "github.com/dstotijn/go-notion"

(...)

client := notion.NewClient("secret-api-key")

page, err := client.FindPageByID(context.Background(), "18d35eb5-91f1-4dcb-85b0-c340fd965015")
if err != nil {
    // Handle error...
}

๐Ÿ‘‰ Check out the docs on pkg.go.dev for a complete reference and the examples directory for more example code.

Status

The Notion API itself is out of beta. This library is updated periodically following documented changes from the Notion changelog.

Note: This library will make breaking changes in its code until v1.0 of the module is released. There are no immediate plans for a v1.0 release. I want the design choices to be solidified and battle-tested more before committing to a stable release (and the possible burden of a "v2+" Go module should I want to introduce breaking changes).

License

MIT License

ยฉ 2022 David Stotijn

More Repositories

1

hetty

An HTTP toolkit for security research.
Go
6,086
star
2

golang-nextjs-portable

Go program with embedded Next.js app.
TypeScript
226
star
3

ct-diag-server

Diagnosis server for Apple/Google's (COVID-19) Exposure Notification framework.
Go
61
star
4

meteor-geospatial-demo

Meteor app with geospatial queries
JavaScript
23
star
5

yii2-json-schema-validator

A Yii 2 validator for JSON Schema.
PHP
17
star
6

vagrant-nginx-gunicorn-django

Configuration for setting up a Vagrant box with nginx, gunicorn and a stub django project.
Ruby
15
star
7

go-bunq

Go wrapper for the public bunq API.
Go
12
star
8

mailcheck

Tool for checking SPF records for domain names
Go
8
star
9

knowitallbot

A question-answering chatbot using the MessageBird Chat API.
JavaScript
8
star
10

v0x.nl

Source code for https://v0x.nl.
MDX
4
star
11

funda-alert

Funda new house alerts on Telegram.
Go
4
star
12

messagebird-graphql-poc

JavaScript
3
star
13

edena

Toolkit for capturing out-of-band data via HTTP, DNS and SMTP.
Go
3
star
14

astro-cv

Astro template for a CV
Astro
2
star
15

corona-melder-keyset-dashboard

JavaScript
2
star
16

ch7465lg

Go library and Prometheus exporter for the Compal CH7465LG cable modem (Ziggo ConnectBox).
Go
2
star
17

go-xstate

XState written in Go.
Go
2
star
18

tonny

A `net.Listener` to "tee" reads/writes on `net.Conn`s.
Go
1
star
19

exp-notif-crypto

Go implementation of the Encryption Specification of Apple/Google's Exposure Notification framework.
Go
1
star
20

ah-delivery-slots-notif

Automated (SMS) notifier for available delivery slots on ah.nl.
Go
1
star
21

drupstrap

Drupal base theme implementing Bootstrap framework
PHP
1
star
22

funda2csv

Go
1
star