Skip to content

Retrieve Multiple Components

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/components

Retrieve an array of component objects.

This endpoint also returns information about component folders (groups) in a separate key named component_groups.

  • :space_id required number

    Numeric ID of a space

  • by_ids string

    Filter by comma-separated IDs

  • sort_by string

    Sort components an ascending or descending order by a specific property. Following are a few options and examples:

    • Retrieve content type blocks first: is_nestable:asc,is_root:desc
    • Retrieve nestable blocks first: is_nestable:desc,is_root:asc
    • Retrieve universal blocks first: is_nestable:desc,is_root:desc

    This endpoint also supports properties like name and updated_at.

  • is_root boolean

    Retrieve components based on their is_root property:

    • Set to true to retrieve all the components that can be used as content type blocks
    • Set to false to retrieve all the nestable blocks.
  • search string

    Search by name or display_name

  • in_group string

    Find components in a specific folder using its UUID

curl "https://mapi.storyblok.com/v1/spaces/656/components/" \
-H "Authorization: YOUR_OAUTH_TOKEN"