API filterEntities