Giter Site home page Giter Site logo

helldivers2-api's Introduction

Helldivers 2 API

ESLint

This project aims to create an API wrapper for Helldivers 2.
I have been playing the game a lot since it is out, and I wanted to try and build something around it.

Currently, there is no way to get access to player data, but we're not done!

Features

  • Get current war id
  • Get war statistics
  • Get war info
  • Get war news feed
  • Get war summary (galaxy & planet statistics)
  • Get war main order
  • Get war leaderboards
  • Player endpoints
  • Global statistics endpoints

Usage example

Simply import the module and call the available methods. All of them return promises.

import helldivers2 from "helldivers2-api";

const currentWarId = await helldivers2.getCurrentWarId();
const warInfo = await helldivers2.getWarInfo(currentWarId);

console.log('War started on ' + warInfo.startDate);

const newsFeed = await helldivers2.getWarNewsFeed(currentWarId);

newsFeed.forEach((article) => {
    console.log(article.message);
});

// ...

Contributing

If you're interested in reverse-engineering and you want to contribute to this project, don't be afraid to submit a PR or use the discussion feed.

If you want to chat with me, get in touch using my email address or Discord: php_sensei

© Edouard Courty - 2024

helldivers2-api's People

Contributors

edouardcourty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.