# page()

Fetches a single page by id or the current page when no id is specified

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/helpers.php#L389>

****

```php
page(string|null $id = null): Kirby\Cms\Page|null
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$id` | `string` or `null` | `null` | – |

## Return types

`Kirby\Cms\Page` or `null`

## Examples

### Fetching a specific page by URI

```php
<?= page('blog')->title() ?>
```

### Fetching the current page

```php
<?= page()->title() ?>
```
<info>
The `page()` helper fetches published pages only. To fetch a draft, you have to use `$kirby->page('somepage')`.
</info>