1.0.10 • Published 3 months ago

liquipedia-api v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Liquipedia Node.js API

Intro

install package

npm i liquipedia-api

Please refer to liquipedia's terms of use for rate-limiting information.

init api

import { LiquipediaApi } from 'liquipedia-api';

const liquipediaApi = new LiquipediaApi({
  USER_AGENT: 'MyAwesomeProject/1.0 (my.email@gmail.com)',
});

methods

Dota

getTeams

api.dota.getTeams()
[
  {
    name: 'B8',
    region: 'CIS',
    url: 'https://liquipedia.net/dota2/B8',
    logo: 'https://liquipedia.net/commons/images/thumb/c/c6/B8_lightmode.png/41px-B8_lightmode.png'
  },
  {
    name: 'CIS Rejects',
    region: 'CIS',
    url: 'https://liquipedia.net/dota2/CIS_Rejects',
    logo: 'https://liquipedia.net/commons/images/thumb/1/12/CIS_Rejects_allmode.png/50px-CIS_Rejects_allmode.png'
  },
]

getTransfers

api.dota.getTransfers()

getMatches

api.dota.getMatches()
[
  {
    leftTeam: { name: 'Gladiators', shortName: 'Gla', currentScore: 1 },
    rightTeam: { name: 'Gambit Esports', shortName: 'Gambit', currentScore: 0 },
    bestOf: 3,
    status: 'Live',
    startTime: 2022-02-08T18:00:00.000Z,
    twitchStream: 'https://twitch.tv/beyondthesummit2',
    tournamentName: 'Dota 2 Champions League Season 7',
    tournamentShortName: 'D2CL Season 7'
  }
]

getHeroes

api.dota.getHeroes()

getItems

api.dota.getItems()
[
  {
    type: 'Basic',
    category: 'Miscellaneous',
    url: 'https://liquipedia.net/dota2/Wind_Lace',
    name: 'Wind Lace',
    img: 'https://liquipedia.net/commons/images/thumb/a/a1/Wind_Lace.png/60px-Wind_Lace.png',
    price: 250
  },
  {
    type: 'Basic',
    category: 'Secret Shop',
    url: 'https://liquipedia.net/dota2/Demon_Edge',
    name: 'Demon Edge',
    img: 'https://liquipedia.net/commons/images/thumb/a/ae/Demon_Edge.png/60px-Demon_Edge.png',
    price: 2200
  },
]

getPatches

api.dota.getPatches()
[
  {
    version: '7.29b',
    date: 2021-04-15T21:00:00.000Z,
    changes: 'Balance Changes\n',
    url: 'https://liquipedia.net/dota2/7.29b'
  },
  {
    version: '7.29',
    date: 2021-04-08T21:00:00.000Z,
    changes: 'New Hero  Dawnbreaker\n' +
      'Added to Captains Mode:\n' +
      ' Hoodwink\n' +
      'Map Updates\n' +
      'Water Power Rune\n' +
      'Balance Changes\n',
    url: 'https://liquipedia.net/dota2/7.29'
  },
]

getTournaments

api.dota.getTournaments()
1.0.9

3 months ago

1.0.8

3 months ago

1.0.10

3 months ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago