Get page slug and static code

Access scopes

Requires the following access scope: read_storefront_widget_pages

Response

A JSON object with the following fields:

NameTypeDescription
statusStringShows request result:
OK - found page with canonicalSlug matching slug from request.
NOT_FOUND - not found any matches.
NONCANONICAL - found page, but slug specified in the request doesn't match page canonicalSlug.
typeStringPage type:
ROOT - Root category or home page.
PRODUCT - Any product page.
CATEGORY - Any category page.
SEARCH - Search page, slug: search.
LEGAL_PAGE - Legal pages, slugs: legal, legal/*.
CART - Cart pages, slugs: cart, cart/*, repeat-order
CHECKOUT - Checkout pages, slugs: checkout*, checkout/*, downloadError, orderFailure, FBAutofillCheckout.
CUSTOMER_ACCOUNT - Customer account pages, slugs: account, account/*, signin, signIn, resetPassword, subscribe, unsubscribe.
INTERNAL- Internal Ecwid pages.
canonicalSlugStringCanonical URL slug for found page.
storeEntityDataObject{storeEntityData}Product or category ID. Has value only if type is PRODUCT or CATEGORY.
staticContentObject{staticContent}Static code for found page. Has value only if the request has getStaticContent=true query param.

storeEntityData

NameTypeDescription
idStringProduct or category ID for found page.

staticContent

NameTypeDescription
cssFilesArray of stringsList of CSS URLs for the page design to display properly
htmlCodestringHTML code for the static page
metaDescriptionHtmlstringHTML code for the meta title and description
canonicalUrlstringCanonical URL for this page
ogTagsHtmlstringHTML code for Open Graph tags
jsonLDHtmlstringHTML code for JSON-LD product description
hrefLangHtmlstringhreflang HTML tag for translated versions of your website. Returned if international_pages request parameter is set. Google specification
lastUpdatednumberUNIX timestamp for when the page was generated
Language
Click Try It! to start a request and see the response here!