All Projects → dajk → hltv-api

dajk / hltv-api

Licence: MIT license
An unofficial JSON api for popular CS:GO website hltv.org. Check available methods on https://hltv-api.vercel.app/

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to hltv-api

HLTVDemoDownloader
Downloads demo files from HLTV based on an event ID.
Stars: ✭ 22 (-89.62%)
Mutual labels:  csgo, hltv
node-csgo-cdn
Retrieves the Steam CDN Image URLs for CS:GO Items
Stars: ✭ 51 (-75.94%)
Mutual labels:  csgo
hexen-dll-injector
HEX-EN DLL Injector
Stars: ✭ 20 (-90.57%)
Mutual labels:  csgo
csgo-fake-opening
Fake opening for csgo
Stars: ✭ 88 (-58.49%)
Mutual labels:  csgo
csgo-gsi
A Java library for Counter-Strike: Global Offensive's game state integration
Stars: ✭ 23 (-89.15%)
Mutual labels:  csgo
API
API for SQLMatches.
Stars: ✭ 48 (-77.36%)
Mutual labels:  csgo
steam community market
Get item prices and volumes from the Steam Community Market using Python 3
Stars: ✭ 24 (-88.68%)
Mutual labels:  csgo
obs-csgo
OBS Plugin to capture CS:GO with Trusted Mode enabled
Stars: ✭ 101 (-52.36%)
Mutual labels:  csgo
frag-finder
Takes JSON files exported from CS:GO Demos Manager and spits out readable highlights meant as helpful filenames for fragmovie recording.
Stars: ✭ 22 (-89.62%)
Mutual labels:  csgo
LaColorduino
I build my own clone of "LaMetric"-smartwatch but with some Colorduino for Twitch, YouTube, Twitter, CSGO, etc.. (Working)
Stars: ✭ 56 (-73.58%)
Mutual labels:  csgo
Cfg-Preset-By-Purp1e
该仓库已转移|CSGO Config Preset Abandoned, Visit Link →→→
Stars: ✭ 31 (-85.38%)
Mutual labels:  csgo
csgo-maps-overviews
Counter-Strike Global Offensive maps overviews generated from game files (used by the radar)
Stars: ✭ 47 (-77.83%)
Mutual labels:  csgo
sourcepawn-navmesh
SourcePawn .NAV file reader.
Stars: ✭ 25 (-88.21%)
Mutual labels:  csgo
Chameleon
Basic skin & knife changer for Counter-Strike: Global Offensive
Stars: ✭ 58 (-72.64%)
Mutual labels:  csgo
retakes-instadefuse
Allows a CT to instantly defuse the bomb when all Ts are dead and nothing can prevent the defusal.
Stars: ✭ 65 (-69.34%)
Mutual labels:  csgo
SourceRenderer
A tiny 3D engine that loads and renders Source engine maps - Also known as dreieck.exe
Stars: ✭ 32 (-84.91%)
Mutual labels:  csgo
CSGO-Config-Presets
🎉​ Presets of Config files for many scenarios in CS:GO
Stars: ✭ 167 (-21.23%)
Mutual labels:  csgo
toy-arms
⚔️ my simple reusable game hack components in Rust
Stars: ✭ 71 (-66.51%)
Mutual labels:  csgo
RatPoison
Latest Ver: 1.7; Default Menu Key is F1; Charlatano's Successor; dn
Stars: ✭ 302 (+42.45%)
Mutual labels:  csgo
discord-10man
Discord bot for CS:GO Scrims and Pugs
Stars: ✭ 34 (-83.96%)
Mutual labels:  csgo

HLTV API

Build Status npm Codecov dependencies Status devDependencies Status

This is my experimental project, but also small useful module for node.js which helps you to easy implement data from popular CS:GO website hltv.org.

Installation

$ npm install hltv-api

Methods

  1. getNews
  2. getResults
  3. getMatches
  4. getMatchById
  5. getTopPlayers
  6. getPlayerById
  7. getTopTeams
  8. getTeamById

Check all the available methods and responses: https://hltv-api.vercel.app/

How to use

Simple API example

  • Using CommonJS module:
const HLTV = require('hltv-api').default
const express = require('express')
const app = express()

app.get('/', async (req, res) => {
  const news = await HLTV.getNews()
  res.json(news)
})

app.listen(3000, () => {
  console.log('Listening on port 3000...')
})
  • Using babel and necessary plugins (demo app)
import HLTV from 'hltv-api'

News

app.get('/', async (req, res) => {
  const news = await HLTV.getNews()
  res.json(news)
}
  • request
http://localhost:3000/
  • response

https://hltv-api.vercel.app/api/news.json

Results

app.get('/results', async (req, res) => {
  const results = await HLTV.getResults()
  res.json(results)
})
  • request
http://localhost:3000/results
  • response

https://hltv-api.vercel.app/api/results.json

Matches

app.get('/matches', async (req, res) => {
  const matches = await getMatches()
  res.json(matches)
})
  • request
http://localhost:3000/matches
  • response

https://hltv-api.vercel.app/api/matches.json

Match Stats

app.get('/results/:matchId/stats', async (req, res) => {
  const stats = await getMatchById(req.params.matchId)
  res.json(stats)
})
  • request
http://localhost:3000/stats/matches/2316387
  • response

https://hltv-api.vercel.app/api/match.json

Top Players

app.get('/players', async (req, res) => {
  const players = await getTopPlayers()
  res.json(players)
})
  • request
http://localhost:3000/players
  • response

https://hltv-api.vercel.app/api/players.json

Player Stats

app.get('/players/:playerId', async (req, res) => {
  const player = await getPlayerById(req.params.playerId)
  res.json(player)
})
  • request
http://localhost:3000/players/11893
  • response

https://hltv-api.vercel.app/api/player.json

Top Teams

app.get('/top-teams', async (req, res) => {
  const teams = await getTopTeams()
  res.json(teams)
})
  • request
http://localhost:3000/top-teams
  • response

https://hltv-api.vercel.app/api/teams.json

Single Team

app.get('/teams/:teamId', async (req, res) => {
  const team = await getPlayerById(req.params.teamId)
  res.json(team)
})
  • request
http://localhost:3000/teams/11893
  • response

https://hltv-api.vercel.app/api/team.json

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].