Skip to main content
Fetch structured content from your Webstorio CMS on published sites. Requires the Content & CMS feature (content).

getContentTypes()

List all content types in the project.

getContentEntries(contentTypeKey, options?)

List or filter entries for a content type.
Entry field values live in entry.dataJson (shape matches your content type schema).

getContentEntryById(contentTypeKey, entryId)

Fetch a single entry by UUID. Use on detail pages with getPathParams():

getContentCategories()

List all content categories.

getContentCategoryById(categoryId)

Field types

Each content type field in schemaJson is { key, type, label, required?, seoRole? }. Values in entry.dataJson match the field type: image, video, and document store a public asset URL — upload files in Assets (or via the CLI) and pick them in the entry editor. seoRole (title | description | keywords | image) maps a field into page metadata.

User guide

Non-technical setup: Content & CMS