I’ve been trying to figure out how to make a Notion page public through their API. I know you can do it easily from the Notion dashboard, but I’m looking for a programmatic solution.
I’ve gone through the API docs, but I can’t seem to find any information on this. Has anyone managed to do this before? Is it even possible with the current API?
I’d really appreciate any insights or workarounds you might have. Thanks in advance!
As far as I know, there’s no direct way to publish a Notion page to the web using their API at the moment. I’ve worked extensively with the Notion API for various projects, and this functionality isn’t available. The public sharing feature is still tied to the manual process in the Notion interface.
However, you might be able to achieve something similar by creating a custom integration that fetches the content of your Notion page via the API and then publishes it to your own web server or a static site generator. This would require some additional work on your end, but it could give you more control over the presentation and updating process.
Keep an eye on Notion’s API updates, though. They’re constantly expanding their API capabilities, so this feature might be added in the future.
yo, i don’t think its possible with the api right now. i tried to do something similar and hit a wall. maybe u could grab the content with the api and make ur own public page? just an idea. notion might add this feature later tho, so keep checkin their updates
I’ve actually tackled this issue before in a project. While there’s no direct API method to publish a Notion page, I found a workaround that might help. I created a script that uses the Notion API to fetch page content, then automatically pushes it to a static site generator like Hugo or Jekyll. This way, the page gets ‘published’ to the web whenever it’s updated in Notion.
It’s not a perfect solution and requires some setup, but it’s been working well for my needs. You’ll need to handle things like formatting conversion and asset management, which can be tricky. Also, be mindful of rate limits if you’re updating frequently.
If you’re comfortable with a bit of coding, this approach could be a good interim solution until Notion potentially adds this feature to their API.