{"id":17943318,"url":"https://github.com/raminhuk/worker-api-notion","last_synced_at":"2026-04-16T17:43:50.735Z","repository":{"id":259997647,"uuid":"880012299","full_name":"raminhuk/worker-api-notion","owner":"raminhuk","description":"A serverless wrapper for the private Notion API. It provides fast and easy access to your Notion content. Ideal to make Notion your CMS.","archived":false,"fork":false,"pushed_at":"2024-10-30T02:37:54.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T13:46:40.142Z","etag":null,"topics":["cloudflare-workers","notion","notion-api","notion-database","worker","workers"],"latest_commit_sha":null,"homepage":"https://worker-notion.fabioraminhuk.workers.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raminhuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-29T00:32:13.000Z","updated_at":"2024-10-30T02:37:57.000Z","dependencies_parsed_at":"2025-02-09T02:41:43.832Z","dependency_job_id":"1fc9772a-73a4-4dbc-b142-f6a3bf06e026","html_url":"https://github.com/raminhuk/worker-api-notion","commit_stats":null,"previous_names":["raminhuk/worker-api-notion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raminhuk/worker-api-notion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raminhuk%2Fworker-api-notion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raminhuk%2Fworker-api-notion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raminhuk%2Fworker-api-notion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raminhuk%2Fworker-api-notion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raminhuk","download_url":"https://codeload.github.com/raminhuk/worker-api-notion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raminhuk%2Fworker-api-notion/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265866108,"owners_count":23840936,"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":["cloudflare-workers","notion","notion-api","notion-database","worker","workers"],"created_at":"2024-10-29T04:04:57.892Z","updated_at":"2026-04-16T17:43:45.706Z","avatar_url":"https://github.com/raminhuk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Notion API Worker - UPDATED](https://user-images.githubusercontent.com/1440854/79893752-cc448680-8404-11ea-8d19-e0308eb32028.png)\n![API Version](https://badgen.net/badge/API%20Version/v1.1/green)\n\nA **serverless wrapper** for the private Notion API. It provides fast and easy access to your Notion content.\nIdeal to make Notion your CMS.\n\nWe provide a hosted version of this project on [`https://worker-notion.fabioraminhuk.workers.dev`](https://worker-notion.fabioraminhuk.workers.dev/). You can also [host it yourself](https://workers.cloudflare.com/). Cloudflare offers a generous free plan with up to 100,000 request per day.\n\n_Use with caution. This is based on the private Notion API. We can not gurantee it will stay stable._\n\n## Features\n\n🍭 **Easy to use** – Receive Notion data with a single GET request\n\n🗄 **Table Access** – Get structured data from tables \u0026 databases\n\n✨ **Blazing Fast** – Built-in [SWR](https://www.google.com/search?q=stale+while+revalidate) caching for instant results\n\n🛫 **CORS Friendly** – Access your data where you need it\n\n## Use Cases\n\n- Use it as data-source for blogs and documentation. Create a table with pages and additional metadata. Query the `/table` endpoints everytime you want to render a list of all pages.\n\n- Get data of specific pages, which can be rendered with [`react-notion`](https://github.com/splitbee/react-notion)\n\n## Endpoints\n\n### Load page data\n\n`/v1/page/\u003cPAGE_ID\u003e`\n\nExample ([Source Notion Page](https://www.notion.so/react-notion-example-2e22de6b770e4166be301490f6ffd420))\n\n[`https://worker-notion.fabioraminhuk.workers.dev/v1/page/2e22de6b770e4166be301490f6ffd420`](https://worker-notion.fabioraminhuk.workers.dev/v1/page/2e22de6b770e4166be301490f6ffd420)\n\nReturns all block data for a given page.\nFor example, you can render this data with [`react-notion`](https://github.com/splitbee/react-notion).\n\n### Load data from table\n\n`/v1/table/\u003cPAGE_ID\u003e`\n\nExample ([Source Notion Page](https://www.notion.so/splitbee/20720198ca7a4e1b92af0a007d3b45a4?v=4206debfc84541d7b4503ebc838fdf1e))\n\n[`https://worker-notion.fabioraminhuk.workers.dev/v1/table/20720198ca7a4e1b92af0a007d3b45a4`](https://worker-notion.fabioraminhuk.workers.dev/v1/table/20720198ca7a4e1b92af0a007d3b45a4)\n\n## Authentication for private pages\n\nAll public pages can be accessed without authorization. If you want to fetch private pages there are two options.\n\n- The recommended way is to host your own worker with the `NOTION_TOKEN` environment variable set. You can find more information in the [Cloudflare Workers documentation](https://developers.cloudflare.com/workers/reference/apis/environment-variables/).\n- Alternatively you can set the `Authorization: Bearer \u003cNOTION_TOKEN\u003e` header to authorize your requests.\n\n### Receiving the token\n\nTo obtain your token, login to Notion and open your DevTools and find your cookies. There should be a cookie called `token_v2`, which is used for the authorization.\n\n## Credits\n\n- [Timo Lins](https://twitter.com/timolins) – Idea, Documentation\n- [Tobias Lins](https://twitter.com/linstobias) – Code\n- [Travis Fischer](https://twitter.com/transitive_bs) – Code\n- [Fabio Raminhuk](https://x.com/fabio_rmk) - Code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framinhuk%2Fworker-api-notion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framinhuk%2Fworker-api-notion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framinhuk%2Fworker-api-notion/lists"}