Notion is a simple note-taking app to organize your work into Table, Board, List, Calendar, Gallery, & Timeline.

In this blog we are talking about, how to access the notion data programmatically. Notion recently launched their Public APIs and now you can easily connect Notion via an API endpoint.

— With NoCodeAPI

  1. You will get formated results to use or import into other applications
  2. Bypass Notion Rate limit(3 requests per second)
  3. Secure your Notion Access Token

Let's start.

Setup Notion API

You have to first signup on NoCodeAPI, if you are new user otherwise login. Go to Marketplace, Search for Notion, and click on Activate button.

Now you will see a button Make Notion API and click on this button. Now you have to Authenticate with your Notion Account. After authentication is done you will redirect back to NoCodeAPI to give a name to this API.

Yes! now your simple and secure endpoint is ready to use.

Setup Notion API

There are following endpoints for Notion API:

  • List databases
  • Table
  • Page Content
  • Search

Before testing these endpoint you have to make sure that your notion doc is shared with NoCodeAPI integartion or not.

NoCodeAPI Integration

List Databases

Make an GET request to the route /listDatabases endpoint and you will get json list of all the database from your notion account.

List Databases

Table

Make GET request to the /database endpoint with id query param (id -> database id) and you will get key value json data to use into your projects.

Table data

Page Content

Make GET request to the /page endpoint with id query param (id -> page id) and the html data for that page.

Page HTML content

Search

To search somthing in you Notion account then you can make GET request to /search endpoint with query param.

Video Tutorial

If you love video tutorial then we also have video tutorial for you.

This is it

Now you can start experiementing with Notion API without any backend coding. I hope you liked this article. Help us write better by giving your feedback on our twitter channel at @nocodeapi.

Thank you for reading. Happy Coding !! ✌️