Questions tagged [notion-api]

Questions related to the Notion API. The API is REST-based and the officially supported SDK is written in TypeScript.

The Notion API is a JSON-based REST API for working with the Notion application.

It allows you to work with and manipulate data in Databases, Pages, and Properties in your Notion workspace(s).

You can find documentation for the API on Notion's Developer Portal.

The official client is written in TypeScript.

299 questions
0
votes
2 answers

API Configuration to send data to Notion

This is my first post so please bear with me. I am trying to insert data into a notion database. The database ID I already know. I am trying to pass a task and the text as "To Do" for a Select property titled "Kanban Status". Essentially being able…
CuriousMe
  • 1
  • 3
0
votes
2 answers

How do I find the database ID of an inline Notion database

My Notion workspace has, amongst others, a page that contains multiple blocks of various types. One of these blocks is an inline database. I am trying to access this inline database through the Notion API. I can access databases that are not…
Thomas
  • 22
  • 4
0
votes
1 answer

How to connect Express JS to NotionAPI with POST and GET

I am very new to backend so I am trying to implement a simple Notion form on a Typescript website. I was following this tutorial: https://commotion.page/blog/how-to-create-a-form-app-with-the-notion-api to learn how to post from localhost:3000 to…
aaronbiscotti
  • 671
  • 1
  • 8
  • 16
0
votes
1 answer

Regex in Notion

I am new to using regex. I would like to use Notion to create a personal reference manager. My idea is to extract information from one column containing a bibtex entry to another column, that would contain, for instance, the title of the paper. My…
0
votes
1 answer

how do I remove time from calendar database in Notion API using C#?

I made a code that receives date and plan from a user and uploads the data to Notion database. I succeeded on displaying the data into the Notion calendar page, however the time keeps appearing. I wanted it to show up as "yyyy-mm-dd" but instead, it…
occosi
  • 3
  • 1
0
votes
2 answers

A relation property does not return more than 24 results

I'm experiencing an issue when making a call to query a database (v1/databases/{database_id}/query) that has a Relation property that links to another database. If there is a row in the database being queried that has more than 24 relationships,…
satnam
  • 1,457
  • 4
  • 23
  • 43
0
votes
2 answers

How do I make a formula in Notion with two conditions?

I have two select fields in Notion, "Reqs Status" and "Figma Status". I want to create a formula that says if the content of both of these fields is "Ready" that the formula field should display "Ready for Development." I tried the following: if…
0
votes
2 answers

Notion access token returns 401 unauthorized

After I got the temporary code, I send it to exchange access token, but it returns 401 unauthorized error. Here is my code: const resp = await fetch("https://api.notion.com/v1/oauth/token", { method:'POST', client_id: notionClientId,…
Nithur
  • 111
  • 2
  • 10
0
votes
1 answer

How to retrieve and create the Toggle Heading blocks?

I want to create the toggle headings 1-3 via the Notion API. However, I cannot find the distinction between normal headers and toggle headers in the API. https://developers.notion.com/reference/block#heading-one-blocks — this doc only lists "type":…
Dmitriy Popov
  • 2,150
  • 3
  • 25
  • 34
0
votes
2 answers

How to get "to_do" from a notion block using typescript?

Recently I tried final version of Notion API. Using typescript I made a retrieve block children request: (async () => { const blockId = process.env.BLOCK_ID; const response = await notion.blocks.children.list({ block_id: blockId, …
0
votes
1 answer

paste0() adds an escape forward backslash in call to API?

I need to dynamically make a call to an API using the following format: auth_secret <- paste0("Bearer ", secret) headers = c( `Authorization` = auth_secret, `Notion-Version` = '2022-02-22', `Content-Type` = 'application/json' ) …
eflores89
  • 339
  • 2
  • 10
  • 27
0
votes
0 answers

How to build an API that converts JSON into HTML

I am trying to build an API that would convert Notion's JSON page structure into HTML syntax. My goal is to make a request in the form of api.com/pageID and recieve

Title

Text

.... I figured it would be best to use React for this. I am…
0
votes
2 answers

How do I slugify the pages I pull while using the Notion API?

I want to make a blog site on my Next.js based personal website using Notion API. I must say that I am a newbie to Next.js and Notion API. I don't have a problem pulling the posts, but I want to slugify the id's in the endpoints to replace them with…
0
votes
0 answers

Problems when Itry to deploy my website on vercel

I tried to deploy my portfolio/Blog on Vercel, but for some reasons, it doesn't work. I'm relatively new with Vercel and I'm not sure what's the problem. Vercel is not really explicit about what to do with the "Error: Command "yarn run build" exited…
0
votes
1 answer

Adding multiple Notion relations in Integromat (Notion API)

Attempting to add multiple Notion relations in integromat: Desired result: Both students are added to the database Observed result: Each student is replaced with the iteration, so only the last the student is added to the database (not both) Any…
Terry Panda
  • 113
  • 4