Teamfight Tactics

Overview

This document will provide you with a basic understanding of the Teamfight Tactics developer resources. It is designed to help you begin exploring and developing your own tools and products for Teamfight Tactics.

Getting Started

Before starting on a product for Teamfight Tactics, there are two requirements every developer must complete:

Only after developers have read the policies and registered their product on the Developer Portal, are they granted a limited license to use Riot Games’ intellectual property (IP) outlined in the Legal Jibber Jabber.

After you’ve read the policies and registered your product, it’s smooth sailing from there. We suggest following our Twitter and checking our blog to receive updates and joining the Developer Discord for help from the community. The Developer Discord is full of super talented and passionate developers that often run into the same issues you have. When you ask questions in the Discord you’ll likely get more people helping you and your question will help others that joined after you. We hold office hours every other Friday where members of the Discord can ask questions related to developer tools or their projects. Beyond that gl and hf. Send us an app note if you run into issues that the community couldn’t help you with.

Routing Values

The first step to executing a request to the Teamfight Tactics API is to select the correct host to execute your request to. The Teamfight Tactics (TFT) API uses what we call routing values in the domain to ensure your request is properly routed. We use both platform ids and regions as routing values (e.g., na1 and americas). These routing values are determined by the topology of the underlying services. Services are frequently clustered by platform resulting in platform ids being used as routing values. Occasionally services are clustered by region, which is when regional routing values are used. The best way to tell if an endpoint uses a platform or a region as a routing value is to execute a sample request through the reference page.

Platform Routing Values

Platform Host BR1 br1.api.riotgames.com EUN1 eun1.api.riotgames.com EUW1 euw1.api.riotgames.com JP1 jp1.api.riotgames.com KR kr.api.riotgames.com LA1 la1.api.riotgames.com LA2 la2.api.riotgames.com NA1 na1.api.riotgames.com OC1 oc1.api.riotgames.com TR1 tr1.api.riotgames.com RU ru.api.riotgames.com

Regional Routing Values

Region Host AMERICAS americas.api.riotgames.com ASIA asia.api.riotgames.com EUROPE europe.api.riotgames.com

Match History

Best Practices

To best utilize TFT match history there are two things to keep in mind; match history is still evolving and fresh data is cheaper.

Response Body Structure

A basic version of TFT match history was released in the client in patch 9.19. If you look up matches played during this patch they'll return data_version: "1" which is used through patch 9.20. In patch 9.19, the only fields for a participant that are guranteed to be accurate are last_round , level , placement , and puuid . In patch 9.20, items were added to the response body but were not guranteed to be accurate. As of patch 9.21 all the fields in the response should be accurate. As of patch 9.22, a new field called character_id was added to the UnitDto and the data version was bumped to data_version: "2" .

Fresh Data

The match history service itself is optimized for fresh data. The newer the matches, the cheaper the cost to look them up. With Set 2 launching on November 4th, 2019 and the data inconsistencies prior to patch 9.20, we’re discouraging developers from backfilling data for Set 1.

Static Data

There is currently no static content that is automatically built for each patch of Teamfight Tactics. Many of the assets from Teamfight Tactics can be gathered from League of Legends' Data Dragon. Below you can find some basic static data for Teamfight Tactic sets.

Current Set

Fates contains static data for traits, champions, and items.

Traits

[ { "key": "Set4_Adept", "name": "Adept", "description": "Adepts calm the flow of battle, reducing the Attack Speed of all enemies for a few seconds at the start of combat.", "type": "class", "sets": [ { "style": "bronze", "min": 2, "max": 2 }, { "style": "gold", "min": 3, "max": 3 }, { "style": "chromatic", "min": 4 } ] }, ... ]

Champions

[ { "name": "Aatrox", "championId": "TFT4_Aatrox", "cost": 4, "traits": [ "Cultist", "Set4_Vanguard" ] }, ... ]

Items

[ { "id": 1, "name": "B.F. Sword", "description": "Gain Attack Damage." }, ... ]

Previous Sets

Galaxies: Return to the Stars

Galaxies

Rise of the Elements