-
Notifications
You must be signed in to change notification settings - Fork 2
Resource RegionResource
CrucifiedPain edited this page Jun 26, 2026
·
10 revisions
Endpoints: • region.getById • region.getRegionsObject
Get a single region by ID.
await client.region.get(region_id: 'str') -> 'Region'| Name | Type | Default |
|---|---|---|
region_id |
str |
*Required* |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
war |
string |
Optional |
region |
string |
Optional |
attacker_country_id |
string |
Optional |
defender_country_id |
string |
Optional |
attacker |
BattleSide |
Optional |
defender |
BattleSide |
Optional |
attackerScore |
number |
Optional |
defenderScore |
number |
Optional |
isActive |
boolean |
Optional |
isSystemResistance |
boolean |
Optional |
isBigBattle |
boolean |
Optional |
winner_country |
string |
Optional |
startTime |
string |
Optional |
endTime |
string |
Optional |
currentRound |
string | integer | object |
Optional |
rounds |
array[string] |
Optional |
roundsHistory |
array[any] |
Optional |
roundsToWin |
integer |
Optional |
totalRounds |
integer |
Optional |
type |
string |
Optional |
stats |
BattleStats |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
Per-side summary (attacker/defender) of a battle.
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
country |
string |
Optional |
region |
string |
Optional |
damages |
number |
Optional |
hitCount |
integer |
Optional |
wonRoundsCount |
integer |
Optional |
countryOrders |
array[string] |
Optional |
muOrders |
array[string] |
Optional |
moneyPool |
number |
Optional |
moneyPer1kDamages |
number |
Optional |
bountyEffectiveAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
hitCount |
integer |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
name |
string |
Optional |
code |
string |
Optional |
mainCity |
string |
Optional |
country |
string |
Optional |
countryCode |
string |
Optional |
initialCountry |
string |
Optional |
isCapital |
boolean |
Optional |
isLinkedToCapital |
boolean |
Optional |
hasCoast |
boolean |
Optional |
biome |
string |
Optional |
climate |
string |
Optional |
position |
array[number] |
Optional |
neighbors |
array[string] |
Optional |
development |
number |
Optional |
baseDevelopment |
number |
Optional |
currentPopulation |
integer |
Optional |
resistance |
number |
Optional |
resistanceMax |
number |
Optional |
strategicResource |
string |
Optional |
deposit |
RegionDeposit |
Optional |
stats |
RegionStats |
Optional |
dates |
RegionDates |
Optional |
activeUpgradeLevels |
RegionActiveUpgradeLevels |
Optional |
upgradesV2 |
RegionUpgradesV2 |
Optional |
activeBattle |
Battle |
Optional |
lastBattleEndedAt |
string |
Optional |
lastResistanceContributionAt |
string |
Optional |
lastRevoltEndedAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
base |
integer |
Optional |
bunker |
integer |
Optional |
pacificationCenter |
integer |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
lastOwnershipChangeAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
type |
string |
Optional |
bonusPercent |
number |
Optional |
startsAt |
string |
Optional |
endsAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
investedMoney |
number |
Optional |
State of a single region upgrade (base, bunker, ...).
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
level |
integer |
Optional |
status |
string |
Optional |
statusChangedAt |
string |
Optional |
constructionPoints |
number |
Optional |
investedMoney |
number |
Optional |
isUnderConstruction |
boolean |
Optional |
constructionStartedAt |
string |
Optional |
constructionEndedAt |
string |
Optional |
lastConstructions |
array[RegionUpgradeConstruction] |
Optional |
One contribution entry in an upgrade's construction history.
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
construction |
number |
Optional |
constructionAt |
string |
Optional |
user |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
upgrades |
object |
Optional |
activeConstructionCount |
integer |
Optional |
Get all regions as a dict keyed by region ID.
await client.region.get_all() -> 'dict[str, Region]'| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
war |
string |
Optional |
region |
string |
Optional |
attacker_country_id |
string |
Optional |
defender_country_id |
string |
Optional |
attacker |
BattleSide |
Optional |
defender |
BattleSide |
Optional |
attackerScore |
number |
Optional |
defenderScore |
number |
Optional |
isActive |
boolean |
Optional |
isSystemResistance |
boolean |
Optional |
isBigBattle |
boolean |
Optional |
winner_country |
string |
Optional |
startTime |
string |
Optional |
endTime |
string |
Optional |
currentRound |
string | integer | object |
Optional |
rounds |
array[string] |
Optional |
roundsHistory |
array[any] |
Optional |
roundsToWin |
integer |
Optional |
totalRounds |
integer |
Optional |
type |
string |
Optional |
stats |
BattleStats |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
Per-side summary (attacker/defender) of a battle.
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
country |
string |
Optional |
region |
string |
Optional |
damages |
number |
Optional |
hitCount |
integer |
Optional |
wonRoundsCount |
integer |
Optional |
countryOrders |
array[string] |
Optional |
muOrders |
array[string] |
Optional |
moneyPool |
number |
Optional |
moneyPer1kDamages |
number |
Optional |
bountyEffectiveAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
hitCount |
integer |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
name |
string |
Optional |
code |
string |
Optional |
mainCity |
string |
Optional |
country |
string |
Optional |
countryCode |
string |
Optional |
initialCountry |
string |
Optional |
isCapital |
boolean |
Optional |
isLinkedToCapital |
boolean |
Optional |
hasCoast |
boolean |
Optional |
biome |
string |
Optional |
climate |
string |
Optional |
position |
array[number] |
Optional |
neighbors |
array[string] |
Optional |
development |
number |
Optional |
baseDevelopment |
number |
Optional |
currentPopulation |
integer |
Optional |
resistance |
number |
Optional |
resistanceMax |
number |
Optional |
strategicResource |
string |
Optional |
deposit |
RegionDeposit |
Optional |
stats |
RegionStats |
Optional |
dates |
RegionDates |
Optional |
activeUpgradeLevels |
RegionActiveUpgradeLevels |
Optional |
upgradesV2 |
RegionUpgradesV2 |
Optional |
activeBattle |
Battle |
Optional |
lastBattleEndedAt |
string |
Optional |
lastResistanceContributionAt |
string |
Optional |
lastRevoltEndedAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
base |
integer |
Optional |
bunker |
integer |
Optional |
pacificationCenter |
integer |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
lastOwnershipChangeAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
type |
string |
Optional |
bonusPercent |
number |
Optional |
startsAt |
string |
Optional |
endsAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
investedMoney |
number |
Optional |
State of a single region upgrade (base, bunker, ...).
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
level |
integer |
Optional |
status |
string |
Optional |
statusChangedAt |
string |
Optional |
constructionPoints |
number |
Optional |
investedMoney |
number |
Optional |
isUnderConstruction |
boolean |
Optional |
constructionStartedAt |
string |
Optional |
constructionEndedAt |
string |
Optional |
lastConstructions |
array[RegionUpgradeConstruction] |
Optional |
One contribution entry in an upgrade's construction history.
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
construction |
number |
Optional |
constructionAt |
string |
Optional |
user |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
upgrades |
object |
Optional |
activeConstructionCount |
integer |
Optional |
Fetch multiple regions by ID concurrently using the auto-batcher.
await client.region.get_many(region_ids: 'list[str]') -> 'list[Region | None]'| Name | Type | Default |
|---|---|---|
region_ids |
list[str] |
*Required* |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
war |
string |
Optional |
region |
string |
Optional |
attacker_country_id |
string |
Optional |
defender_country_id |
string |
Optional |
attacker |
BattleSide |
Optional |
defender |
BattleSide |
Optional |
attackerScore |
number |
Optional |
defenderScore |
number |
Optional |
isActive |
boolean |
Optional |
isSystemResistance |
boolean |
Optional |
isBigBattle |
boolean |
Optional |
winner_country |
string |
Optional |
startTime |
string |
Optional |
endTime |
string |
Optional |
currentRound |
string | integer | object |
Optional |
rounds |
array[string] |
Optional |
roundsHistory |
array[any] |
Optional |
roundsToWin |
integer |
Optional |
totalRounds |
integer |
Optional |
type |
string |
Optional |
stats |
BattleStats |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
Per-side summary (attacker/defender) of a battle.
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
country |
string |
Optional |
region |
string |
Optional |
damages |
number |
Optional |
hitCount |
integer |
Optional |
wonRoundsCount |
integer |
Optional |
countryOrders |
array[string] |
Optional |
muOrders |
array[string] |
Optional |
moneyPool |
number |
Optional |
moneyPer1kDamages |
number |
Optional |
bountyEffectiveAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
hitCount |
integer |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
name |
string |
Optional |
code |
string |
Optional |
mainCity |
string |
Optional |
country |
string |
Optional |
countryCode |
string |
Optional |
initialCountry |
string |
Optional |
isCapital |
boolean |
Optional |
isLinkedToCapital |
boolean |
Optional |
hasCoast |
boolean |
Optional |
biome |
string |
Optional |
climate |
string |
Optional |
position |
array[number] |
Optional |
neighbors |
array[string] |
Optional |
development |
number |
Optional |
baseDevelopment |
number |
Optional |
currentPopulation |
integer |
Optional |
resistance |
number |
Optional |
resistanceMax |
number |
Optional |
strategicResource |
string |
Optional |
deposit |
RegionDeposit |
Optional |
stats |
RegionStats |
Optional |
dates |
RegionDates |
Optional |
activeUpgradeLevels |
RegionActiveUpgradeLevels |
Optional |
upgradesV2 |
RegionUpgradesV2 |
Optional |
activeBattle |
Battle |
Optional |
lastBattleEndedAt |
string |
Optional |
lastResistanceContributionAt |
string |
Optional |
lastRevoltEndedAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
base |
integer |
Optional |
bunker |
integer |
Optional |
pacificationCenter |
integer |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
lastOwnershipChangeAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
type |
string |
Optional |
bonusPercent |
number |
Optional |
startsAt |
string |
Optional |
endsAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
investedMoney |
number |
Optional |
State of a single region upgrade (base, bunker, ...).
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
level |
integer |
Optional |
status |
string |
Optional |
statusChangedAt |
string |
Optional |
constructionPoints |
number |
Optional |
investedMoney |
number |
Optional |
isUnderConstruction |
boolean |
Optional |
constructionStartedAt |
string |
Optional |
constructionEndedAt |
string |
Optional |
lastConstructions |
array[RegionUpgradeConstruction] |
Optional |
One contribution entry in an upgrade's construction history.
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
construction |
number |
Optional |
constructionAt |
string |
Optional |
user |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
upgrades |
object |
Optional |
activeConstructionCount |
integer |
Optional |
Clear the SWR cache for all resources.
await client.region.invalidate_cache() -> 'None'- 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