Anytype icon

Anytype

Interact with the Anytype API

Search → Search in Space

AI-generated

Summary

Searches objects within the selected Anytype space using a query and optional type, sort, and property filters. Returns simplified object results by default, with options to return raw responses and control pagination.

Inputs

  • Space (required) — Select the space to search.
  • Body Mode — Choose Simple to configure search fields or JSON to provide a raw SearchRequest body. JSON mode supports nested OR filters.
  • Query — Text to search within object names and content.
  • Type Names or IDs — Limit results to selected object types. File-layout types (file, image, video, audio) are excluded unless explicitly listed.
  • Sort By — Sort by created date, last modified date, last opened date, or name. When omitted in Simple mode, the request defaults to last modified date.
  • Sort Direction — Choose ascending or descending order; defaults to descending.
  • Filters — Add property conditions combined with AND. Conditions include equality, comparisons, containment, membership, and empty checks. For non-empty checks, specify a format and value; multi-select, files, and objects values are comma-separated, and dates accept RFC3339 or YYYY-MM-DD.
  • Body (JSON) — Raw SearchRequest JSON used when Body Mode is JSON.
  • Simplify — Defaults to true. Simplified results include object id, name, layout, type key, and available snippet, space ID, and properties. Disable to return the unflattened API objects.
  • Return All — When enabled, fetches all results using offset pagination in pages of 100.
  • Limit — Maximum number of results when Return All is disabled; defaults to 50, with a supported range of 1 to 1000.
  • Request Options — Optional request settings for batching, SSL certificate validation, proxy, and timeout.

Output shape

A list of matching objects, each returned as an n8n item.

The operation posts to the selected space's search endpoint and unwraps the response's data array. Simplified output is enabled by default. Pagination uses offset requests with a page size of 100; when Return All is off, Limit caps the results.

Links

Discussion