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
0 answers

Possible Notion API bug - Can't create Database Page with URL data

I have a Notion database that I'm trying to write to via the API. I can write to text fields, but when I try to write to a URL field, I receive the following error: { "object": "error", "status": 400, "code": "validation_error", …
jtimmins
  • 367
  • 3
  • 13
0
votes
0 answers

@notionhq/client warn: request fail code: 'object_not_found'

I am trying to integrate Deepnote and Notion. I already connected the database with the integration in Notion, I added the environment variables correctly but when executing node index.js as suggested in Notion's documentation for integrations I get…
0
votes
0 answers

ModuleNotFoundError No module named 'notionpy'

I try to sync notion database with google sheet by Visual studio code with this script 1 from __future__ import print_function 2 import pickle 3 import os.path 4 from googleapiclient.discovery import build 5 from google_auth_oauthlib.flow…
0
votes
0 answers

Query Notion Database failed with shared integration

I been working on a project in which I am trying to connect the Notion Database to my iOS app. I am having issues with sending post request to the database with shared integration token and see if I can get the responses. I keep getting 404 not…
dezzzy
  • 1
0
votes
0 answers

Notion.Net throws JsonSerializationException when retrieving block children

I need to retrieve children from a notion block (page). I use C# with Notion.Net library. There's a database, with other pages at rows. I'm trying to retrieve such page's children with await notion.Blocks.RetrieveChildrenAsync(id); It causes an…
Eugene
  • 1
0
votes
2 answers

Not able to access all results in notion DB (via python)

I have a DB with 106 entries and I can't seem to access the first 6 entries. I tried adding start_cursor and page_size keys to my request but they don't seem to have any effect. If I add them as ints the request gets rejected so I'm adding them as…
ninhenzo64
  • 702
  • 1
  • 9
  • 23
0
votes
1 answer

npm ERR! Invalid package name - When deploying Nuxt3 project in firebase hosting

Deploying my Nuxt3 project has been succeed in firebase hosting, though, after I installed @notionhq/client for using Notion API, and then $ firebase deploy, this error occured. i functions: updating Node.js 16 function server(us-central1)... Build…
0
votes
0 answers

Tag a person when a property value change on a table

I would like to know if there is any way to @ someone on a Notion table only when the tag on a Select Property change (for example tag someone when the tag move from "Currently writing" to "Writing Done"). Hope you guys understand what I'm asking…
nonomg
  • 9
  • 4
0
votes
0 answers

Problem with recursive function with Notion API

I am trying to retrieve all blocks from Notion page including children blocks of blocks. In order to do this first I created function getPageAllBlocks which takes all blocks from page without children blocks. getPageAllBlocks function is tested and…
Damian
  • 3
  • 4
0
votes
0 answers

Notion API : "API token is invalid" on production (Vercel)

I am working on a web platform using Nuxt 3 and Notion as my backend through the official API. I use it through this SDK : https://www.npmjs.com/package/@notionhq/client Everything is working great on localhost:3000 but when I deploy my website to…
0
votes
1 answer

Variables not registering in await function

What I'm trying to accomplish here is use req.body to pass the query arguments and when it hits the endpoint, the variables should be used in the create function of the Notion API. Unfortunately, the variables are registering as undefined. I figure…
pk36
  • 33
  • 5
0
votes
1 answer

Notion - Export HTML

Is it possible to receive the HTML from the notion-api. The same function as it is in the GUI? I know that you can get the Page/Block with an request and receive an JSON which you have do present on your own. Is it possible to request a HTML from…
FBattle206
  • 69
  • 6
0
votes
0 answers

Notion Py - Add To Do Block To Certain Column

I am trying to add a block to the 'To Do' column on my notion board in Notion Py. Currently, I have this. page = self.client.get_block('https://www.notion.so/xyz') newchild = page.children.add_new(TodoBlock, title="Something to get done", status='To…
zxro
  • 1
  • 1
0
votes
1 answer

Filtering Rollups In Notion Database Queries

Does anyone have the format for a filter on a Notion rollup property? I can’t get the structure right. I’m filtering a Show Original rollup of a Select property here and this isn’t working - { "filter": { "property": "Status", …
Alex S
  • 190
  • 3
  • 15
0
votes
0 answers

How to change Notion page property type?

I'm using notion-sdk-py package to interact with Notion SDK. I want to change property type multi_select -> rich_text (text) Prop is multi_select type property My code: from notion_client import Client notion =…
yEmreAk.com
  • 3,278
  • 2
  • 18
  • 37