younifyd
Menu

Search Cdn V2 Strata Index

Search

GET/v2/cdn/strata/search

Use it in a workflow

  1. Add a step and choose the Storyblok Delivery connector.
  2. Pick the Search Cdn V2 Strata Index action (under Strata).
  3. Fill in the fields below, then reference the result from later steps as {{searchCdnV2StrataIndex.response.data}}.

Request

Query parameters

qstring

The search term. Write it as a natural-language question or phrase.

versionstring

The content version to retrieve: `draft` or `published`. Default is `published`. Retrieving `draft` requires a preview access token.

One ofdraftpublishedDefault "published"

limitinteger

The maximum number of results to return. Default is `25`. Maximum is `100`, or `50` when `starts_with` or `content_type` is set.

Default 25

starts_withstring

Filter by the story’s `full_slug` to return items starting with the given value. Matches only the default-language slug, so language prefixes (for example, `de/`) and translated slugs return no results.

content_typestring

Retrieve stories of a specific content type block. For example, `content_type=page`.

Response

Returns 200 with an object. Read it in later steps with {{searchCdnV2StrataIndex.response.data.<field>}}.

resultsarray<object>

An array of search result objects, ranked by `score` with the best match first. A story can appear more than once if it has multiple matching passages.

excerptstringrequired

The passage of story content that matches the search term.

scorenumber (float)required

How closely the result matches the search term. A higher value means a closer match.

storyobjectrequired3 fields

The story that contains the matching passage.

json
{
  "results": [
    {
      "excerpt": "You can return any item within 30 days...",
      "score": 0.89,
      "story": {
        "id": 1001,
        "slug": "pricing/returns",
        "name": "Returns"
      }
    },
    {
      "excerpt": "Refunds are processed within 5 business days...",
      "score": 0.81,
      "story": {
        "id": 1044,
        "slug": "faq",
        "name": "FAQ"
      }
    }
  ]
}

Need more? See the Storyblok Delivery guide for connection setup and behaviour shared by every action.

Was this page helpful?
Search Cdn V2 Strata Index — Storyblok Delivery — Documentation