Craft Daily Notes icon

Craft Daily Notes

Interact with Craft Daily Notes API - manage blocks, tasks, collections, and search

Block → Get

AI-generated

Summary

Retrieve content blocks from Craft Daily Notes either by a specific date or by block ID, with options to limit nesting depth and select the response format.

Inputs

  • Fetch By (required) — Choose whether to fetch blocks by a specific date or by a block ID.
  • Date — The daily note date to fetch blocks from, accepting relative keywords (today, tomorrow, yesterday) or an ISO date (YYYY-MM-DD). Used when fetching by date.
  • Block ID — The UUID of a specific block to fetch. Used when fetching by block ID.
  • Max Depth — Limits the maximum depth of nested content to retrieve within blocks. Use -1 to fetch all descendants, 0 to fetch only the block itself.
  • Response Format — Specify the format of the response: either JSON structured block data with IDs and properties, or rendered markdown text content.
  • Additional Options.Fetch Metadata — Optionally include metadata such as comments, timestamps, and authors in the block data.

Output shape

a JSON object or markdown string representing the fetched blocks

The structure of the output depends on the chosen Response Format parameter. If JSON format is selected, a structured representation of the blocks including nested children and properties is returned. If Markdown format is selected, the response is a rendered markdown text string. Pagination or batching is not indicated in the properties.

Examples

Example 1: Fetch blocks by date (default)

Set 'Fetch By' to 'Date' and provide a date like 'today' or '2024-05-01'. Optionally adjust 'Max Depth' and choose the 'Response Format'. The node returns blocks from the daily note on that date.

Example 2: Fetch a specific block by its ID

Set 'Fetch By' to 'Block ID' and provide the Block ID in UUID format. The node returns data for the specified block with optional nested content as constrained by 'Max Depth'.

Links

Discussion