Endpoints

Items

Access item data

Items Endpoints

Access data for purchasable items and upgrades.

List Items

GET/api/items

Retrieve a list of all items.

Query Parameters

type
string
Filter by upgrade type (e.g., weapon, ability).
rarity
string
Filter by rarity (e.g., common, rare, legendary).

Example Request

curl https://overwatch-hero-api.pages.dev/api/items?type=weapon

Response Structure

Returns an array of Item objects.

[
  {
    "id": "heavy_pulse_rifle_mk2",
    "name": "Heavy Pulse Rifle Mk. II",
    "cost": 1500,
    "rarity": "rare",
    "upgrade_type": "weapon",
    "stat_changes": {
      "damage": 10
    }
    // ...
  }
]

Get Item Details

GET/api/items/:id

Retrieve detailed information for a specific item.

Path Parameters

id
string required
The item's unique identifier.

Response

Returns a single Item object.

{
  "id": "heavy_pulse_rifle_mk2",
  "name": "Heavy Pulse Rifle Mk. II",
  "description": "Increases weapon damage.",
  "cost": 1500,
  // ...
}