Events

Introduction#

Below is an overview on how to fetch public event data for your events.

note

All APIs are current in beta and are subject to breaking changes

Collect Scores#

To retrieve the current live scores for your event you can create the following request:

where {event_id} is the unique id of the current event you wish to query

https://api.hypegamer.gg/collect_score/{event_id}?type=json

This API returns the followig format:

  • An array of the following type
    • team: name of the team in the event
    • placement: current placement for this team in the event (0 indexed)
    • score: a score object
      • score: the calculated score for this team in this event. THis is based on the scoring algorithm that is selected when the event was created
      • records: a list of metadata about the matches that attributed to their current score

Example#

https://api.hypegamer.gg/collect_score/c47ff566-d409-4576-a7b3-feeeb9b44ba5?type=json
[
{
"team": "Fantastic Team",
"placement": 0,
"score": {
"kills": 34,
"contracts": 0,
"damage": 16063,
"placement": [4, 8, 26, 25],
"score": 78.126,
"owner": "Fantastic Team",
"records": [
{
"type": "",
"kills": 11,
"contracts": 0,
"damage": 4072,
"placement": 4,
"score": 31.144,
"external_id": "4560782745833709055",
"recon": 0,
"scavenger": 0,
"most_wanted": 0,
"bounty": 0
},
{
"type": "",
"kills": 9,
"contracts": 0,
"damage": 4618,
"placement": 8,
"score": 18.236,
"external_id": "901558892822007135",
"recon": 0,
"scavenger": 0,
"most_wanted": 0,
"bounty": 0
},
{
"type": "",
"kills": 8,
"contracts": 0,
"damage": 3887,
"placement": 26,
"score": 15.774,
"external_id": "8967661869070134883",
"recon": 0,
"scavenger": 0,
"most_wanted": 0,
"bounty": 0
},
{
"type": "",
"kills": 6,
"contracts": 0,
"damage": 3486,
"placement": 25,
"score": 12.972000000000001,
"external_id": "2096145068689091925",
"recon": 0,
"scavenger": 0,
"most_wanted": 0,
"bounty": 0
}
],
"bounty": 0,
"most_wanted": 0,
"scavenger": 0,
"recon": 0
}
}
]