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
1
vote
1 answer

Notion API - Precision of last_edited_time and created_time

I wrote an integration for google tasks for my wife, but in the end realized that Notion only has timestamps that are precise to the minute. At first I was thinking timestamps were normal as here it says they can be compared to the…
1
vote
2 answers

How to update database Item using the Notion API

I am currently trying to update a value in a Notion Data base but i am only able to update the header row and not the value fields. Also when getting a specific database using its id only the header values are returned and not the values that are…
ChapN
  • 11
  • 1
  • 3
1
vote
1 answer

Notion.so question - Automatically create rows in a notion database when a row in another database is created

Is there a way to automatically create rows in a child database when a row is created in a parent database? The use case is customer onboard. We want to create a customer row and then have the onboarding steps created as rows in a child,…
BrainPermafrost
  • 644
  • 2
  • 7
  • 20
1
vote
1 answer

Add event in notion Calendar

I want add item in my calendar on Notion. I manage to add item but without date. I don't know add date to my item. Thanks async function addItem(text) { try { const response = await notion.pages.create({ parent: { database_id:…
1
vote
1 answer

Notion API - filter database by created_time?

I'm trying to filter database entries based on the creation time, but tried many different combinations of filter and I always get an error. Sorting works fine. I've also tried property: 'created_time' and date: {after:since} but it always complains…
Thiago
  • 41
  • 1
  • 6
1
vote
1 answer

Display external cover Notion API with Next.js

I'm creating my portfolio using Notion API, Next.js and Tailwind thanks to this wonderful work : https://github.com/samuelkraft/notion-blog-nextjs However, as you may know, images hosted on Notion has an expiration time. I tried to use
juki
  • 13
  • 3
1
vote
1 answer

Property "children" is missing when retrieving synced block

Notion API has supported synced_block. I am using the Notion API with Next.js. According to the docs and the changelog, the output should contain such properties. This is an example of an "original" synced_block. Note that all of the blocks…
Andrew Li
  • 117
  • 1
  • 8
1
vote
1 answer

Notion API Update page using restSharp

I try to use RestSharp to update a page on Notion buy I have an error "Error parsing JSON body" private RestRequest WebRequestWithParam(string url, Method method, string param) { var request = new RestRequest(url, method); …
Misterkik
  • 13
  • 2
1
vote
1 answer

Notion API Pagination Random Database Entry

I'm trying to retrieve a random entry from a database using the Notion API. There is a page limit on how many entries you can retrieve at once, so pagination is utilized to sift through the pages 100 entries at a time. Since there is no database…
1
vote
0 answers

Comment Section in Notion

So, I have like a little Financial Analysis blog on Notion where I share all my insights. I want to integrate a comment system for people leave their comment on my insight (no matter if they are or not registered on Notion). I want to use Angular +…
1
vote
1 answer

How can I get the ID of a option in a select field in a database?

I want to update a database with the api and I have a multi select column... I want to add an option to a row in my table, but I can't figure out to how to get the ID of the specific option. options
max
  • 11
  • 2
1
vote
1 answer

How to access the block id from the database id while using notion api?

I have the database id but I want to access a block containing a pdf. The block is there in the page and the page is present in the database. So is there a way to access the block id from the database id?
imk
  • 133
  • 6
1
vote
2 answers

How to show date with correct time zone

Is there a way for Notion to insert the dates from the API and respect the timezone set in the database? If I submit thru the API a date like 2000-01-02T00:00:00Z, it shows up with “(UTC)” at the end in Notion instead of the EST time zone that I’ve…
1
vote
1 answer

Is It Possible To Send Document/Pages/Blocks Invite Through Notion API

It's similar to giving invite to the Integration but it should be done with Notion API. I can't find any docs on Notion API.
Ajay Sharvesh
  • 192
  • 1
  • 7
1
vote
0 answers

What program/language should I use to create Notion widgets?

I'm interested in learning how to create/code embedded widgets, specifically Notion-based (the multi-purpose workspace app) widgets such as blocs.me and indify.co And I'm not quite sure what programming languages, apps, or frameworks they used. Any…
Runa
  • 27
  • 1
  • 11