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

Notion API - Create a Database using Notion OAuth or API Token

Is it possible to create a new Notion Database using API (by Internal and/or External integration)? Don't see it currently in the API docs. It will be a blocker for integrations that would like to export data to notion to a database that it sets up…
ANG
  • 11
  • 1
1
vote
1 answer

Notion APIs with Google Calendar

If I search on the web something like " Notion API with Google Calendar", I only find solution related to Automate.io or Zappier. Is there a way to use these powerful APIs to integrate Notion with Google Calendar, without rely on those sites? Which…
nn65
  • 31
  • 1
  • 1
  • 7
1
vote
2 answers

How can I get the icon of a notion page?

According to the Notion Public API official documentation, I can retrieve a notion page. But this Page Object does not include the Icon of the page. The icon is usually a unicode character (like \u2708\ufe0f for ✈️). I was used to get this…
nilleb
  • 967
  • 6
  • 28
1
vote
1 answer

Translate curl call using httr in R, with multiple calls

I am trying to "translate" the curl call below, so that I can make an API call with R (using httr), with no luck. I have tried curlconverter and using the suggestion here. However, the API I want to access has multiple layers, and parenthesis are…
eflores89
  • 339
  • 2
  • 10
  • 27
1
vote
0 answers

Use code to add info to database but getting {'object':'error', 'status': 400, 'code': 'invalid_json', 'message': 'Error parsing JSON body.'}

I am doing the Getting Started Guide for Notion using Python and I have this error occurring everytime I send in a post request: {'object': 'error', 'status': 400, 'code': 'invalid_json', 'message': 'Error parsing JSON body.'} Here what I have…
1
vote
2 answers

Which block types are available in the Notion API

https://api.notion.com/v1/blocks/block_id/children returns most of the blocks on my page as type: unsupported. I can only actually see text blocks. Are any others supported?
Abhay Buch
  • 4,548
  • 1
  • 21
  • 26
0
votes
0 answers

Python Notion-client Database Updates

I have a notion database that contains a list of file directories. I am writing a script that is going to update the names of all the files in that database so it will also need to update the filepaths in the database to reflect the new…
Cool Spot
  • 31
  • 3
0
votes
0 answers

Return data limit, One pageid only return 24 id data

one pageId only return 24 but in notion i recode 28 data .. I need help!!! 1 enter image description here 2 enter image description here 3 enter image description here 4 enter image description here
0
votes
1 answer

How do you filter Notion database properties with an HTTP request (in Zapier)?

I'm trying to use an HTTP request to filter entries from a Notion database. There are currently built-in Zapier actions for creating, updating, and finding a database item, but not multiple and not with params. Currently, I can retrieve all database…
0
votes
0 answers

Type mismatch for relations. SDK types do not expect to see "has_more"

I fetch data from the notion api. I want to work with that data and have used the types "PageObjectResponse" and "PartialPageObjectResponse" from the sdk to define the responses I can get. For all the properties that are relations I get a type…
0
votes
1 answer

Notion API - Updating multiple page properties at once

Is it possible to update multiple properties with a single request? Documentation just shows a single property being changed per request Currently trying: curl https://api.notion.com/v1/pages/PageID \ -H 'Authorization: Bearer '"SHHH! Secret"'' \ …
0
votes
0 answers

How to access a database inside another database in Notion using python

I'm writing a python script that has to get data about some individuals(phone numbers) from Notion database. I did that part. The problem is that every person has its own database about the weekly progress and I have to retrieve some data from this…
sahara
  • 13
  • 3
0
votes
0 answers

Cannot create column_list within a heading_1 in Notion API (Appending a block)

I am trying to append a block to a notion page and there is a heading_1 inside that block that contains children which is a column list that consists of 3 columns, I sent a request structured as follows, heading_1 -> children -> first child is a…
Joe
  • 128
  • 6
0
votes
1 answer

Issues in creating/retrieving Database in Notion API

Issues in creating/retrieving Database in Notion API. I'm trying to Notion API for getting a Database ID for using into Stack AI. The issue when I get my databases the response is totally empty same as pages, but overall the API auth work fine…
Steven
  • 15
  • 4
0
votes
0 answers

How to read the list of pages with its names and ids in the home page (top level, workspace page) in Notion (using API or SDK)

How to read the list of pages with its names and ids in the home page (top level, workspace page) in Notion (using API or SDK) I want to read all the pages in the home page ie top level workspace page in Notion using API or SDK Top…