We get them from Riot. There isn't an API for it; it's complicated.