Endpoints

Powers

Access power data

Powers Endpoints

Access data for hero powers and abilities.

List Powers

GET/api/powers

Retrieve a list of all powers.

Query Parameters

type
string
Filter by upgrade type (e.g., tech, biotic).

Example Request

curl https://overwatch-hero-api.pages.dev/api/powers

Response Structure

Returns an array of Power objects.

[
  {
    "id": "biotic_grenade",
    "name": "Biotic Grenade",
    "upgrade_type": "biotic",
    "stat_changes": { ... }
    // ...
  }
]

Get Power Details

GET/api/powers/:id

Retrieve detailed information for a specific power.

Path Parameters

id
string required
The power's unique identifier.

Response

Returns a single Power object.

{
  "id": "biotic_grenade",
  "name": "Biotic Grenade",
  "description": "Throws a grenade that heals and damages.",
  // ...
}