HLTV

The unofficial HLTV Node.js API

MIT License

Downloads
890
Stars
376
Committers
40

Bot releases are hidden (Show)

HLTV - 2.2.3

Published by gigobyte about 7 years ago

Messed up version 2.2.2 and this resulted in an extra version bump

  • Added winnerTeam property to the match model
  • Fixed a bug when parsing vetos (Parsing error #18)
HLTV - 2.2.1

Published by gigobyte about 7 years ago

  • Fixed match streams (No stream name #16) | thanks 0ArturkA
HLTV - 2.2.0

Published by gigobyte about 7 years ago

  • Added getTeamStats method
HLTV - 2.1.1

Published by gigobyte about 7 years ago

  • Fixed Team data not parsing #10
HLTV - 2.1.0

Published by gigobyte about 7 years ago

  • Added getTeam method
HLTV - 2.0.0

Published by gigobyte about 7 years ago

Package rewritten in TypeScript ✨

General

Two new named exports added - MatchType and Map, they are both used to easily filter matches for the new getMatchesStats endpoint.

import HLTV, { MatchType, Map } from 'hltv'
  • getMatchesStats and getMatchMapStats methods added.

getMatch

  • team1 and team1Id have been merged into a team1 object that has name and id properties. Same goes for team2.
  • vetoes property added.
  • event's link property has been changed to id.
  • players property has been changed. Now the keys are static - team1 and team2 and now it's an array of objects containing player names and IDs, not just names.
  • live property bugfix.
  • hasScorebot property added.
  • highlightedPlayer property added. Keep in mind that for past matches this property contains the "Top player in match".
  • headToHead property added.
  • highlights property added.

getMatches

  • Split live matches and upcoming matches into different interfaces.
  • team1 and team2 changed the same way as in getMatch.
  • map property added.
  • label changed to title.
  • stars property added.

getLatestResults

  • renamed to getResults.
  • team1 and team2 changed the same way as in getMatch.
  • stars property added.

getActiveThreads

  • renamed to getRecentThreads

getTeamRankingDates *REMOVED*

HLTV - 1.2.1

Published by gigobyte over 7 years ago

  • Added connectToScorebot method
HLTV - 1.1.0

Published by gigobyte over 7 years ago

  • Added getTeamRankingDates method
  • Added getTeamRanking method
HLTV - 1.0.0

Published by gigobyte over 7 years ago

Changes:

General

The library now exports a singleton, you no longer have to create an instance of it.

const hltv = new HLTV()
hltv.get...

is now just

HLTV.get...

getMatch

  • date is now a unix timestamp instead of a string
  • players is now an object instead of two-dimensional array
  • highlights has been removed because it was unstable

getMatches

  • time has been renamed to date to keep the API consistent and it's also now a unix timestamp instead of string
  • map string has been changed to a maps array because live matches now show all played maps in the new matches page
  • eventId is now part of a event object property that has the event name in addition to the id
  • finished has been removed as the matches page no longer shows finished matches

getLatestResults

  • map has been renamed to maps
  • event property has been added with id and name

getStreams

  • country has been changed from a string to a object with name and code properties

getActiveThreads

  • category property has been added to indicate the type of thread
HLTV - 0.2.3

Published by gigobyte over 7 years ago

Temporary fix by @LaCTuK, you can check out the changes here

HLTV - 0.2.1

Published by gigobyte almost 8 years ago

  • Added getActiveThreads method
  • Added eventId property for getMatches | thanks redzumi
  • Fixed match status properties for the getMatches objects | thanks redzumi
HLTV - 0.2.0

Published by gigobyte almost 8 years ago

  • Added getMatch method.