{"id":13770588,"url":"https://github.com/yeukfei02/notion-sdk-deno","last_synced_at":"2026-05-01T23:33:06.890Z","repository":{"id":51124075,"uuid":"369545132","full_name":"yeukfei02/notion-sdk-deno","owner":"yeukfei02","description":"notion-sdk-deno","archived":false,"fork":false,"pushed_at":"2024-03-02T14:18:52.000Z","size":17,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T01:26:58.463Z","etag":null,"topics":["deno","notion"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yeukfei02.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-21T13:31:11.000Z","updated_at":"2023-10-16T18:55:06.000Z","dependencies_parsed_at":"2024-08-03T17:13:46.962Z","dependency_job_id":null,"html_url":"https://github.com/yeukfei02/notion-sdk-deno","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"2ac00aec968462d579dc24215ed6828327773ed6"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnotion-sdk-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnotion-sdk-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnotion-sdk-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeukfei02%2Fnotion-sdk-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeukfei02","download_url":"https://codeload.github.com/yeukfei02/notion-sdk-deno/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241105494,"owners_count":19910641,"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":["deno","notion"],"created_at":"2024-08-03T17:00:39.528Z","updated_at":"2026-05-01T23:33:06.857Z","avatar_url":"https://github.com/yeukfei02.png","language":"TypeScript","funding_links":[],"categories":["APIs"],"sub_categories":[],"readme":"# notion-sdk-deno\n\n[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/notion_sdk_deno/mod.ts)\n\n[![nest badge](https://nest.land/badge.svg)](https://nest.land/package/notion-sdk-deno)\n\nDeno [Notion](https://www.notion.so) SDK\n\n_Note: The [Notion API](https://developers.notion.com/) is in beta phase_\n\n## Supported APIs\n\n- [x] Users\n\n- [ ] Databases (only GET)\n\n- [ ] Blocks (only GET)\n\n- [ ] Pages (only GET)\n\n- [ ] Search\n\nIf this package needs update, please raise an issue or a PR.\n\n## Requirement\n\n- install deno\n\n## Example\n\n```ts\n// pick 1 to import\nimport { Notion } from \"https://deno.land/x/notion_sdk_deno@v0.3.9/mod.ts\";\nimport { Notion } from \"https://x.nest.land/notion-sdk-deno@0.3.9/mod.ts\";\nimport { Notion } from \"https://denopkg.com/yeukfei02/notion-sdk-deno@v0.3.9/mod.ts\";\n```\n\n```ts\nconst notion = new Notion({\n  token: \u003cyourNotionToken\u003e,\n});\n```\n\n### getUsers\n\n```ts\nconst userList = await notion.getUsers();\nconsole.log(\"userList = \", userList);\n```\n\n```zsh\n// userList\nuserList = [\n  {\n    object: \"user\",\n    id: \"17001963-9201-4d13-bf2d-9f842304d44a\",\n    name: \"Donald Wu\",\n    avatar_url: null,\n    type: \"person\",\n    person: { email: \"yeukfei02@gmail.com\" },\n  },\n  {\n    object: \"user\",\n    id: \"e5a677d2-20b8-4307-b21a-fca586918675\",\n    name: \"notion-api\",\n    avatar_url: null,\n    type: \"bot\",\n    bot: {},\n  },\n];\n```\n\n### getUserById\n\n```ts\nconst user = await notion.getUserById(userId);\nconsole.log(\"user = \", user);\n```\n\n```zsh\n// user\nuser =  {\n  object: \"user\",\n  id: \"17001963-9201-4d13-bf2d-9f842304d44a\",\n  name: \"Donald Wu\",\n  avatar_url: null,\n  type: \"person\",\n  person: { email: \"yeukfei02@gmail.com\" }\n}\n```\n\n### getDatabases\n\n```ts\nconst databases = await notion.getDatabases();\nconsole.log(\"databases = \", databases);\n```\n\n### getDatabaseById\n\n```ts\nconst database = await notion.getDatabaseById();\nconsole.log(\"database = \", database);\n```\n\n### getPageById\n\n```ts\nconst page = await notion.getPageById(pageId);\nconsole.log(\"page = \", page);\n```\n\n```zsh\n// page\npage = {\n  object: \"page\",\n  id: \"33bfc7be-6511-4b5e-9db2-4e64dd98d855\",\n  created_time: \"2020-06-21T02:18:34.784Z\",\n  last_edited_time: \"2021-05-20T09:00:00.000Z\",\n  parent: { type: \"workspace\", workspace: true },\n  archived: false,\n  properties: { title: { id: \"title\", type: \"title\", title: [ [Object] ] } }\n}\n```\n\n### getPageChildrenById\n\n```ts\nconst pageChildren = await notion.getPageChildrenById(blockId);\nconsole.log(\"pageChildren = \", pageChildren);\n```\n\n```zsh\n// pageChildren\npageChildren = [\n  {\n    object: \"block\",\n    id: \"25d74f8a-19d1-47af-8e62-d46f546feae0\",\n    created_time: \"2020-06-21T02:18:34.784Z\",\n    last_edited_time: \"2020-06-21T02:18:34.784Z\",\n    has_children: false,\n    type: \"unsupported\",\n    unsupported: {}\n  },\n  {\n    object: \"block\",\n    id: \"a84ef5ba-75d7-4b21-a7e3-529871d70314\",\n    created_time: \"2020-07-25T06:29:00.000Z\",\n    last_edited_time: \"2020-09-13T03:13:00.000Z\",\n    has_children: false,\n    type: \"paragraph\",\n    paragraph: { text: [ [Object] ] }\n  },\n  ...\n]\n```\n\n## Testing and run\n\n```zsh\n// run test case\n$ deno test --allow-read --allow-env --allow-net\n\n// linter\n$ deno lint --unstable\n\n// format code\n$ deno fmt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Fnotion-sdk-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeukfei02%2Fnotion-sdk-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeukfei02%2Fnotion-sdk-deno/lists"}