War Status Check

Search for any P&W alliance to confirm whether it is at war before opening the full alliance war graph.

Fetching data...

Public API

This page is backed by a public REST API you can query from your own applications. No authentication is required. Responses are JSON-encoded and results are cached for up to 5 minutes to avoid hammering the P&W API.

An alliance is considered at war when it has 3 or more active wars against non-applicant members of the same opposing alliance.

Endpoints

GET /api/v1/alliance-war-status

GET /api/v1/alliance-war-status?alliance_id=10259 GET /api/v1/alliance-war-status?alliance_name=Darkstar
ParameterTypeDescription
alliance_idintegerP&W numeric alliance ID
alliance_namestringPartial or full alliance name (used if no ID given)

Example response

{ "alliance_id": 10259, "alliance_name": "Darkstar Alliance", "at_war": true, "enemies": [ { "alliance_id": 9876, "name": "Enemy Alliance", "war_count": 5, "offensive_wars": 3, "defensive_wars": 2, "offensive_defensive_ratio": 1.5, "offensive_defensive_ratio_display": "3:2 (1.50)", "posture": "attacking" } ], "total_qualifying_wars": 5, "fetched_at": "2025-01-01T12:00:00Z", "_from_cache": false }

GET /api/v1/alliance-search — typing suggestions

GET /api/v1/alliance-search?q=dark

Returns up to 10 alliances whose name contains the query string.

Rate limits & security

Each IP address may make at most 20 requests per 60 seconds. Requests exceeding this limit receive a 429 Too Many Requests response. All string inputs are length-capped and sanitised server-side.