Skip to content

jomei/notionapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8b84b91 · Feb 13, 2025
Nov 20, 2023
Jul 10, 2023
Aug 17, 2023
Mar 5, 2024
May 23, 2021
Jun 5, 2023
Aug 8, 2023
Aug 8, 2023
Nov 17, 2024
Aug 17, 2023
Aug 8, 2023
Jul 7, 2023
Jun 16, 2023
Sep 14, 2022
Nov 17, 2024
Sep 5, 2023
Jul 10, 2023
Dec 20, 2024
Dec 20, 2024
Aug 8, 2023
Jun 14, 2024
Sep 5, 2023
Sep 5, 2023
Feb 12, 2025
Sep 10, 2021
Sep 23, 2024
Sep 2, 2022
Feb 13, 2025
Sep 4, 2024
Jul 8, 2022
Jun 16, 2023
May 30, 2021
Aug 8, 2021
Jun 16, 2023
Jan 6, 2023

Repository files navigation

notionapi

GitHub tag (latest SemVer) Go Reference Test

This is a Golang implementation of an API client for the Notion API.

Supported APIs

It supports all APIs of the Notion API version 2022-06-28.

Installation

go get github.com/jomei/notionapi

Usage

First, please follow the Getting Started Guide to obtain an integration token.

Initialization

Import this library and initialize the API client using the obtained integration token.

import "github.com/jomei/notionapi"

client := notionapi.NewClient("your_integration_token")

Calling the API

You can use the methods of the initialized client to call the Notion API. Here is an example of how to retrieve a page:

page, err := client.Page.Get(context.Background(), "your_page_id")
if err != nil {
    // Handle the error
}