{"id":13492834,"url":"https://github.com/dstotijn/go-notion","last_synced_at":"2025-04-04T06:08:06.922Z","repository":{"id":41317910,"uuid":"367162672","full_name":"dstotijn/go-notion","owner":"dstotijn","description":"Go client for the Notion API.","archived":false,"fork":false,"pushed_at":"2024-03-26T12:14:56.000Z","size":112,"stargazers_count":384,"open_issues_count":7,"forks_count":40,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-28T05:09:32.715Z","etag":null,"topics":["client","go","golang","notion","notion-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dstotijn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-13T20:09:09.000Z","updated_at":"2025-03-23T21:25:42.000Z","dependencies_parsed_at":"2024-01-16T09:01:30.026Z","dependency_job_id":"557e194a-908a-467c-b3ff-449fd4204b48","html_url":"https://github.com/dstotijn/go-notion","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstotijn%2Fgo-notion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstotijn%2Fgo-notion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstotijn%2Fgo-notion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dstotijn%2Fgo-notion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dstotijn","download_url":"https://codeload.github.com/dstotijn/go-notion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128744,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","go","golang","notion","notion-api"],"created_at":"2024-07-31T19:01:09.693Z","updated_at":"2025-04-04T06:08:06.903Z","avatar_url":"https://github.com/dstotijn.png","language":"Go","funding_links":[],"categories":["Go","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# go-notion\n\n[![GitHub tag (latest\nSemVer)](https://img.shields.io/github/v/tag/dstotijn/go-notion?label=go%20module)](https://github.com/dstotijn/go-notion/tags)\n[![Test](https://github.com/dstotijn/go-notion/actions/workflows/test.yaml/badge.svg)](https://github.com/dstotijn/go-notion/actions/workflows/test.yaml)\n[![Go\nReference](https://pkg.go.dev/badge/github.com/dstotijn/go-notion.svg)](https://pkg.go.dev/github.com/dstotijn/go-notion)\n[![GitHub](https://img.shields.io/github/license/dstotijn/go-notion)](LICENSE)\n[![Go Report\nCard](https://goreportcard.com/badge/github.com/dstotijn/go-notion)](https://goreportcard.com/report/github.com/dstotijn/go-notion)\n\n**go-notion** is a client for the [Notion\nAPI](https://developers.notion.com/reference), written in\n[Go](https://golang.org/).\n\n## Features\n\nThe client supports all (non-deprecated) endpoints available in the Notion API,\nas of September 4, 2022:\n\n\u003cdetails\u003e\n\u003csummary\u003eDatabases\u003c/summary\u003e\n\n- [x] [Query a\n      database](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.QueryDatabase)\n- [x] [Create a\n      database](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.CreateDatabase)\n- [x] [Update\n      database](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.UpdateDatabase)\n- [x] [Retrieve a\n    database](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindDatabaseByID)\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003ePages\u003c/summary\u003e\n\n- [x] [Retrieve a\n      page](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindPageByID)\n- [x] [Create a\n      page](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.CreatePage)\n- [x] [Update\n      page](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.UpdatePage)\n- [x] [Retrieve a page\n    property](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindPagePropertyByID)\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eBlocks\u003c/summary\u003e\n\n- [x] [Retrieve a\n      block](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindBlockByID)\n- [x] [Update\n      block](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.UpdateBlock)\n- [x] [Retrieve block\n      children](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindBlockChildrenByID)\n- [x] [Append block\n      children](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.AppendBlockChildren)\n- [x] [Delete\n    block](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.DeleteBlock)\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eUsers\u003c/summary\u003e\n\n- [x] [Retrieve a\n      user](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindUserByID)\n- [x] [List all\n      users](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.ListUsers)\n- [x] [Retrieve your token's bot\n    user](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindCurrentUser)\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eSearch\u003c/summary\u003e\n\n- [x] [Search](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.Search)\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eComments\u003c/summary\u003e\n\n- [x] [Retrieve\n      comments](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.FindCommentsByBlockID)\n- [x] [Create a\n    comment](https://pkg.go.dev/github.com/dstotijn/go-notion#Client.CreateComment)\n\u003c/details\u003e\n\n## Installation\n\n```sh\n$ go get github.com/dstotijn/go-notion\n```\n\n## Usage\n\nTo obtain an API key, follow Notion’s [getting started\nguide](https://developers.notion.com/docs/getting-started).\n\n```go\nimport \"github.com/dstotijn/go-notion\"\n\n(...)\n\nclient := notion.NewClient(\"secret-api-key\")\n\npage, err := client.FindPageByID(context.Background(), \"18d35eb5-91f1-4dcb-85b0-c340fd965015\")\nif err != nil {\n    // Handle error...\n}\n```\n\n👉 Check out the docs on\n[pkg.go.dev](https://pkg.go.dev/github.com/dstotijn/go-notion) for a complete\nreference and the [examples](/examples) directory for more example code.\n\n## Status\n\nThe Notion API itself is out of beta. This library is updated periodically\nfollowing documented changes from the Notion\n[changelog](https://developers.notion.com/changelog).\n\n**Note:** This library **will** make breaking changes in its code until\n`v1.0` of the module is released. There are no immediate plans for a `v1.0`\nrelease. I want the design choices to be solidified and battle-tested more\nbefore committing to a stable release (and the possible burden of a \"v2+\" Go\nmodule should I want to introduce breaking changes).\n\n## License\n\n[MIT License](LICENSE)\n\n© 2022 [David Stotijn](https://v0x.nl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdstotijn%2Fgo-notion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdstotijn%2Fgo-notion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdstotijn%2Fgo-notion/lists"}