{"id":24812806,"url":"https://github.com/go-api-libs/notion","last_synced_at":"2025-03-25T15:54:34.765Z","repository":{"id":274871546,"uuid":"924254081","full_name":"go-api-libs/notion","owner":"go-api-libs","description":"Go library for the notion.","archived":false,"fork":false,"pushed_at":"2025-02-15T23:17:58.000Z","size":894,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-15T23:26:07.893Z","etag":null,"topics":["api","api-client","api-library","go","golang","integration","notion","notion-api","openapi","openapi3"],"latest_commit_sha":null,"homepage":null,"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/go-api-libs.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":"2025-01-29T17:24:00.000Z","updated_at":"2025-02-15T23:18:01.000Z","dependencies_parsed_at":"2025-02-15T23:22:00.629Z","dependency_job_id":"3743d7c3-0c05-468f-9fe9-e6a7624a1bf3","html_url":"https://github.com/go-api-libs/notion","commit_stats":null,"previous_names":["go-api-libs/notion"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-api-libs%2Fnotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-api-libs%2Fnotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-api-libs%2Fnotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-api-libs%2Fnotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-api-libs","download_url":"https://codeload.github.com/go-api-libs/notion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245495824,"owners_count":20624806,"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":["api","api-client","api-library","go","golang","integration","notion","notion-api","openapi","openapi3"],"created_at":"2025-01-30T14:20:06.574Z","updated_at":"2025-03-25T15:54:34.751Z","avatar_url":"https://github.com/go-api-libs.png","language":"Go","readme":"# Notion API\n[![Go Reference](https://pkg.go.dev/badge/github.com/go-api-libs/notion.svg)](https://pkg.go.dev/github.com/go-api-libs/notion/pkg/notion)\n[![OpenAPI](https://img.shields.io/badge/OpenAPI-3.1-blue)](/api/openapi.json)\n[![Go Report Card](https://goreportcard.com/badge/github.com/go-api-libs/notion)](https://goreportcard.com/report/github.com/go-api-libs/notion)\n![Code Coverage](https://img.shields.io/badge/coverage-28%25-red)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)\n\n[Create an integration](https://www.notion.so/my-integrations) to retrieve an API token, add your database and page ID's as variables in the collection, and start making your requests!\n\nFor our full documentation, including sample integrations and guides, visit [developers.notion.com](developers.notion.com)\n\nNeed more help? Join our [developer community on Slack](https://join.slack.com/t/notiondevs/shared_invite/zt-lkrnk74h-YmPRroySRFGiqgjI193AqA/)\n\n## Installation\n\nTo install the library, use the following command:\n\n```shell\ngo get github.com/go-api-libs/notion/pkg/notion\n```\n\n## Usage\n\n### Example 1: Retrieve a Page\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\n\t\"github.com/go-api-libs/notion/pkg/notion\"\n\t\"github.com/google/uuid\"\n)\n\nfunc main() {\n\tc, err := notion.NewClient()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tctx := context.Background()\n\tpage, err := c.GetPage(ctx, uuid.MustParse(\"96245c8f-1784-44a4-82ad-1941127c3ec3\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Use page object\n}\n\n```\n\n### Example 2: Retrieve block children\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\n\t\"github.com/go-api-libs/notion/pkg/notion\"\n\t\"github.com/google/uuid\"\n)\n\nfunc main() {\n\tc, err := notion.NewClient()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tctx := context.Background()\n\tblocksList, err := c.GetBlocks(ctx, uuid.MustParse(\"96245c8f-1784-44a4-82ad-1941127c3ec3\"), \u0026notion.GetBlocksParams{PageSize: 100})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Use blocksList object\n}\n\n```\n\n## Additional Information\n\n- [**Go Reference**](https://pkg.go.dev/github.com/go-api-libs/notion/pkg/notion): The Go reference documentation for the client package.\n- [**OpenAPI Specification**](./api/openapi.json): The OpenAPI 3.1.0 specification.\n- [**Go Report Card**](https://goreportcard.com/report/github.com/go-api-libs/notion): Check the code quality report.\n\n## Contributing\n\nIf you have any contributions to make, please submit a pull request or open an issue on the [GitHub repository](https://github.com/go-api-libs/notion).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-api-libs%2Fnotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-api-libs%2Fnotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-api-libs%2Fnotion/lists"}