-
Notifications
You must be signed in to change notification settings - Fork 2
Resource SearchResource
CrucifiedPain edited this page Jun 26, 2026
·
9 revisions
Endpoints: • search.searchAnything
Clear the SWR cache for all resources.
await client.search.invalidate_cache() -> 'None'Global search across all entity types (users, countries, companies, MUs, articles).
Args: search_text: The search query. Must be at least 1 character.
Returns: SearchResults containing a list of matched entities with type and ID.
await client.search.query(search_text: 'str') -> 'SearchResults'| Name | Type | Default |
|---|---|---|
search_text |
str |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
type |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
results |
array[SearchResult] |
No | |
total |
`integer | null` | No |
- action_log
- alliance
- article
- battle
- battle_loot_summary
- battle_order
- battle_ranking
- company
- country
- donation
- election
- event
- game_config
- game_stat
- government
- inventory
- item_trading
- mercenary_contract_auction
- mu
- mu_member
- party
- ranking
- region
- round
- search
- tournament
- transaction
- upgrade
- user
- work
- work_offer
- worker