Questions tagged [notion-api]
The notion-api tag has no usage guidance.
154
questions
0
votes
0
answers
6
views
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 ...
0
votes
0
answers
11
views
Does the response from Notion OAuth contain page id?
In the OAuth process to request authentication from the user(the user is directed to the URL as required by Notion API), there is an authentication code added directly to the redirected URL(/books in ...
0
votes
2
answers
15
views
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 ...
-1
votes
0
answers
13
views
Cannot access the Notion API from a React application [duplicate]
I am trying to build a Chrome extension with React that does not require a backend in order to run and uses the Notion API to access users' workspaces. I tried to fetch data from the API but I still ...
0
votes
1
answer
33
views
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", {...
0
votes
0
answers
22
views
iframe Geography of users on DataStudio
Is there by any chance the possibility of making an iframe of "Geography of users" on DataStudio for Notion? We would love to make an interactive map on this file. For now, it's been ...
0
votes
0
answers
29
views
How to filter by slug in notion api
I am trying to get a page from a database in notion through the slug, but when filtering it gives me an error
the error is:
@notionhq/client warn: request fail {
code: 'validation_error',
message: ...
2
votes
1
answer
88
views
Facing Notion API problem while trying updating databases properties: can't update checkbox
with Notion API and node.js, I'm trying to update database properties, especially the checkbox property, for my routine ToDo tasks checker.
But I couldn't find the correct way to do so. Error messages ...
-1
votes
1
answer
57
views
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#...
1
vote
1
answer
70
views
Notion Acess Token Expired, API token is invalid Error
I have created a notion public integration to import some data from the telegram bot.
After the initial oauth token exchange, I am able to perform CRUD operation on notion.
But after 2 days, I am ...
-2
votes
0
answers
18
views
How to setup database connection between notion and java desktop application?
I already make an account in Notion website and need full steps to stup database connection between notion and my java desktop application.
0
votes
0
answers
43
views
Does the Notion API allow a user to enable link sharing for a specific page?
I would like to automatically allow access (without search engine listing) to all notion pages in a data base which bear a certain tag and output the a list of the pages with their respective links. ...
0
votes
0
answers
64
views
Notion API not showing changed results
Is there any problem with the Notion API or is it failing?
I wanted to try some code that I programmed few weeks ago and it worked well and now it does not work.
Also, it does not recognize any ...
0
votes
1
answer
47
views
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 ...
1
vote
1
answer
67
views
Search request always return an empty results
I'm trying to search into my workspace to find a page with the mention "Nora" inside the title. Here is the Python code I'm working with:
data = {
'query': 'Nora',
'page_size': 10
}
...
0
votes
0
answers
155
views
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 ...
0
votes
1
answer
83
views
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 ...
0
votes
1
answer
82
views
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....
0
votes
1
answer
42
views
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` = ...
0
votes
1
answer
39
views
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....
0
votes
0
answers
48
views
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 <h1>Title</h1><p>...
-1
votes
2
answers
2k
views
How to solve TypeError: Cannot read properties of undefined (reading 'map') in Next.js?
I am a beginner who wants to build a blog using Notion API, Next.js and Tailwind CSS. I learned the following code from here: https://egghead.io/lessons/next-js-request-notion-database-data-from-the-...
0
votes
0
answers
102
views
How to add inline database with notion api?
I want to use notion api to add inline database to a page, but i get this error and i don't know what's that meaning?
2022/02/20 15:11:39 Error: can't append database to block [Unexpected error ...
0
votes
0
answers
92
views
Notion API call in Nextjs app hangs when deployed on Vercel
I have an API that adds customer data to our CRM system and also some information to our Notion board.
It involves three external API calls.
Two to our CRM system, and one to our Notion board.
The ...
0
votes
0
answers
37
views
How can I put the text in Body column inside the page at once?
Sample Image is notion table with different columns I want to put the headline column 'text' inside the body of the page automatically.
0
votes
0
answers
45
views
How can I use Notion api to Make a Self Prioritizing To-Do List?
I just want to use the Formula tool to make the cell read either
:Today, Tomorrow, or This Month
so then when I input due dates the table will automatically organize the things I need to do.
0
votes
2
answers
155
views
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 ...
-2
votes
1
answer
69
views
GET read info for: new users, last edited database, most viewed page, & more
can I use the API to GET read info on several different stats of my Notion workspace?
A few examples of stats I'd like to see:
Last edited page
Most viewed page
Last active user
New users
Last edited ...
0
votes
1
answer
311
views
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'...
0
votes
0
answers
391
views
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 ...
0
votes
1
answer
194
views
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 ...
0
votes
0
answers
54
views
How to sync bank account balance to Notion Table / Database? [European / Poland / mbank]
PSD2 / API / NOTION / NOCODE / Integromat related question. Bank Account Balance -> Notion Database
1
vote
1
answer
50
views
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 "...
1
vote
0
answers
224
views
How to format the notion import markdown code
I use typora to write markdown documents, but I want to import to notion for viewing anywhere, but during the import process, there are problems with missing pictures and wrong code formatting
The ...
0
votes
0
answers
320
views
Find all "databases" using the Notion API in Node
I'm trying to get a list of all the databases to which my app has access in the Notion API. All I actually need is at most this
{
object: 'list',
results: [
{
object: 'block',
id: '...
1
vote
1
answer
261
views
Rollup of rollup in Notion API
I have rollup from one database to another and I need to have a number from that rollup in the third database. Since Notion doesn't support rollup to rollup, I've created a formula that simply refers ...
1
vote
1
answer
135
views
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)
{
...
0
votes
0
answers
93
views
The value fetched for rollup properties in Notion seems wrong. Am I missing something, or is it not working?
After using Notion API for a couple of months now, one thing seems off with relation-type-properties related query results. I manage to find a workaround most of the time, but there isn't any this ...
0
votes
1
answer
147
views
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 ...
1
vote
1
answer
585
views
Validation error while updating pages in notion by using the notion javascript SDK
Here's the error:
Client warn: request fail {
code: 'validation_error',
message: 'body failed validation. Fix one: body.properties.body.id should be defined, instead was undefined.
body.properties....
1
vote
1
answer
471
views
Creating a child database in a new page in Notion API
I'm able to create a new page using the Notion API, and as part of that page I want to create & include a database table. I'm able to create the page successfully, but when trying to create the ...
0
votes
0
answers
52
views
TS Boolean won't negate on first function call, but consecutive calls work
I have a VSCode Extension that displays database entries for bugs in a tree view. One of the properties of each bug is a bool that tells each dev if it has been confirmed/reproduced (highlighted blue ...
0
votes
1
answer
159
views
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 ...
1
vote
0
answers
120
views
Extract HTML from page child blocks
I'm relatively new to the notion API - as far as I can tell there's no straightforward way to do what I want, but thought I'd ask in case I've missed something.
As the question title suggests, I want ...
0
votes
1
answer
446
views
Unable to filter, paginate, or add any data to Notion API query from python code
I've been trying to query the Notion API using Python, and as I have more than 100 results, I need to either filter them down or be able to paginate. I tried different variants of the following code ...
0
votes
0
answers
302
views
Notion API Error 400 invalid_json, Where am I doing wrong?
I've been trying to understand Notion APIs for a week now. I am currently trying to do authorization. But I couldn't find where I went wrong.
https://developers.notion.com/docs/authorization
Error:
...
0
votes
0
answers
203
views
I am not able to use the notion api as I am getting the following error and so I don't able to make changes in the database of notion
Error:
code: 'validation_error',
message: 'undefined is not a property that exists.'
}
/Users/sukhmansinghsandhu/Desktop/Notionfinalapp/node_modules/@notionhq/client/build/src/errors.js:163
...
1
vote
0
answers
128
views
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 ...
0
votes
0
answers
20
views
Notion API: OAuth authentication with mobile app
I'd like to consume the Notion API from a mobile app that I am developing. When trying to set up the redirect URI, it doesn't seem possible to use a redirect URI that does not use the https scheme. ...
0
votes
1
answer
159
views
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