-
Notifications
You must be signed in to change notification settings - Fork 1
Get NotionPage
Category: Commands external help file: Notion-help.xml Module Name: Notion online version: https://developers.notion.com/reference/retrieve-a-page-property-item schema: 2.0.0 Type: Command
Retrieves properties of a Notion page using the Notion API.
Get-NotionPage -PageId <String> [-maxDepth <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
The `Get-NotionPage` function retrieves a specified Notion page by making a GET request to the Notion API's `/v1/pages/{page_id}` endpoint, utilizing the `Invoke-NotionApiCall` function.
$pageId = "d5f1d1a5-7b16-4c2a-a2a6-7d43574a1787"
Get-NotionPage -PageId $pageId
This example retrieves the page with the specified ID.
The maximum depth of subblocks objects. The default is 5.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 5
Accept pipeline input: False
Accept wildcard characters: FalseThe unique identifier of the Notion page. This is a required parameter.
Type: String
Parameter Sets: (All)
Aliases: Id
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
-
Ensure that the Notion API integration has access to the page.
-
The API token and version are handled within the `Invoke-NotionApiCall` function.
-
If you need the page content use [Get-NotionPageChildren](./Get-NotionPageChildren.ps1) to get the children of the page.
https://developers.notion.com/reference/retrieve-a-page-property-item
Home
Module-FAQ
SetupOfIntegration
Commands
- Connect-Notion
- ConvertTo-NotionObject
- Disconnect-Notion
- Invoke-NotionApiCall
- Block
- Add-NotionBlockToPage
- Get-NotionBlock
- Get-NotionBlockChildren
- New-NotionBlock
- Remove-NotionBlock
- Update-NotionBlock
- _RichText
- Bookmark
- Breadcrumb
- BulletedListItem
- Callout
- ChildDatabase
- Code
- Column
- ColumnList
- Divider
- Embed
- Equation
- File
- Heading
- Image
- LinkPreview
- NumberedListItem
- Paragraph
- Quote
- Synced
- Table
- TableOfContents
- TableRow
- ToDo
- Toggle
- Video
- Database
- Emoji
- File
- Page
- Parent
- User
Classes
- Block
- Comment
- Database
- Database
- DatabaseProperties
- Emoji
- File
- General
- Page
- page
- page_reference
- PageProperties
- Parent
- Unfurl attribute
- User
Enums
- notion_color
- icontype
- Block
- blocktype
- RichText
- rich_text_type
- rich_text_mention_type
- Type
- MentionType
- DatabaseProperties
- File
- PageProperties
- Parent
- Properties
- User