Bot releases are hidden (Show)
Published by gigobyte about 7 years ago
Messed up version 2.2.2 and this resulted in an extra version bump
winnerTeam
property to the match modelPublished by gigobyte about 7 years ago
Published by gigobyte about 7 years ago
getTeamStats
methodPublished by gigobyte about 7 years ago
Published by gigobyte about 7 years ago
getTeam
methodPublished by gigobyte about 7 years ago
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.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.team1
and team2
changed the same way as in getMatch
.map
property added.label
changed to title
.stars
property added.team1
and team2
changed the same way as in getMatch
.stars
property added.Published by gigobyte over 7 years ago
connectToScorebot
methodPublished by gigobyte over 7 years ago
getTeamRankingDates
methodgetTeamRanking
methodPublished by gigobyte over 7 years ago
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...
date
is now a unix timestamp instead of a stringplayers
is now an object instead of two-dimensional arrayhighlights
has been removed because it was unstabletime
has been renamed to date
to keep the API consistent and it's also now a unix timestamp instead of stringmap
string has been changed to a maps
array because live matches now show all played maps in the new matches pageeventId
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 matchesmap
has been renamed to maps
event
property has been added with id
and name
country
has been changed from a string to a object with name
and code
propertiescategory
property has been added to indicate the type of threadPublished by gigobyte almost 8 years ago
getActiveThreads
methodeventId
property for getMatches
| thanks redzumi
getMatches
objects | thanks redzumi
Published by gigobyte almost 8 years ago
getMatch
method.