Craft icon

Craft

Interact with your Craft documents via the API

Collection → List Items

AI-generated

Summary

Retrieve all items in a specified Craft collection, optionally controlling the nested block depth and output format.

Inputs

  • collectionLocator (required) — Specify the collection to list items from by selecting from a list or entering the collection ID manually.
  • collectionListOptions — Configure listing options including output format (JSON or Markdown) and maximum depth of nested blocks to retrieve (-1 for all levels).

Output shape

a list of items representing the contents of the specified collection

The output includes collection items with nested blocks up to the specified depth. If Markdown format is selected, each item contains a 'contentMarkdown' field. Pagination is not indicated, so all items are returned at once.

Discussion