Fetch API
Fetch a Page
GET
Fetch a Page by its full URL. Frontic resolves the URL against your domain mappings to determine the scope, region, and locale, looks up the matching page record, and returns its block payload along with route metadata.
The page endpoint always returns HTTP
200 OK. Logical redirects and not-found cases are encoded in the response body’s route object so the consuming app can decide what to do (redirect, render a 404 page, etc.) rather than relying on HTTP-level status codes.
Path Parameters
string
required
Your project’s Fetch token, embedded in the subdomain.
string
required
The full URL to resolve, without the
https:// scheme. Example: <your-shop>/uk/women/shoes/running.Headers
See Headers on the overview for the full set. The page endpoint primarily usesfs-context, fs-version, and fs-secret (only when the project has fetch keys configured). The URL’s host already drives domain resolution, so fs-domain typically isn’t needed for page calls.
Response
Always200 OK at the HTTP level. The body’s route.code carries the logical state.
string
Page type identifier when content is found (e.g.
ProductDetail). Omitted for redirects and not-found responses.string
The block name shaping
data. Omitted for redirects and not-found responses.object
The block payload — typed against the page’s connected Detail Block. Field shapes depend on your project. Omitted for redirects and not-found responses.
object
required
Route metadata for the resolved (or not-resolved) URL.
Status codes
The Nuxt module’s
useFronticPage composable maps route.code back to HTTP-style behaviour for you (redirectOn301, throwOn404).