Questions tagged [notion-api]
Questions related to the Notion API. The API is REST-based and the officially supported SDK is written in TypeScript.
258
questions
0
votes
0
answers
7
views
query pages from database in Node.js, only can't retrieving the Name field
I am trying to use Node.js to retrieve the latest updated page from a database in Notion and get the values of several attribute fields. I can retrieve data from all other attribute fields except for ...
-1
votes
0
answers
36
views
Can't read a page by Notion API
I try to get a page with Notion's API but I have an error 400 : Invalid request URL
I can't understand, I copy paste the URL from Notion's guide.
I tried with differents pages, differents urls (blocks ...
-1
votes
0
answers
19
views
How to link notion table to java application? [closed]
I wanna create a database for my java application
stuck on read data from notion table and make a validation on login system inside my java application
for example: table like this need to connect it ...
0
votes
0
answers
9
views
Is there any way to grant a Notion Connection access to all pages in a workspace?
I've begun digging into the Notion API, I created an integration and upon using their search endpoint I realized there were no results coming through. After digging a little deeper it seems their ...
0
votes
0
answers
13
views
Is there a way to change Date format by Notion API?
I'm working with notion API. Now I add a date to the title of page and want it displays as "@today" but failed. I know it can be changed by Date Format options of Notion UI to "Relative&...
0
votes
0
answers
39
views
Notion API token is invalid
A few days back, The Notion access_token suddenly stopped working for many accounts at our Integration (React + Node JS) and returning below error response in Notion REST API:
data: {
object: '...
0
votes
0
answers
16
views
How can I get a column from a related database in Notion?
I am working on a database to organize my medical calendar. I am migrating something that I already had done on Google Sheets to Notion.
But I came across the following problem: I want to create a ...
0
votes
0
answers
50
views
Looking for a generic script (to use in Google Apps Script) to export a Notion database to a Google Sheet
I'm looking to export a couple of database from Notion to a master Google Sheet.
The most simple way for me would be to use Apps Script as it has an integrated system of trigger to refresh the script ...
1
vote
0
answers
32
views
How to fix 'Make sure relevant pages are shared with integration' error when accessing Notion DB with serverless function?
I am using a serverless function deployed on Netlify to fetch data from a Notion database with an Internal Integration Token and trying to fetch the data with:
const promise = fetch('<deployed ...
0
votes
0
answers
21
views
Notion API: Set database entry's page from template
I'm hoping to write a small tool that modifies all of the entries in a database by resetting the associated page based on a template just like you would in the UI. I haven't been able to figure out ...
0
votes
0
answers
38
views
Setting a GitHub Pull Request relation through Notion's API
I'm trying to use Notion's API to automatically set a relation property to a GitHub pull requests synced database. I've made sure that my Notion integration is connected to both databases, but ...
0
votes
0
answers
26
views
How to get the field name of properties dynamically in the notion api?
Now we can get page data from notion api, and it returns a lot of fields from properties, how can we get the field names from the API ? Instead of specifying it manually.
For example, we can run code ...
0
votes
0
answers
23
views
Call external service from within Notion
I would like to call a third party API from within a Notion database. Basically I would like the request to be sent based on the update of a status, e.g. if I change the status from "ready" ...
-2
votes
1
answer
65
views
A button that can add person name in Person property in database in Notion
I need your help guys. I am in charge of building a workspace in Notion for my team where we can cast our votes on ideas. I've to use the Person property for a member to put their names on it if they ...
0
votes
0
answers
51
views
"TypeError: Cannot read properties of undefined (reading 'call')" on Nuxt3 for calling database from notion
I used notionhq for reading table data from notion. also I used server/api and generate team.js file inside this directory with this code.
import { Client } from "@notionhq/client";
export ...
0
votes
0
answers
33
views
Notion API create comment with specified created_by
I am attempting to create a comment for a Notion page object by following the documentation provided in the Notion API documentation, specifically using the following API endpoint: https://api.notion....
0
votes
0
answers
20
views
Cant get my Jason code for api work and cant figure out
I get this error when I try to create my shortcut for creating a new page in a database in Notion:
{
"status":400,
"object":"error",
"code": "...
1
vote
0
answers
37
views
Notion column_list empty columns
Building a Nextjs app with Notion as Headless CMS.
When i fetch the blocks, all of them work good except column_list, which renders the column children but not getting their content.
This is how i ...
0
votes
0
answers
35
views
Notion: auto fetch movie data using weblink
I have created a Movie Tracker as shown below:
So right now I need to manually create an entry and fill the fields. I am looking for a solution where I can provide the weblink let say imdb or ...
0
votes
1
answer
77
views
Is there a way thru Notion API to create a database entry based on a page template?
I am thinking of using Notion API to populate a database thousands of records based on an existing page template.
Please help…
I read Notion’s API documentation site but found no topic about using ...
0
votes
1
answer
120
views
Why can't I connect to a Notion page?
I am using notion-sdk-py. But when I'm trying to connect to a page, I'm getting an error:
notion_client.errors.APIResponseError: Could not find database with
ID: 9e8f0319-9daf-4a73-a900-1a2afcab9450. ...
0
votes
0
answers
89
views
Are Triggers (Webhooks) available yet in the Notion API?
I see that “webhooks” are on the list of features to be implemented next. I think that these are what I would call “triggers”, event notifications that occur when, e.g., a row/page in a Notion ...
0
votes
1
answer
102
views
How to add new or existing multi-select tags when creating a page in Notion API?
I can't figure out how to add multi-select tags when creating a page in Notion API. Single select tags are extremely easy to add:
"City": {
"select": {
"name":...
0
votes
1
answer
39
views
Is there any better way to achieve Notion oAuth in Flutter?
Notion Auth API doesn't support scheme, it only supports https:// as redirect url
In my Flutter (Android) app I am using Flutter Custom tabs and Firebase Dynamic Links for notion OAuth2 apis.
My ...
0
votes
0
answers
64
views
How to extend typescript interface in notion API?(extend type of external module in typescript)
I'm making my blog with the Notion API.
I want to bind elements with Children properties for indented properties.
However, a type error occurs because the defined Response property does not have a ...
0
votes
1
answer
145
views
Invalid Request Url error when Creating New User in Notion / Internal Server Error using scim api to create user
I'm new to notion api. I'm trying to create a test user in notion using both notion api and notion scim api but both are giving me errors. I'm doing this in postman.
Using notion api, I'm doing a post ...
0
votes
0
answers
45
views
Replace with a regex formula prop has quotation mark issue [duplicate]
On notion i am trying to create a formula. that uses replace inside of a replaceall with a regex im having an issue on putting the prop value inside the double quotes in the replace.
The code in ...
0
votes
2
answers
78
views
Notion API - set url or number property as blank or empty
I'm executing this query:
import { Client } from '@notionhq/client'
import https from 'https'
const auth = process.env.NOTION_TOKEN
const notion = new Client({
auth,
agent: new https.Agent({ ...
0
votes
0
answers
79
views
Update page does not update properties
When making the call according to the following documentation https://developers.notion.com/reference/patch-page, it does not update the properties despite returning code 200
try the following curl:
...
0
votes
0
answers
38
views
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 ...
1
vote
0
answers
66
views
How to create a new database on Notion API with the new "Status" property?
Notion API HTTP requests are not working when I add a new "Status" propoerty for a new database creation.
I've been trying for a while to figure out why, sending Notion a simple HTTP POST ...
0
votes
0
answers
39
views
Setting page icon via the API - reusing the page first block image
I am trying to use first image found on the page and set it as a page cover and page icon. The reason is because in the page I can just paste the image and create a gallery like this
, and then I ...
0
votes
0
answers
99
views
Notion OAuth using launchWebAuthFlow “Uncaught TypeError: Cannot read properties of null (reading 'postMessage’)"
I am trying to create a Chrome extension that uses the current Notion OAuth authentication.
When I pass the following authentication URL to launchWebAuthFlow, it will open with Identity api scope ...
0
votes
1
answer
64
views
Unable to access notion comments via API/python
I'm trying to read the comments on a database entry in notion but I can't figure out how I need to make the request.
import requests
_url = 'https://api.notion.com/v1/comments'
_headers = {"...
0
votes
0
answers
29
views
Notion API unreadable dictionary keys
I am getting the following properties dictionary:
value: {
id: 'e44ddbba-580a-42af-882c-****',
version: 70,
type: 'page',
properties: {
'==~K': [ [ '...
0
votes
0
answers
42
views
How to watch deleted database items in Notion API?
It's pretty easy to fecth and watch created nor updated items of a Notion Database.
But I can't see any way to watch deleted items of a database.
The fetch query doesn't return them anymore, and it's ...
0
votes
1
answer
60
views
Adding to a database creates a new database within page in notion
Here's my current code:
import json
import requests
def createPage(database_id, page_id, headers, url):
newPageData = {
"parent": {
"database_id": ...
1
vote
1
answer
217
views
Notion API from Vercel Edge Runtime responds 400
From API routes of Next.js on Vercel Edge Runtime, Notion API, eg: Retrieve a database or Query a database, responds 400 invalid_request_url as follows:
{"object":"error","...
0
votes
0
answers
71
views
API Configuration to send data to Notion (400 error)
Attempting to send data to Notion using Apple Shortcuts. Can't seem to figure out the error with the json. Can someone help me figure out the error?
{"status":400,"object":"...
0
votes
0
answers
83
views
Single select property in Notion API
How do I access single select options in using the JavaScript SDK for Notion API?
I tried the method of multi_select by WebDevSimplified, but it didn't work, don't know why.
1
vote
1
answer
59
views
How do I expose integration actions via Notion API?
I'm building a Chrome extension that will leverage the Notion API through an integration. Part of this extension requires users enter OAuth flows for different platforms.
I would like to create a menu ...
0
votes
0
answers
308
views
Upload Images to Notion Page Content-Block (Notion API, Python)
I'm working on a way to upload local images(JPEG) to a page in Notion via Notion-API with Python.
I already converted the picture in base64 and now I want to add it in a block, inside a existing page. ...
1
vote
0
answers
64
views
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?
0
votes
0
answers
118
views
How to query Notion-API database with people filter?
I read Notion-API documentation hundred times and I still can't understand how to query database by page_id or at least I think it should be a page_id.
I have two databases, let's say that db1 is ...
0
votes
1
answer
134
views
Cannot filter by status in a notion database using the notion js client
I am trying to find all tasks in my database that do not have the completed status, but I get a "Could not find property with name or id: status" error.
my notion db
(async () => {
...
0
votes
0
answers
65
views
Javascript API connection to Notion database not right
I'm not a developer but am trying to connect data entered into a Notion database with an Equals spreadsheet. I've written a preliminary connection by using help from Chat GPT 3 but something's not ...
0
votes
1
answer
397
views
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 ...
0
votes
0
answers
55
views
Is there a way to update a Notion block so it adds another elemtent inside ["paragraph"]["text"]?
I want to be able to update a Notion block in a way that it adds a piece of text when it finds a bolded word. I want it in this way:
This text is important for some reason.
The text before running ...
1
vote
0
answers
99
views
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 ...
0
votes
0
answers
173
views
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": "...