Skip to main content

Get page

Gets information about the page by ID

Function GetPage(Val Token, Val Page) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Page--pageStringPage ID

Returns: Map Of KeyAndValue - serialized JSON response from Notion

1C:Enterprise/OneScript code example
    Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Page = "2c582aa7-fc4e-819a-bfdb-da7ae78c68f5";

Result = OPI_Notion.GetPage(Token, Page);
    oint notion GetPage \
--token "***" \
--page "2c582aa7-fc4e-8128-9bb6-c575fc3c58de"
Result
{
"object": "page",
"id": "2c582aa7-fc4e-8128-9bb6-c575fc3c58de",
"created_time": "2025-12-10T19:36:00Z",
"last_edited_time": "2025-12-10T19:36:00Z",
"created_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"last_edited_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"cover": null,
"icon": null,
"parent": {
"type": "page_id",
"page_id": "5dd94c34-fab0-4bff-986b-7511c0779f77"
},
"archived": false,
"in_trash": false,
"is_locked": false,
"properties": {
"title": {
"id": "title",
"type": "title",
"title": [
{
"type": "text",
"text": {
"content": "title",
"link": null
},
"annotations": {
"bold": false,
"italic": false,
"strikethrough": false,
"underline": false,
"code": false,
"color": "default"
},
"plain_text": "title",
"href": null
}
]
}
},
"url": "https://www.notion.so/title-2c582aa7fc4e81289bb6c575fc3c58de",
"public_url": null,
"request_id": "c6af91a7-8b6f-42cd-9f09-bfe1b65f053b"
}