Get database
Get database information
- Parameters
- Advanced call ?
Function GetDatabase(Val Token, Val Base) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Base | --base | String | ✔ | Database ID |
Returns
Map Of KeyAndValue - serialized JSON response from Notion
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete structure with fields code, body, and headers |
1C:Enterprise/OneScript code example
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Base = "29d82aa7-fc4e-8173-83c3-eef87a456cc4";
Result = OPI_Notion.GetDatabase(Token, Base);
- Bash
- CMD/Bat
oint notion GetDatabase \
--token "***" \
--base "35482aa7-fc4e-81ad-8399-d128843aa3b5"
oint notion GetDatabase ^
--token "***" ^
--base "35482aa7-fc4e-81ad-8399-d128843aa3b5"
Result
{
"object": "database",
"id": "35482aa7-fc4e-81ad-8399-d128843aa3b5",
"cover": null,
"icon": null,
"created_time": "2026-05-02T11:58:00Z",
"created_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"last_edited_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"last_edited_time": "2026-05-02T11:58:00Z",
"title": [
{
"type": "text",
"text": {
"content": "TestTitle",
"link": null
},
"annotations": {
"bold": false,
"italic": false,
"strikethrough": false,
"underline": false,
"code": false,
"color": "default"
},
"plain_text": "TestTitle",
"href": null
}
],
"description": [
{
"type": "text",
"text": {
"content": "TestDescription",
"link": null
},
"annotations": {
"bold": false,
"italic": false,
"strikethrough": false,
"underline": false,
"code": false,
"color": "default"
},
"plain_text": "TestDescription",
"href": null
}
],
"is_inline": false,
"properties": {
"Status": {
"id": "VX~w",
"name": "Status",
"description": null,
"type": "select",
"select": {
"options": [
{
"id": "20404d31-2a52-4000-9c81-6c2e116969f3",
"name": "New",
"color": "green",
"description": null
},
{
"id": "3cfdc04c-56ad-4107-98a6-f45f570ca139",
"name": "InProgress",
"color": "yellow",
"description": null
},
{
"id": "f2b1e04b-d4e2-4ef4-b3b5-780db39a7025",
"name": "Remote",
"color": "red",
"description": null
}
]
}
},
"Number": {
"id": "%5Bn%7DO",
"name": "Number",
"description": null,
"type": "number",
"number": {
"format": "number"
}
},
"Active": {
"id": "%5Dt%3CP",
"name": "Active",
"description": null,
"type": "checkbox",
"checkbox": {}
},
"Description": {
"id": "%60WNH",
"name": "Description",
"description": null,
"type": "rich_text",
"rich_text": {}
},
"Image": {
"id": "f%5Byy",
"name": "Image",
"description": null,
"type": "files",
"files": {}
},
"User": {
"id": "n%7Bi%60",
"name": "User",
"description": null,
"type": "people",
"people": {}
},
"CreationDate": {
"id": "of%7DK",
"name": "CreationDate",
"description": null,
"type": "date",
"date": {}
},
"Phone": {
"id": "ywFm",
"name": "Phone",
"description": null,
"type": "phone_number",
"phone_number": {}
},
"Email": {
"id": "%7BYME",
"name": "Email",
"description": null,
"type": "rich_text",
"rich_text": {}
},
"Name": {
"id": "title",
"name": "Name",
"description": null,
"type": "title",
"title": {}
}
},
"parent": {
...