Notion Database
Query a public Notion database, supporting both basic information and SQL query.
Last updated
Query a public Notion database, supporting both basic information and SQL query.
Last updated
This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully.
You need to pass both the action
and other input parameters of the chosen action to your module_config
Click this url to try this widget and copy the Pro Config template.
action
query_all
Input Parameters
Name | Type | Description | Default | Required |
---|---|---|---|---|
Output Parameters
Name | Type | Description | File Type |
---|---|---|---|
Output Example
action
query_schema
Input Parameters
Output Parameters
Output Example
action
query_column
Input Parameters
Output Parameters
Output Example
action
query_sql
This action provides an advanced query with SQL. The table name is defined as DATA
Input Parameters
Output Parameters
Output Example
action
add_rows
This action provides a interface to add rows to a public notion database
Input Parameters
Output Parameters
Output Example
In notion, we can type /database
to create a database. Then click the open as full page
as below:
click the share button and copy the url to feed into your Notion Database widget:
If you want to add information to the notion, you can use theadd_rows
action. The json format should follow the format like
However, f you want to use it in pro config use values of variables, please note that the"
symbols should be escaped like
The sturcture of proconfig may looks like
Name | Type | Description | Default | Required |
---|---|---|---|---|
Name | Type | Description | File Type |
---|---|---|---|
Name | Type | Description | Default | Required |
---|---|---|---|---|
Name | Type | Description | File Type |
---|---|---|---|
Name | Type | Description | Default | Required |
---|---|---|---|---|
Name | Type | Description | File Type |
---|---|---|---|
Name | Type | Description | Default | Required |
---|---|---|---|---|
Name | Type | Description | File Type |
---|---|---|---|
url
string
URL of the public database
action
string
The action you want to perform
query_all
data
array
The returned database in list
url
string
URL of the public database
action
string
The action you want to perform
query_schema
data
array
The column names of the database
url
string
URL of the public database
action
string
The action you want to perform
query_column
column_name
string
Colume name to query
data
array
The values under a specific column
url
string
URL of the public database
action
string
The action you want to perform
query_sql
sql_str
string
SQL string to query, please use it like 'SELECT * FROM database'
SELECT * FROM DATA WHERE Age < 18
data
array
The query results of the public Notion database
url
string
URL of the public database
action
string
The action you want to perform
add_rows
rows_info
string
Rows information to add
[{}]
data
array
The query results of the public Notion database