{"id":13907804,"url":"https://github.com/dragonman225/notionapi-agent","last_synced_at":"2025-08-02T15:08:12.776Z","repository":{"id":57312105,"uuid":"188891977","full_name":"dragonman225/notionapi-agent","owner":"dragonman225","description":"Unofficial Node.js API client for Notion.so","archived":false,"fork":false,"pushed_at":"2021-10-06T08:57:39.000Z","size":510,"stargazers_count":112,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-15T09:31:32.401Z","etag":null,"topics":["api","api-client","api-wrapper","javascript","nodejs","notion","typescript"],"latest_commit_sha":null,"homepage":"https://notionapi.netlify.app/globals.html","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/dragonman225.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-27T18:31:48.000Z","updated_at":"2025-06-23T05:56:52.000Z","dependencies_parsed_at":"2022-09-16T16:53:25.900Z","dependency_job_id":null,"html_url":"https://github.com/dragonman225/notionapi-agent","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/dragonman225/notionapi-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fnotionapi-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fnotionapi-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fnotionapi-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fnotionapi-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dragonman225","download_url":"https://codeload.github.com/dragonman225/notionapi-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragonman225%2Fnotionapi-agent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268408195,"owners_count":24245576,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-wrapper","javascript","nodejs","notion","typescript"],"created_at":"2024-08-06T23:02:11.139Z","updated_at":"2025-08-02T15:08:12.705Z","avatar_url":"https://github.com/dragonman225.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","📦 Legacy \u0026 Inactive Projects","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# notionapi-agent\n\n![version](https://img.shields.io/npm/v/notionapi-agent.svg?style=flat-square\u0026color=007acc\u0026label=version) ![language](https://img.shields.io/badge/language-typescript-blue.svg?style=flat-square) ![license](https://img.shields.io/github/license/dragonman225/notionapi-agent.svg?style=flat-square\u0026label=license\u0026color=08CE5D)\n\nUnofficial Node.js API client for [Notion.so](https://www.notion.so).\n\n\u003e ⚠ If you need to use Notion's API in production, I recommend waiting for their official release.\n\n* [CHANGELOG](CHANGELOG.md)\n* [API Documentation](https://notionapi.netlify.com/globals.html)\n\n## Installation\n\n```bash\nnpm install notionapi-agent\n```\n\n## Getting Started\n\n### Basic Usage\n\n[![Try notionapi-agent on RunKit](https://badge.runkitcdn.com/notionapi-agent.svg)](https://npm.runkit.com/notionapi-agent)\n\n```typescript\nconst { createAgent } = require(\"notionapi-agent\")\n\nconst agent = createAgent()\n\nasync function main() {\n\n  const pageId = \"181e961a-eb5c-4ee6-9153-07c0dfd5156d\"\n\n  try {\n    const result = await agent.getRecordValues({\n      requests: [{ id: pageId, table: \"block\" }]\n    })\n    console.log(result)\n  } catch (error) {\n    console.log(error)\n  }\n\n}\n\nmain()\n```\n\nThe `result` is always the response of a successful request (HTTP status `200 OK`). If Notion responds with other status code or the request failed, an error is thrown.\n\n### Advanced Usage\n\nThere is an [example](documentation/examples/download-page.ts) to demonstrate how to download all blocks of a page.\n\nTo access private content, one need the [token](documentation/get-token/get-token.md).\n\n## Development\n\n### Project Structure\n\n![project structure graph](documentation/dependency-graph.svg)\n\n### Documentation\n\nUse [TypeStrong/typedoc](https://github.com/TypeStrong/typedoc) to generate reference documentation. It needs to be installed globally.\n\n```bash\nnpm i -g typedoc\n```\n\n### Packaging\n\nUse [rollup/rollup](https://github.com/rollup/rollup) to package multiple source files into one `cjs` module (`dist/index.js`) and one `esm` module (`dist/index.esm.js`). Use `tsc --emitDeclarationOnly` to generate TypeScript declaration files.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragonman225%2Fnotionapi-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdragonman225%2Fnotionapi-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragonman225%2Fnotionapi-agent/lists"}