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
1
vote
1 answer

How do I share a notion page to web using the Notion API?

While we are able to do it from notion dashboard like this: https://www.notion.so/help/public-pages-and-web-publishing#make-a-page-public But I want to make a page public using the API. I was not able to find anything in the API docs. Is it…
1
vote
1 answer

Notion.so API always throws CORS error while developing React application locally

Today I faced with an issue where any solution found in interned could not handle it. I am trying to create a blog app using amazing Notion.so note-taking app. Of course, for this stuff I need their API. Before implementing in React code I tested…
1
vote
2 answers

Creating multi-select tags via Notion API

I'm writing a programme to create a page under a Notion database using the API, but am having trouble getting the multi-select property to work This is what I have written in properties { } (lines 67-76 of the code in my index.js in my repo) …
Leosn
  • 13
  • 3
1
vote
1 answer

How to change database view to Gallery?

Using the notion API, I'm successfully able to create a database with a default Table view: await notion.databases.create({ parent: { type: "page_id", page_id: response.id }, is_inline: true, title: [ …
emmby
  • 99,783
  • 65
  • 191
  • 249
1
vote
0 answers

creating a literature database out of opac-dataset: first in calc and afterwards in notion

want to create a liteatur-database - first in calc - afterwards in notion. the data is derived form a opac-db of our university-library. the first step is to add the data into the calc. AND then into notion Belliger, Andréa: Organizing networks:…
thannen
  • 83
  • 5
1
vote
0 answers

Easy way to integrate local or SMB files

this is not exactly related to the API as it doesn't allow such complex integrations, at least for now. Even so, if someone has found a solution to integrate this in some way I would love to know and share it. I have been missing a feature for a…
Fiser
  • 25
  • 8
1
vote
1 answer

Updating multiple entries in a notion database with API

I have a notion database which I call with the API like so: url = f"https://api.notion.com/v1/databases/{NotionDB}/query" payload = {"page_size": 200} headers = { "Authorization": NotionKEY, "accept": "application/json", …
Massagran
  • 1,781
  • 1
  • 20
  • 29
1
vote
0 answers

Invalid request URL - Notion client for python

I am using notion-client, a package that lets you use the notion api in python (the link is here: https://pypi.org/project/notion-client/). My goal is to add text (e.g. "i just added this block of text, thanks to the notion api") to a to do list…
appwiz.cpl
  • 19
  • 1
1
vote
0 answers

Notion API version 2022-06-28 returns odd values

While using the newest updated notion API version, I encountered an odd problem. I retrieved data from the designated Notion database by following the steps provided on the Notion API website. And the requested JOSN data included correct column…
Andy Lee
  • 43
  • 4
1
vote
1 answer

Share page to external users via Notion api

I'm trying to use Notion api and Notion SDK for .Net to share some pages to external users by email. There is a People property in Page object. But I get an error if I try to add this property to an existing page: var page = await…
Vadim Martynov
  • 8,602
  • 5
  • 31
  • 43
1
vote
0 answers

Automate Notion Database with Apple's Shorcut App

I was wondering where I could find information on how to make a shortcut (on Apple's Shorcuts App) for editing a database on Notion (without the need to go into Notion). I saw a video recently where a new entry (shortcut asks for the input) could be…
Pablo
  • 11
  • 2
1
vote
1 answer

Python API does not return table database content

I tried following the documentation from Notion page to use Python API to retrieve a database. However, the API does not return database content. What am I missing in my codes? import requests token ='my_token' databaseId ='my_database_id' url =…
1
vote
0 answers

Notion API children nesting limit

I'm working on HTML to Notion converter that loads simple HTML content directly to Notion using API, but I have issue with the "Nested Children" limit as per documentation. It is possible to append additional child nodes using second call, but…
Borland
  • 21
  • 4
1
vote
1 answer

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: 'body failed validation. Fix one:\n' + …
1
vote
1 answer

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 getting the below error @notionhq/client warn:…
sharad regoti
  • 21
  • 1
  • 5