Description Usage Arguments Note References See Also Examples
Provides information about a profile's recent match history (last 25 matches, win/loss, timestamp, etc.).
1 | get_legacy_match_history(region_id, realm_id, profile_id, host_region = "us")
|
region_id |
A numeric argument indicating the region of the profile.
|
realm_id |
A numeric argument indicating the realm of the profile. A realm is a subset of the region.
|
profile_id |
A unique, numeric identifier for an individual's profile. |
host_region |
The host region that the API call will be sent to. For most API calls, the same data will be returned regardless of which region the request is sent to. Must be one of "us", "eu", "kr", "tw", "cn". For more information on regionality, refer to Regionality and APIs. |
Although this is a legacy API call, there is no other call available to obtain a profile's match history.
Other legacy API calls:
get_legacy_achievements()
,
get_legacy_ladders()
,
get_legacy_ladder()
,
get_legacy_profile()
,
get_legacy_rewards()
1 2 3 4 5 | # Obtain recent 1v1 results for a profile in the U.S. region
try({
matches <- get_legacy_match_history(region_id = 1, realm_id = 1, profile_id = 4716773)
matches[matches$type=='1v1',"decision"]
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.