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

Search query doesn't return all the databases

I'm having problem to get all the Database entries when I call the API call. When I call it just return me a few databases. async function getDatabases(item){ if(item.object == 'database') console.log(item) } async function…
1
vote
1 answer

How do delete a row in a table from Notion?

I'm using Notion Tables (one type of their databases). I'm trying to wrap my mental model around how they interact with data - is a row in a table a "block" or a page or something else? Here's all the info from the documentation:…
aronchick
  • 6,786
  • 9
  • 48
  • 75
1
vote
2 answers

Error 400 when connecting Notion API to Power BI

I'm trying to connect the Notion API to Power BI using the web connector in Power BI. Here is a screenshot of the setup and the error that I'm getting.. Does anyone have any idea why this is happening?
Zach H
  • 130
  • 1
  • 14
1
vote
0 answers

Find page by title notion databse - python

I'm trying to update the page covers of pages in a database. I've tried using notion/search to look for pages but I end up with all pages in the database instead of the typed result. Currently, I'm trying to query a database with filters for…
1
vote
0 answers

How to use typescript in Notion API ^0.4.0

I noticed they took away the api-types file from the official notion api. I'm curious how to use type checking now since these no longer exist? thanks
1
vote
2 answers

Encountered error while updating pages in a database with Notion API

I recently made an integration between Todoist and Notion. The main idea is that every time I do something with a task on Todoist, the changes are reflected on Notion. I'm encountering a problem with the notion.pages.update() function: every time I…
1
vote
0 answers

Creating a subpage through Notion API

I am trying to create a subpage in a page using Notion-api In the [update block documentation][1] it asks us to use update page end point. But it is not clear how to use it to add a sub-page within a page. Any help will be great. Thanks! [1]:…
1
vote
0 answers

Possible to use the Notion API to create Twitter embeds on a page, from a csv list?

I have a .csv file with a column of many links to Twitter, like…
P A N
  • 5,642
  • 15
  • 52
  • 103
1
vote
3 answers

Getting the page title from a database query in Notion API?

Both the index and key for each property_name from a database query are dynamic. The only constant is the type: "title" for the title property. The title itself is also nested in an array. I've marked it as I NEED THIS in the schema below.…
Eli
  • 11
  • 3
1
vote
0 answers

Trying to display Dividends with yfinance & notion-py in a notion table

I am trying to display dividends with yfinance inside a notion table row with notion-py here is the code I am using from notion.client import NotionClient from datetime import datetime import pandas as pd client =…
AJJ
  • 11
  • 1
1
vote
1 answer

Notion widget by Scriptable

I've tried to create Scriptable widget using Notion API. I need to get count of page inside DB. So, I used guide to create token and share DB, and by this guide I create cURL request: curl 'https://api.notion.com/v1/databases/%DB_ID%/query' \ -H…
Sanek Zhitnik
  • 716
  • 1
  • 10
  • 25
1
vote
1 answer

Python, Notion.Get relational tables data

I try to get notion table data, but the relational table returns only the ID of the page, without the actual data. How to get data using relation ID? databaseId ='my_database_id' headers = { "Authorization": "Bearer " + token, …
1
vote
2 answers

How do I add and/or modify a database schema?

How do I add and/or modify a database schema? Things that seem to be possible; Adding a subpage to a page. Adding a subpage to a database. Modify the property values. Though in each of these scenarios, the database schema has to stay the same.…
silvergasp
  • 1,517
  • 12
  • 23
1
vote
1 answer

Notion API: Is there a way to get the number of child pages with a user mentioned in the "people" property?

I'm trying to create some Notion API integrations to help my team forecast availability for staffing. I am writing a function that should count all the times a particular user is mentioned in the people property of a database child page by using the…
Devin Halladay
  • 119
  • 1
  • 8
1
vote
1 answer

making POST request to Notion API in Unity

I'm trying to make POST request in Unity to Notion API. I have a class with all of the properties which I created based on the Notion requirements. [Serializable] public class Parent { public string Database_id { get; set; } …