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
The Nuxt module’s
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
Your project’s Fetch token, embedded in the subdomain.
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.
Page type identifier when content is found (e.g.
ProductDetail). Omitted for redirects and not-found responses.The block name shaping
data. Omitted for redirects and not-found responses.The block payload — typed against the page’s connected Detail Block. Field shapes depend on your project. Omitted for redirects and not-found responses.
Route metadata for the resolved (or not-resolved) URL.
Status codes
| Code | When |
|---|---|
200 | Always — including redirect and not-found cases (logical status is in route.code). |
401 | fs-secret missing or wrong (only when the project has fetch keys configured) |
403 | Project’s plan limit for Fetch API requests exceeded |
404 | The URL didn’t resolve to a configured project domain at all (couldn’t determine which project the request was for). |
useFronticPage composable maps route.code back to HTTP-style behaviour for you (redirectOn301, throwOn404).