Skip to content

Operators V4

Michal Mikulec edited this page Aug 29, 2022 · 1 revision

class siegeapi.Operators()

Attributes

  • all OperatorsGameMode
  • casual OperatorsGameMode
  • ranked OperatorsGameMode
  • unranked OperatorsGameMode
  • newcomer OperatorsGameMode (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.OperatorsGameMode()

Attributes

  • attacker list[Operator]
  • defender list[Operator]

class siegeapi.Operator()

  • name str
  • matches_played int
  • rounds_played int
  • minutes_played int
  • matches_won int
  • matches_lost int
  • rounds_won int
  • rounds_lost int
  • kills int
  • assists int
  • death int
  • headshots int
  • melee_kills int
  • team_kills int
  • opening_kills int
  • opening_deaths int
  • trades int
  • opening_kill_trades int
  • opening_death_trades int
  • revives int
  • distance_travelled int
  • win_loss_ratio float
  • kill_death_ratio float โ‡’ Percentage; in %
  • headshot_accuracy float โ‡’ Percentage; in %
  • kills_per_round float โ‡’ Percentage; in %
  • rounds_with_a_kill float โ‡’ Percentage; in %
  • rounds_with_multi_kill float โ‡’ Percentage; in %
  • rounds_with_opening_kill float โ‡’ Percentage; in %
  • rounds_with_opening_death float โ‡’ Percentage; in %
  • rounds_with_kost float โ‡’ Percentage; in %
  • rounds_survived float โ‡’ Percentage; in %
  • rounds_with_an_ace float โ‡’ Percentage; in %
  • rounds_with_clutch float โ‡’ Percentage; in %
  • time_alive_per_match float
  • time_dead_per_match float
  • distance_per_round float
  • ร— icon_url int โ‡’ Imgur URL
  • ร— real_name str โ‡’ e.g.: Max Goose
  • ร— birth_place str โ‡’ e.g.: Azraq, Jordan
  • ร— date_of_birth str โ‡’ e.g.: September 6th
  • ร— age int
  • ร— roles list[str] โ‡’ e.g.: ["Crowd Control", "Intel Gatherer", "Secure"]
  • ร— health int โ‡’ 1 / 2 / 3
  • ร— speed int โ‡’ 1 / 2 / 3
  • ร— hp int โ‡’ 100 / 110 / 125 (for convenience; directly translates to/from .health)
  • ร— unit str โ‡’ e.g.: G.E.O.
  • ร— country_code str โ‡’ e.g.: MA (ISO 3166-1 alpha-2)
  • ร— season_introduced str โ‡’ Y_S_ (for example: Y6S3 for Osa)

ร— - Stats that are only there if you set the op_about to True when calling .load_operators()
Like so: player.load_operators(op_about=True)

Clone this wiki locally