3.1.2 • Published 1 year ago

@vermaysha/hoyolab-api v3.1.2

Weekly downloads
-
License
LGPL-2.1-only
Repository
github
Last release
1 year ago

Its unofficial HoYoLab API Wrapper for getting hoyoverse some in-game data, including Genshin Impact, Honkai Impact 3rd.

Install

For NPM npm install @vermaysha/hoyolab-api

For Yarn yarn install @vermaysha/hoyolab-api

*Note: This library only support ESM Mode

Features

HoYoLab API

FeaturesStatus
Displays a list of owned HoYoVerse game accounts:heavy_check_mark:
Displays the exploration history of the HoYoVerse game account that is owned according to the selected game:heavy_check_mark:

Genshin Impact API

FeaturesStatus
Get detailed information of the selected account, including character, statistics and exploration history:heavy_check_mark:
Get daily login information on the hoyolab page:heavy_check_mark:
Get prize list information for daily login:heavy_check_mark:
Make claims on daily login rewards:heavy_check_mark:
Gets a full list of acquired characters, including weapons and artifacts used and constellations that have been acquired:heavy_check_mark:
Get a list of daily resources including the daily resin that has been obtained, the status of transformation tools and teapot coins:heavy_check_mark:
Get the history of obtaining primogems and mora through the Diary feature:heavy_check_mark:
Obtain a complete history of the results of the current and previous Spiral Abyss challenge:heavy_check_mark:
Claim the redeem code provided:heavy_check_mark:

How to obtain HoYoLab Cookie

  1. To begin, login with your HoYoLab Account or from Battlepass.
  2. Type java in the address bar followed by the script down below.
  3. script:check = document.cookie.includes('ltoken') && document.cookie.includes('ltuid') || alert('Please logout and log back in before trying again, cookie is currently expired/invalid!'); cookie = document.cookie; check && document.write(`<p>${cookie}</p><br><button onclick="navigator.clipboard.writeText('${cookie}')">Click here to copy!</button><br>`)
  4. Once you've successfully ran the script, click the Click here to copy! button to copy the cookie.
  5. Finally, you can copy your cookie

Documentation

view - Documentation

License

@vermaysha/hoyolab-api Copyright (C) 2022 Ashary Vermaysha

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

1.7.2

1 year ago

1.7.1

1 year ago

2.3.1-beta.0

1 year ago

2.3.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.3

1 year ago

2.4.0

1 year ago

2.2.2

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.2.0-beta.0

1 year ago

3.0.0

1 year ago

1.7.0

1 year ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago