-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are there plans to add a renderer for the official Notion API? #83
Comments
Also interested in this. |
We also had the same issue. We instead built our own wrapper on top of the Official Notion API. Unlike react-notion, however, it transforms Notion pages to Markdown and also fetches the page media to be served with our static assets. We then run the docusaurus static site generator to render our website. |
Looks like the time has come for this – would love to depend on the more stable Notion API. Notion added a lot of the missing blocks in the recent month to their API. We will start to explore this topic. |
We already found something in the official API that doesn't allow us to port react-notion as it is now. For example:
This means: 4 requests to Notion API for a single multi column page. We try to reach out to the Notion team to talk about this. It would be great if they could allow us to fetch all blocks recursively within one request. |
Any updates on this? Is there any planned action to support the official Notion API given those limitations? |
notion-compat may be useful here. It provides a best-effort conversion from Notion's official API to their unofficial API, which react-notion and react-notion-x both use. As Tobias mentioned, the performance is quite poor, though. I also tried to give a concrete, block-by-block comparison to show where the official API is missing information that would be necessary to render notion content faithfully. |
Ooh thanks for pointing that out.. I'll check it out. |
Also, I'm curious to get people's opinion on the following:
We originally used notion-api-worker as our CMS backend, now we're thinking of switching to the official notion API since
notion-api-worker
says:But notion-api-worker has more feature support than the official API (though perhaps more features will be launched in the future).
So should we continue using the potentially unstable Notion API which has more features?
Or switch to the official API which has fewer features but is (potentially) more stable?
My current thought is we continue using notion-api-worker until the official Notion API has more features or if Notion decided to make it harder to use their private API.
The text was updated successfully, but these errors were encountered: