Menu
List Stories
Retrieve Multiple Stories
/v2/cdn/storiesUse it in a workflow
- Add a step and choose the Storyblok Delivery connector.
- Pick the List Stories action (under Stories).
- Fill in the fields below, then reference the result from later steps as
{{listStories.response.data}}.
Request
Query parameters
versionstringThe content version to retrieve: `draft` or `published`. Default is `published`. Retrieving `draft` requires a preview access token.
One ofdraftpublishedDefault "published"
cvintegerCached version Unix timestamp. Learn more in the [Caching concept](https://www.storyblok.com/docs/concepts/caching).
starts_withstringFilter by the story’s `full_slug` to return items starting with the given value.
search_termstringSearch for any string in stories. The response contains all stories where the string appears anywhere in the name, slug, full slug, or content object. This includes UUIDs, field values, asset file names, and rich text nodes and attributes, such as "bold". Combine this parameter with the `version` parameter to filter by `draft` or `published` stories.
sort_bystringSort stories in ascending or descending order by a specific property. Possible properties are all default story properties and any custom fields defined in the schema of the story type. Sort default story properties like so: - `sort_by=created_at:desc` - `sort_by=slug:asc` Sort custom fields can like so: - `sort_by=content.meta_description:asc` - `sort_by=content.event_title:desc` By default, all sorted custom fields are strings. To sort custom fields with numeric values, specify floats or integers: - `sort_by=content.price:asc:float` - `sort_by=content.event_number:asc:int` Chain different sorts with commas: `sort_by=name:desc,slug:asc`. Sort values and set the `null` or `empty` ones first or last: - `sort_by=path:desc:nulls_first` - `sort_by=path:desc:nulls_last`. `nulls_last` is the default behavior.
per_pageintegerThe number of items per page in a [paginated](https://www.storyblok.com/docs/api/content-delivery/v2#pagination) response.
Default 25
pageintegerPage number in a [paginated](https://www.storyblok.com/docs/api/content-delivery/v2#pagination) response.
Default 1
by_slugsstringRetrieve stories by comma-separated `full_slug`. For example, `by_slugs=posts/third-post,posts/second-post`. You can use `*` as a wildcard. For example, `by_slugs=posts/*`.
excluding_slugsstringExclude stories by comma-separated `full_slug`. For example, `excluding_slugs=posts/third-post,posts/second-post`. You can use `*` as a wildcard. For example, `excluding_slugs=posts*`.
published_at_gtstring (date-time)Retrieve stories published after the specified date. Supports ISO 8601.
published_at_gtestring (date-time)Retrieve stories published on or after the specified date. Supports ISO 8601.
published_at_ltstringRetrieve stories published before the specified date. Supports ISO 8601.
published_at_ltestring (date-time)Retrieve stories published on or before the specified date. Supports ISO 8601.
first_published_at_gtstring (date-time)Retrieve stories first published after the specified date. Supports ISO 8601.
first_published_at_gtestring (date-time)Retrieve stories first published at or after the specified date. Supports ISO 8601.
first_published_at_ltstringRetrieve stories first published before the specified date Supports ISO 8601.
first_published_at_ltestring (date-time)Retrieve stories first published at or before the specified date. Supports ISO 8601.
updated_at_gtstring (date-time)Retrieve stories updated after the specified date. Supports ISO 8601.
updated_at_gtestring (date-time)Retrieve stories updated at or after the specified date. Supports ISO 8601.
updated_at_ltstringRetrieve stories updated before the specified date. Supports ISO 8601.
updated_at_ltestring (date-time)Retrieve stories updated at or before the specified date. Supports ISO 8601.
in_workflow_stagesstringRetrieve stories in a particular workflow stage by providing a comma-separated list of workflow stage IDs. For example, `in_workflow_stages=325604,325605`.
content_typestringRetrieve stories of a specific content type block. For example, `content_type=page`.
levelintegerRetrieve stories in the specified folder level. Examples: - `level=1` retrieves stories from the root folder - `level=2` retrieves stories from top-level folders - `level=3` retrieves stories from second-level folders The response includes only the immediate child stories, excluding stories defined as root for the folder.
resolve_relationsstringUsed to resolve [referenced stories](https://www.storyblok.com/docs/concepts/references). Resolved stories appear in the `rels` property of the response. A single request can resolve up to 50 stories. Afterward, all story `UUID` appear in the `rel_uuids` property of the response and need to resolve in subsequent API requests. To resolve the stories selected in one field, provide the technical name of the immediate parent component of the field, followed by a `.` and the field name. To resolve the stories selected in multiple fields, provide a comma-separated string. Example: `resolve_relations=page.author,page.categories`.
excluding_idsstringExclude specific stories by IDs in a comma-separated string. For example, `excluding_ids=335015953,335015954`.
by_uuidsstringRetrieve specific stories by UUIDs in a comma-separated string. For example, `by_uuids=a78b2116-c26d-4d23-9cbe-fec477847b0e,9683820e-fc17-429e-ba23-eb41f26c0776`.
by_uuids_orderedstringRetrieve specific stories by UUIDs in a comma-separated string. The order of the stories in the response matches the order of the UUIDs. For example, `by_uuids_ordered=a78b2116-c26d-4d23-9cbe-fec477847b0e,9683820e-fc17-429e-ba23-eb41f26c0776`.
by_idsstringRetrieve items by `id`. Supports a comma-separated string.
with_tagstringFilter by specific tag slug. For example, `with_tag=featured`. Filter multiple tags by comma-separated string (treated like an OR operator). For example, `with_tag=featured,editors_choice`.
is_startpageintegerFilter by stories defined as root for the folder.
One of01
resolve_linksstringResolve [link fields](https://www.storyblok.com/docs/concepts/fields#link). The `links` property of the response includes resolved links: - `link`: provides access to additional information, such as a linked story’s `full_slug`, `path`, `parent_id`, `is_folder`, `published`, `is_startpage`, `position`, `alternates`, `real_path`, and more. - `url`: provides the minimum amount of information. Use when you only need the path of a linked story. - `story`: resolves and returns the complete story object of a linked story.
One ofstoryurllinkDefault "story"
resolve_links_levelintegerResolve up to two levels of links.
One of12Default 1
resolve_links_in_relationsintegerTo resolve the links inside related stories, set `resolve_links_in_relations=1`. This parameter requires both `resolve_relations` and `resolve_links`. The `links` property of the response includes both the story’s own links and the ones returned from the related stories. Links in `resolve_level=2` relations remain unresolved. When exceeding the limit, the response includes `link_uuids` instead of `links`.
One of1
from_releasestringAccess a story version in a specific release by providing the release ID.
fallback_langstringDefine a custom fallback language to handle untranslated fields. Supports languages defined in **Settings** → **Internationalization**. Provide language code with underscores. For example, `es_co` instead of `es-co`.
languagestringRetrieve translated story version. Supports languages defined in **Settings** → **Internationalization**.
filter_queryobjectLearn more in [Filter Queries](https://www.storyblok.com/docs/api/content-delivery/v2/filter-queries/).
__orarray<object>excluding_fieldsstringTo exclude specific fields of a content type, provide the field names as a comma-separated string. For example, `excluding_fields=body,meta_description`. Excluding the `component` field from the response returns the content of the story in the default language instead of the requested `language`. When a request has both `excluding_fields` and `including_fields`, the API ignores `excluding_fields`.
including_fieldsstringTo return only specific fields of a content type, provide the field names as a comma-separated string. For example, `including_fields=title,image`. The response always returns `_uid`, `component`, and `_editable`, as well as translated versions of a listed field. Takes precedence over `excluding_fields`.
excluding_story_fieldsstringExclude top-level story response fields with a comma-separated list. For example, `excluding_story_fields=alternates,translated_slugs`.
resolve_assetsintegerUsed to resolve asset metadata, including custom metadata. When `resolve_assets=1`, an array of assets associated with the stories appear in the `assets` property of the response.
One of1
resolve_levelintegerUsed to force resolve second-level relations when the first level reaches a limit of 100 relations. While resolving relations, if the first level exceeds 100 relations, the API stops looking for the second level. To resolve second-level relations regardless of the first-level relations’ limit, use `resolve_level=2`.
One of2
only_variantsstringWhen set, returns only experiment variant stories.
One oftrue
Response
Returns 200 with an object. Read it in later steps with {{listStories.response.data.<field>}}.
storiesarray<oneOf>An array of story objects.
cvintegerCached version Unix timestamp. Learn more in the [Caching concept](https://www.storyblok.com/docs/concepts/caching).
relsarray<oneOf>An array of resolved stories.
linksarray<oneOf>An array of resolved links. The properties depend on the `resolve_links` value.
rel_uuidsarray<string (uuid)>An array of all referenced stories’ UUIDs.
link_uuidsarray<string (uuid)>An array of all linked stories’ UUIDs.
{
"stories": [
null
],
"cv": 1234,
"rels": [
null
],
"links": [
null
],
"rel_uuids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"link_uuids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
Need more? See the Storyblok Delivery guide for connection setup and behaviour shared by every action.