Skip to content

Search

Retrieve stories by meaning through a natural-language query.

GET
https://api.storyblok.com/v2/cdn/strata/search
  • q string

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

  • version string

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

  • limit integer

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

  • starts_with string

    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_type string

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

  • token required string

    A preview or public access token configured in a space.

  • results StrataSearchResults

    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.

    Show child properties
    • excerpt string

      The passage of story content that matches the search term.

    • score number

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

    • story object

      The story that contains the matching passage.

      Show child properties
      • id integer

        Numeric ID of the story.

      • slug string

        Full slug of the story.

      • name string

        Name of the story.

curl "https://api.storyblok.com/v2/cdn/strata/search\
?q=can+I+send+my+order+back%3F\
&token=YOUR_ACCESS_TOKEN"

Was this page helpful?

What went wrong?

This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window).Terms of Service (opens in a new window) apply.