Socket
Socket
Sign inDemoInstall

@vermaysha/hoyolab-api

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vermaysha/hoyolab-api

Unonfficial Hoyolab API Wrapper


Version published
Weekly downloads
8
decreased by-80.49%
Maintainers
1
Weekly downloads
 
Created
Source

HoYoLab API - TypeScript/JavaScript HoYoLab API

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

Genshin Impact Example

import { GenshinImpact } from '@vermaysha/hoyolab-api'

const client = new GenshinImpact({
  cookie: 'YOUR COOKIE',
  uid: 'YOUR UID',
})

;(async () => {
  const character = await client.getCharacters()
  console.log(character)

for more example you can view here Examples

  1. To begin, login with your HoYoLab Account.
  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

Keywords

FAQs

Package last updated on 03 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc