Directus icon

Directus

Consume Directus API

Item → Get

AI-generated

Summary

Retrieves a single item from a Directus collection by its ID, optionally returning only selected fields.

Inputs

  • Collection Name or ID (required) — The Directus collection to query. Can be selected from the list or provided via an expression.
  • Item ID (required) — The identifier of the item to fetch.
  • Fields to Return — Specific fields to include in the response. Leave empty to return all fields.

Output shape

object

Returns the item data as a JSON object containing the requested fields (or all fields if none were specified).

Examples

Example 1: Get a blog post by ID

Set Collection to 'posts', Item ID to {{$json['postId']}}, and leave Fields to Return empty to get the full post record.

Discussion