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 int1 / 2 / 3
  • × speed int1 / 2 / 3
  • × hp int100 / 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 strY_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)