Skip to content

TFT Items

Antoine CLOP edited this page Aug 20, 2020 · 2 revisions

TFT Items

The following endpoints provide all details about items in Team Fight Tactics. It also includes icons for each one of them.

Methods

Item (by TFTItemId)

Parameters

  • TFTItemId: The unique identifier for a TFT Item.

The function will run synchronously and returns a TFTItem if found, nil otherwise. You can then access the icon of this item with the property icon

Usage example

let item = league.tftAPI.getItem(byId: TFTItemId(1))
if let item = item {
    print("Success!")
} else {
    print("Item not found")
}

Item (by Name)

Parameters

  • ByName: The name of an item.

The function will run synchronously and returns a TFTItem if found, nil otherwise. You can then access the icon of this item with the property icon

Usage example

let item = league.tftAPI.getItem(byName: "Spatula")
if let item = item {
    print("Success!")
} else {
    print("Item not found")
}

Items

Parameters

The function will run synchronously and returns all items of TFT in a TFTItem Array.

Usage example

let items = league.tftAPI.getItems()
Clone this wiki locally