Get all pages.

Page::all(); // Returns PageCollection

Get a page by ID.

Page::find($id); // Returns Page

Get a page by URI.

Page::whereUri($uri); // Returns Page

Check if a page exists.

Page::exists($id); // Returns a boolean

Check if a page exists by URI.

Page::uriExists($uri); // Returns a boolean

Create a page.

This returns an instance of a PageFactory to allow you to chain and build your page.

Page::create($uri); // Returns PageFactory

Import using:

use Statamic\API\Page