> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction (Page)

## Article Link: https://dev.wix.com/docs/sdk/host-modules/editor/page/introduction.md

## Article Content:

# Introduction

The Page API provides read-only information about the page the editor bound your extension to, such as a [site page extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/site-extensions/site-pages/about-site-page-extensions.md)'s own page. The page is bound through the host context, so there's no page ID to pass in and no mutation surface.

To use the Page API, follow the [setup instructions for the Editor API](https://dev.wix.com/docs/sdk/host-modules/editor/introduction.md#setup).

> **Note:** The Page API resolves a page only when the calling app is bound to one, which happens for [site page extensions](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/site-extensions/site-pages/about-site-page-extensions.md). It's not available from a [site widget or plugin's settings panel](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/site-extensions/create-a-settings-panel-for-a-site-widget-or-plugin-wix-cli-and-self-hosting.md). Every method rejects there, even though the panel's own [Widget API](https://dev.wix.com/docs/sdk/host-modules/editor/widget/introduction.md) and [Info API](https://dev.wix.com/docs/sdk/host-modules/editor/info/introduction.md) calls work normally in the same panel. There is currently no public API for getting the stable page ID of the page a widget instance is placed on.

## Example

```js
import { page } from '@wix/editor';

async function getCurrentPage() {
  const title = await page.getTitle();
  const router = await page.getRouter();
  const role = await page.getPageRole();
}
```