Skip to main content

Search

Search entities

This endpoint allows searching for entities in the Foundry world based on a query string. Search world entities and compendiums using the native built-in search engine. No third-party modules required. Results are ranked by relevance: exact match, prefix match, substring match, word-prefix match, and subsequence match.

Parameters

NameTypeRequiredSourceDescription
clientIdstringqueryClient ID for the Foundry world
querystringquerySearch query string (omit to browse all entities matching filter)
filterstringqueryFilter string — simple: filter="Actor"; compound: filter="documentType:Item,subType:weapon". Supported keys: documentType, subType, folder, package, resultType
excludeCompendiumsbooleanqueryExclude compendium entries from results (default: false — compendiums are included by default)
limitnumberqueryMaximum number of results to return (default: 200, max: 500)
minifiedbooleanqueryReturn minimal fields only — uuid, id, name, img, documentType (default: false)
ownedByUserIdstringqueryFilter results to only documents the specified Foundry user (ID or username) has Owner permission on
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Search results containing matching entities

Try It Out