pf2e-compendium-filter-actors
Search COMPENDIUM packs for actors with Pathfinder 2e structured filters (pf2e worlds only): bestiary browsing by level, traits, rarity, size, HP, AC.
CRITICAL DATA FORMATS
traits are an open set of lowercase slugs ("undead", "kobold").
Filters combine with AND, values inside one array with OR; ranges {min?, max?} inclusive (min = max for exact). Documents lacking a filtered field are excluded. The response has total and hasMore. Results are {name, uuid}: uuid-resolve, or compendium-browse with ids to batch-load. Requires bridge module 8.11.0+. Results carry level (null when absent), sorted by level then name.
EXAMPLES { "type": ["npc"], "traits": ["kobold"], "level": { "min": -1, "max": 1 }, "rarity": ["unique"] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ac | No | Armor Class range. | |
| name | No | Substring of document name, case-insensitive. | |
| size | No | Size short codes (OR). | |
| type | No | PF2e actor types (OR). | |
| level | No | Creature level range; negative bounds are valid. | |
| limit | No | Page size 1..200, default 50. | |
| maxHp | No | Max HP range. | |
| offset | No | Skip first N results. | |
| rarity | No | Rarity (OR). | |
| traits | No | ALL-OF: every listed trait must be present. Lowercase slugs. | |
| packIds | No | Restrict to these Actor packs; omit for all. |