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
2
votes
2 answers

Notion API Filter query construction

I can not get this working but need to apply 2 filters in my query - the and (probably core filter) I can not get to work. Included picture is of the working filter in the Notion. I am using Python and various Notion packages and straight requests…
Marc
  • 1,895
  • 18
  • 25
2
votes
0 answers

Can I find when a page is last viewed in the Notion api?

I am wondering if there is a possibility/workaround to find when a page is last viewed. I have looked at the reference and have not been able to find it; only the last edited date. I have also looked at users, to see if they have some form of last…
KKie
  • 21
  • 2
2
votes
0 answers

Is it possible to move a page from one parent to another using Notion API client?

I can't find anything in the Notion API documentation that would allow me to move a page, block, or database. Is this possible?
Caleb Bolton
  • 89
  • 1
  • 7
2
votes
1 answer

Notion API Return 404 "code":"object_not_found"

Why my Notion API return a 404 status, even though i already connect my Database with my Notion Integration, where am i getting this wrong? Here's my request via Postman: request to notion api using database_id And here's my database…
2
votes
0 answers

How to create a linked database via Notion API?

Manually, I can create a linked database (see the attached image) and then put it under a page, in notion. So far, so good. On the attached image, you can see the arrow on the left and it shows that this is a linked database. When I fetch that block…
ndemir
  • 1,881
  • 3
  • 19
  • 25
2
votes
1 answer

How can I connect the notion integration to the specific notion page?

I'm using a free-version notion and created my own integration in this page. The integration targets the correct workspace and so, I wanted to connect the integration to the page in the workspace. This readmesays my integration can be connected to…
Mairo
  • 21
  • 2
2
votes
0 answers

Rollup with show_original function using Notion API

I'm trying to retrieve a rollup property value that's of type "select", like so: const rollupName = 'foo'; const prop = await notion.pages.properties.retrieve({ page_id: page.id, property_id: page.properties[rollupName].id, }); page.properties…
Mira
  • 21
  • 3
2
votes
1 answer

How to add blocks to an already existing notion page

I'm currently working on a little project where a script adds recipes into a notion database. My current problem is that I can't find a way (I found nothing i the API Docs) to add blocks (like checkboxes or headings) to the content of a page after…
Broump
  • 303
  • 3
  • 9
2
votes
1 answer

How do I find Notion Users Ids?

To be able to assign a person property to a person through the api you need their Notion Id. How do I go about getting that info? I did a Google search and only 1 link appeared and I'm having issues navigating the steps. It has you using the Notion…
kslifter
  • 23
  • 3
2
votes
0 answers

Retrieve only metadata of pages of database

I am trying to implement a feature in my app (See https://github.com/maxbethke/me/issues/9), for which I want to only query metadata from pages in a database, which include certain properties and the page id. I am doing this in hopes to reduce…
DumperJumper
  • 75
  • 11
2
votes
0 answers

Notion API - Reminders

Is it possible to modify a date property to set a reminder trhough the API? I am automatically modifying the date value with my code, and I would like to set a reminder for that date as well.
2
votes
0 answers

ValueError: Client secrets must be for a web or installed app - Notion API to Google sheets

I'm running into this error no matter what I try. I am very much a newbie and just want to connect google sheets to notion. If anyone can help, I'd greatly appreciate it. I'll include the code below. Occluded data is occluded because…
Hugo
  • 17
  • 3
2
votes
1 answer

Notion API: Reminders

Is there an API which exposes the reminders added to pages? I would like to sync Notion reminders to my central reminder application, therefore, I'm not managing reminders in multiple places and can have one view of all my reminders.
gmatthew
  • 56
  • 5
2
votes
1 answer

Notion APi HTTPError: 403 Client Error: Forbidden for url: https://www.notion.so/api/v3/getUploadFileUrl

I am currently trying to informally connect to the Notion homepage to upload an image. The reason for using informal API is that it does not allow us to upload images from our local folders. With that said, I successfully connected to my homepage…
Andy Lee
  • 43
  • 4
2
votes
2 answers

How do I retrieve a site using notions api?

I am currently trying to download a site/page using notions API. I shared the page and tried this: (async () => { const pageId = 'abcd-editorial-efe.notion.site/Sites-abc123'; const response = await notion.pages.retrieve({ page_id:…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
1 2
3
19 20