Notion Pages
Fetch Pages
Base Information of Pages
# Get Page
$page = Notion::pages()->find($pageId);
# Get Page Title
$page->getTitle();
# Get page icon and icon-type (emoji, file, external)
$database->getIcon();
$database->getIconType();
# Get page cover and cover-type (file, external)
$database->getCover();
$database->getCoverType();
# Get Notion URL of Page
$page->getUrl();
Get Page Content
In order to fetch page content, the block children of the Notion Page have to be retrieved.
A Notion Page itself is considered a block and the Page ID
can be used for retrieving its children.
More details can be found at Fetch Blocks .