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

Python - Notion API - Can't import module

I'm trying to use Notion API for some automation processes but I am having some trouble importing the packages and I already try a lot of imports. I've this code: from notion_database.database import Database my_token = "my_token" D =…
tech_data
  • 31
  • 3
0
votes
1 answer

How to fill a column of type 'multi-select' in notion-py(Notion API)?

I am trying to create a telegram-bot that will create notes in notion, for this I use: notion-py pyTelegramBotAPI then I connected my notion by adding token_v2, and then receiving data about the note that I want to save in notion, at the end I…
0
votes
1 answer

How to get the page ID from a public notion page url without querying a database

I would like to be able to receive a public Notion page URL and return the ID of that page. I don't know if that is possible using the API. I've tried taking the end of this URL and using it to retrieve the page in…
fargoboyDC
  • 75
  • 2
  • 12
0
votes
1 answer

oauth "Invalid bot parent table"

After I select one or many pages and click on Allow Access I am getting a small Notion popup with an error "Invalid bot parent table". Steps to reproduce Go to…
0
votes
2 answers

Creating multiple pages in one request

I need to create a page for every single day in my database in notion, So can I create pages for each month in one request using notion-api?
0
votes
2 answers

Notion API pagination

I have the next query to notion. curl -X POST 'https://api.notion.com/v1/databases/%DB_ID%/query'\ -H 'Authorization: Bearer %SECRET%' \ -H 'Notion-Version: 2021-05-13' \ --data '{ "filter":{} …
Sanek Zhitnik
  • 716
  • 1
  • 10
  • 25
0
votes
1 answer

Post data to table in Notion with Apps Script

I'm testing the notion API and I would like to push data into my Notion table from Apps Script. Here the code I got so far and the error below. I assume my json structure is not right, but I can't figure out how to fix it function tryout_notion ()…
Waxim Corp
  • 657
  • 4
  • 16
0
votes
1 answer

Clear database to update content with Notion API

I have a workspace in Notion, which I use to take notes for an app I have on Github. I want to add a database which will show some download stats from different sources (incuding Github) using the beta Notion API. Right now I can add information at…
ShadowMitia
  • 2,411
  • 1
  • 19
  • 24
0
votes
1 answer

How to map between a notion user email and auth token?

I am implementing a notion integration for my Webapp, and I am using the public integration method. I can successfully implement that, after the completion of the authorization process, I am getting a data object as a response from notion server…
aji13
  • 75
  • 8
0
votes
1 answer

Writing to Email column using Notion-API

I have been trying to write to an Email column in my database but I keep getting this error. The column has a property type of email Email has a value that does not match its property type: email. I'm making the request using the Notion Api through…
inezabonte
  • 205
  • 2
  • 10
0
votes
1 answer

Getting an error `Missing or invalid redirect_uri` while using notion API for authorization

I am trying to use public integration with the Notion API and was strictly following along the documention. Link: https://developers.notion.com/docs/authorization#authorizing-public-integrations but with the following index.html I am getting the…
aji13
  • 75
  • 8
0
votes
1 answer

Notion API paginated endpoint returning lists of varying lengths

I'm running into a puzzling Notion API issue. I have implemented pagination as described here in the developer docs. When I recursively hit the Search API endpoint to return all my pages, the results seem to have random slight variations. For…
Daniel Molitor
  • 644
  • 4
  • 11
0
votes
1 answer

How to add an expression as a superscript in notion?

I am new to notion I have been previously using OneNote. Can anyone please tell how you write expressions as a superscript in notion? I understand how to write superscripts in notion which is basically /inline equation and then just c^x But what if…
0
votes
1 answer

Is there a condition to determine if the Notion application is open?

Given that the Notion API just came out, is there now a possibility of checking whether the Notion program itself is open or not as a trigger?
0
votes
1 answer

Is there a way to tell if a user is looking at a page?

Not sure if there is a reference to where a person is looking at in the API, but I would like to be able to trigger an event if my screen is on a subpage within Notion. I would figure that your account could reference the page it's loaded on but…
1 2 3
19
20