Actions13
Story → Get All
AI-generatedSummary
Retrieve multiple stories from the Strapi CMS with optional filtering, relation population, and sorting.
Inputs
- Return All — Boolean to decide whether to return all matching stories or limit the number of results.
- Limit — Maximum number of stories to return when 'Return All' is false.
- Populate Relations — Choose which related entities to load with the stories: none, tags, articles, full (tags and articles plus created/updated users), or custom selection.
- Relations to Load — When 'Populate Relations' is set to custom, manually select which relations to load: tags, articles, created_by_user, updated_by_user.
- Filters — Collection of filters to constrain the stories returned, including name (case-insensitive contains), tag ID, creation date range, and update date range.
- Additional Options — Additional parameters such as sort order (e.g., 'name:asc') and comma-separated list of fields to return on each story.
Output shape
a list of story records, each including fields and optionally populated relations and metadata as specified by parameters.
Supports pagination when 'Return All' is false, limiting results to the specified 'Limit'. Filters apply server-side to constrain results. The output contains an array of story objects returned from the Strapi CMS API under the 'data' property. If no stories are found, a message with empty data is returned.
Examples
Example 1: Retrieve up to 20 stories with their tags and related articles, sorted by name ascending, filtering to stories containing 'news' in the name.
Return All: false, Limit: 20, Populate Relations: full, Filters: Name contains 'news', Options Sort: 'name:asc'.