Stack Overflow Community » Notion API
15 FOLLOWERS
Keep up with the latest discussions and ask your questions about using Notion API in this community. Stack Overflow is a platform that helps people find the answers they need.
Stack Overflow Community » Notion API
6d ago
Issue Description
I am experiencing issues with the Incremental Static Regeneration (ISR) feature in my Next.js application hosted on Vercel. Despite setting the revalidate option in getStaticProps, the pages do not seem to be regenerating at the specified intervals.
Details
Framework: Next.js
Hosting: Vercel
Function: getStaticProps with revalidate set to 600 seconds (10 minutes)
Expected Behavior: The pages should regenerate every 10 minutes when accessed after the set interval.
Current Behavior: Pages remain static and do not update as expected, even when accessed after the 10-minute inter ..read more
Stack Overflow Community » Notion API
1w ago
I'm currently building a Zap that sends a POST request to Notion's API, however I'm getting a 400 error stating the parent/discussion_id is undefined.
{"object":"error","status":400,"code":"validation_error","message":"body failed validation. Fix one:\nbody.parent should be defined, instead was undefined.\nbody.discussion_id should be defined, instead was undefined.","request_id":"276b4121-3ec5-4ee5-b42a-4f544bf7f151"}
I've provided a screenshot of my configuration below. I'm guessing the body isn't configured correctly, but I'm having a hard time trying to get it configured correctly.
Zapier ..read more
Stack Overflow Community » Notion API
2w ago
I'm trying to sync data between a DB (for advanced analytics) and Notion (as operational front end). Today I can grab all Notion data and push into the DB, no problem.
I would like to now push changes from the DB into Notion. I can identify the changes in the DB, and I would like to use Notion's Row UUID (captured from the above sync) to ensure I'm updating the correct row in Notion.
The first problem: I can't figure out how to structure the JSON filter object for the API call so that I'm getting back a row by the notion "ID" for that row (page?). Is it possible, or should I use that to pull b ..read more
Stack Overflow Community » Notion API
3w ago
I'm trying to get pages from my Notion database using Power Query M and am getting an error 400. Any obvious issues here?
let
url = "https://api.notion.com/v1/databases/" & notionActionsDbId & "/query",
headers = [
Accept = "application/json",
#"Content-Type" = "application/json",
Authorization = "Bearer " & notionApiKey,
#"Notion-Version" = "2022-06-28"
],
postData = Json.FromValue({
"filter" = {
"property" = "Deadline",
"date" = {
"this_week" = {}
}
}
}),
response = Web.Contents(url, [
Headers = headers,
Content ..read more
Stack Overflow Community » Notion API
1M ago
I am trying to write my own code that will manually add blocks and data to my notion workspace. I added the API token and the URL needed for it to work but I still have no success whatsoever. I'm new to python so any help will be much appreciated this is my starting code:
from notion.client import NotionClient
Notion_token = "..."
page_url="https://www.notion.so/..."
client = NotionClient(token_v2=Notion_token)
page = client.get_block(page_url)
text_block = page.children.add_new("text")
text_block.title = "Test"
If someone is willing to contact me and help me guide through it I will be ..read more
Stack Overflow Community » Notion API
1M ago
I am using the notion api integration in power automate to create a page in a notion db https://learn.microsoft.com/en-gb/connectors/notionip/#commentresponse. No matter what structure i fill in, in the properties field i get validation errors. Trying to solve the json by following up on the errors i get a conflicting next error. Seeming to think the implementation in Power Automate has a bug in there.
I tried different properties json inputs but keep getting errors. When i try the same json structure to make the call in a simple local python script it does work. Has anybody used the power aut ..read more
Stack Overflow Community » Notion API
1M ago
I'm trying to fetch data from a public page on notion. From the endpoint, POST - https://www.notion.so/api/v3/loadPageChunk
bodyData = {
"pageId": "1ecb80f4-c484-4cb8-a3bb-7f63cf252b6c",
"limit": 50,
"cursor": {
"stack": []
},
"chunkNumber": 0,
"verticalColumns": false
}
using the above as request body.
I was able to receive an output, when I hit this endpoint from a client (Thunder Client / Postman ).
But when I'm trying to do the same programmatically I'm getting a CORS error.
Note- This is not an official end point from notion.
I want to know, if output can be achieved from a clie ..read more
Stack Overflow Community » Notion API
1M ago
I have a table using the notion sales CRM template which contains a last contact date column, I want to automatically send out a reminder if the last contact date is over 60 days from today.
Is there a way to do this within notion using notions builtin reminder features with if statements or do I need to use the notion API and just pull the data and do the checks myself everyday ..read more
Stack Overflow Community » Notion API
1M ago
I'm using this task in Tasker, the android application. Api key and database_id are intentionally obfuscated here, but are correct (identical to working request on desktop) in Tasker.
A1: Input Dialog [
Titel: Add ...
Default Input:
Close After (Seconds): 30 ]
A2: HTTP Request [
Method: POST
URL: https://api.notion.com/v1/pages
Headers: Authorization: Bearer 'secret_BLABLABLA',
Content-Type: application/json,
Notion-Version: 2022-06-28
Body: {
"parent": { "database_id": "dbfc5aBLABLABLA"},
"properties ..read more
Stack Overflow Community » Notion API
2M ago
When trying to add a new entry to a database using Notion's API, I receive these errors. I am trying to send a new entry, with 2 proporties. An owner property, which is a dropdown selection of all the people in the workspace, and a property called Priority, which is a select that has a dropdown selection of a few numbers, 1 to 4.
An example of the properties
APIResponseError: body failed validation. Fix one: body.properties.Priority.type should be not present, instead was "Select". body.properties.Priority.select should be not present, instead was {"value":"1"}. body.properties.Priority.name ..read more