fetch Stories
Returns a list of stories that are in your Storyblok space. The stories are returned in sorted order, depending on the order in your space. You can use the query parameter sort_by with any story object property and first level of your content type to order the response to your needs.
If no entries are found with your filters applied, you will receive an empty array. You will not receive a 404 error message, to check if you have results go for the array length.
startsWith Filter by full_slug. Can be used to retrieve all entries form a specific folder. Examples: starts_with=de/beitraege, starts_with=en/posts. Attention: If you use field level translations and a root folder with the same name of a language code you need to prepend default to the path to retrieve the default language (Example: starts_with=default/de/home). byUuids Get stories by comma separated uuid. To get a specific language you need to combine this filter with starts_with=en/\* (replace en with your langauge) Example: by_uuids=9aa72a2f-04ae-48df-b71f-25f53044dc97,84550816-245d-4fe6-8ae8-b633d4a328f4 fallbackLang Define a custom fallback language. By default the fallback language is the one defined in the space settings byUuidsOrdered Get stories by comma separated uuid ordered by the sequence provided in the parameter value. To get a specific language you need to combine this filter with starts_with=en/\* (replace en with your langauge) Example: by_uuids_ordered=9aa72a2f-04ae-48df-b71f-25f53044dc97,84550816-245d-4fe6-8ae8-b633d4a328f4 excludingIds Exclude stories by comma separated numeric ids. Example: excluding_ids=101231,9101231 excludingFields Exclude specific fields of your content type by comma seperated names. Example: excluding_fields=title,content resolveLinks The parameter resolve_links will automatically resolve internal links of the multilink field type. If the value is story the whole story object will be included. If the value is url only uuid, id, name, path, slug and url (url is a computed property which returns the "Real path" if defined to use it for navigation links) will be included. The limit of resolved links per Story is 50 when resolving with story and 100 when resolving with url. resolveRelations Resolve relationships to other Stories of a multi-option or single-option field-type. Provide the component name and the field key as comma separated string. The limit of resolved relationships per item is 100 Stories. Example: resolve_relations=page.author,page.categories fromRelease Access version of specific release by release id sortBy Sort entries by specific attribute and order with content.YOUR_FIELD:asc and content.YOUR_FIELD:desc. Possible values are all attributes of the entry and all fields of your content type inside content with the dot as seperator. Example: position:desc, content.your_custom_field:asc, content.field_type_xy.field_xy:asc, created_at:desc. If you want to use the sorting provided by the user in the Storyblok admin interface you need to use position:desc. By default all custom fields are sorted as strings. To sort custom fields with numeric values you need to provide the type information (float or int) like following: content.YOUR_FIELD:asc:float or content.YOUR_FIELD:asc:int searchTerm Search content items by full text. filterQuery Filter by specific attribute(s) of your content type. The filter query parameter needs to contain the query operation key. Separate the values by a comma , to filter by multiple values. filter_queryOPERATION=VALUE,...
Following filter operations OPERATION are available:
is - Filter your entries by checking if your custom attribute (any field inside the content field) is of a specific type.
in - Filter your entries by checking if your custom attribute (any field inside the content field) has a value that is equal to one of the values provided.
not_in - Filter your entries by checking if your custom attribute (any field inside the content field) does not have a value that is equal to one of the values provided.
like - Filter your entries by checking if your custom attribute (any field inside the content field) has a value that is "like" the value provided.
not_like - Filter your entries by checking if your custom attribute (any field inside the content field) has a value that is "not_like" the value provided.
in_array - Filter your entries by checking if your custom array attribute (any field inside the content field) contains one of the values provided. As soon as one of the provided values separated with , are in the array field, the story object will be in the response.
all_in_array - Filter your entries by checking if your custom array attribute (any field inside the content field) contains all of the values provided. As soon as all of the provided values separated with , are in the array field, the story object will be in the response.
gt-date - Think of it at AFTER a specific date. Allows you to filter fields of type date/datetime (Format: YYYY-mm-dd HH:MM). Returns all entries that are greater (eg. later) than the provided value.
lt-date - Think of it at BEFORE a specific date. Allows you to filter fields of type date/datetime (Format: YYYY-mm-dd HH:MM). Returns all entries that are lower than (eg. before) the provided date.
gt-int - Allows you to filter fields of type number, string (number value), or custom field type with numbers in the schema. Returns all entries that are GREATER than the provided value.
lt-int - Allows you to filter fields of type number, or custom field type with numbers in the schema. Returns all entries that are LOWER than the provided value.
gt-float - Allows you to filter fields of type float, string (float value), or custom field type with numbers in the schema. Returns all entries that are GREATER than the provided value.
lt-float - Allows you to filter fields of type number, or custom field type with numbers in the schema. Returns all entries that are LOWER than the provided value.
Checkout the filter_query Examples we put together for you with most common use-cases.isStartpage Filter by folder startpage. Use is_startpage=1 to only return startpages and is_startpage=0 to exclude startpages from the result. withTag Filter by specific tag(s). Use comma to filter by multiple tags. Examples: with_tag=featured,home page Numeric. default: 1. Read more at Pagination perPage Numeric. default: 25, max: 100. Read more at Pagination cv Read more about cache version at Cache invalidation