Welcome to NotiRest. This guide will get you from zero to a working API endpoint in under 5 minutes.
Sign up at notirest.io and verify your email address.
Go to your Notion workspace. Open the database you want to expose as an API. Click the ••• menu in the top right corner. Click Add connections and search for NotiRest. Click Confirm to grant access.
In your NotiRest dashboard, go to Endpoints and click New Connection. Paste your Notion Database ID (found in the database URL) and give your endpoint a label.
Go to API Keys and click Generate Key. Label it (e.g. Production) and save it somewhere safe. You will only see it once.
That's it. You now have a working REST API powered by your Notion database.
fetch('https://notirest.io/api/your-endpoint', {
headers: {
'x-api-key': 'nrest_your_api_key_here'
}
})
.then(res => res.json())
.then(data => console.log(data))