06

Jun

Fetching Fortnite match statistics and results with the Overwolf API

Published April 08, 2020 08:04 PM EST
Updated May 12, 2020 11:05 PM EST
Fetching Fortnite match statistics and results with the Overwolf API

          In this article we will explain how to integrate with the Overwolf API and fetch real-time game events such as kills, deaths, standings and more.

Overwolf Capabilities

          Overwolf helps us to get results from the game. Some examples include the following:

Highlights

          By using the Overwolf API we can build applications to get highlight clips along with clips based on events, like kills or deaths. In this way, we can easily show any player's gameplay.

Game Stats

          Overwolf's API allows us to fetch game stats like wins, number of kills, the killed player's name and more.

Stats API For Fortnite

          Here are the list of API’s available for Fortnite game to fetch events

Kills

We can get total number of kills in a match, along with being able to subscribe for multiple events related to kills, i.e.:

  1. Kill: We can subscribe so that whenever a player in a particular game kills another player, our webhook will be notified.

  2. Knockout: When a player knockouts another player, our webhook will be notified in real time.

  3. Hit: When a local player hits an enemy with weapon, we will be notified.

kills

Available Events

Killed

          This is an event when a local player kills another player and the application will be notified via the player's name.

Killer

          When a player will be killed then application will get notified with the killer player's name.

Revived

          When a local player will be revived then our webhook will be notified.

Death

          When a local player is knocked out, then the application will be notified in real-time with the player information who was knocked out.

Match

          We have 2 events regarding Match. One is on match start and other is on match end. We can listen and get notifications on both.

Along with info we can fetch other statistics regarding match such as:

  1. Is the match is Solo Mode?
  2. Is the match is Duo Mode?
  3. Is the match Squad Mode?
  4. Playlist Respawn in match

Rank

We can get multiple statistics related to rank.

  1. We can get the player rank at the end of each match
  2. We can get the total active teams of any match
  3. We can get the total active players of any match

Me

We can get some information about any player such as the following:

  1. Player nickname
  2. Player Health
  3. Player Accuracy ( hits/ total shots)
  4. Amount of shields the player has

Phase

We can get the current game state. These values can be:

  1. lobby
  2. loading_screen
  3. airfield
  4. aircraft
  5. freefly

Location

          We can get any player location though a query. We will get (x, y, z) location in the response.

Team

          We can get user team player names by querying.

Items

We can get information regarding the following items:

  1. Inventory (We can get current inventory of any user)
  2. Selected_slot (We can get selected slot in quickbar of any user)
  3. Quickbar (We can get information about his quickbar, it will send us a response regarding item names in the quickbar)

Counters

          We can get any user's latency by querying that from the current match.

fortnite_javascript

Subscription Example in Javascript

          You can define features in array for event listening like so:

javascript_code

You can then initialize game events with the following code:

javascript_code2

We can register generic events like:

javascript_code2

Here is code snippet where you can see our features/events listeners.

javascript_code2

          Winterwind is providing blockchain development services for a number of companies. Crypto-based gaming sites, website development and exchange development are few of the examples.

Talk to us about your project today!

Get in touch by sending an email to anthony@winterwind.com

YOU MAY ALSO LIKE

A Recap of Tron's Development Update for this Year's Quarter
A Recap of Tron's Development Update for this Year's Quarter
May 13, 2020 by Haizel Lien

          Most in the crypto news today is bombarded with Bitcoin halving and the sudden crash of the Bitcoin price. The...

Read more...
Vitalik Buterin believes that the nation needs Ethereum
Vitalik Buterin believes that the nation needs Ethereum
May 09, 2020 by Haizel Lien

          The success of live streaming of the Ethereal summit on May 7, 2020, was remarkable. A bunch of different [age...

Read more...

Talk to us about your project today

Fill out the form below and receive a reply within 24 hours.