Skip to content

Weapons V2

Michal Mikulec edited this page Apr 6, 2022 · 4 revisions

class siegeapi.Weapons()

Attributes

  • all WeaponsGameMode
  • casual WeaponsGameMode
  • ranked WeaponsGameMode
  • unranked WeaponsGameMode
  • newcomer WeaponsGameMode (Added in v2.0.3)

Methods

  • get_timespan_dates() -> dict[str: str]

    • Gets start & end dates that get returned by the API
    • Updated with every call

    Returns {'start_date': '20211205', 'end_date': '20220405'}

    Added in v2.1.2


class siegeapi.WeaponsGameMode()

Attributes

  • primary list[Weapon]
  • secondary list[Weapon]

class siegeapi.Weapon()

  • name str ⇒ E.g.: 'FMG-9'
  • kills int
  • headshots int
  • hs_accuracy float
  • rounds_played int ⇒ Percentage from the total rounds played
  • rounds_won int ⇒ Percentage from the total rounds played
  • rounds_lost float ⇒ Percentage from the total rounds played
  • rounds_with_kill float ⇒ Percentage from the total rounds played
  • rounds_with_multi_kill float ⇒ Percentage from the total rounds played
  • image_url str E.g.: https://staticctf.akamaized.net/.../AUG_A3.png
  • type str ⇒ E.g.: 'Submachine Gun'