# HLTV CS2 Results, Rankings & Team Profile Extractor (`nimbryxo-studio/hltv-cs2-results-rankings-and-team-profile`) Actor

Collect HLTV Counter-Strike match results, the upcoming match schedule, full match detail with map scores, team rosters, and the HLTV world team ranking.

- **URL**: https://apify.com/nimbryxo-studio/hltv-cs2-results-rankings-and-team-profile.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Automation, Developer tools, News
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## HLTV CS2 Results, Rankings & Team Profile Extractor

HLTV is the primary results and ranking authority for competitive Counter-Strike. This actor pulls recent match results, the upcoming match schedule, full match detail pages (maps, scores, event info), team profiles with current rosters, and the HLTV world team ranking.

### What this actor does

- Paginates through HLTV's recent results feed, grouped by date
- Lists upcoming and live matches with star rating, format, and scheduled start time
- Fetches full detail for specific matches by ID, including per-map scores when played
- Fetches team profiles by ID, including current roster, coach, and world/peak ranking
- Fetches the current HLTV world team ranking with points and roster per team
- Filters matches by a team/event keyword and upcoming matches by a minimum star rating
- Omits any field HLTV's page doesn't expose for that record rather than sending it empty

### Output per record

Every record carries a `recordType`, a `sourceUrl`/`hltvUrl`, and a `scrapedAt` UTC timestamp.

**Match result** (`recordType: "matchResult"`, default mode)

- `matchId`, `hltvUrl`, `date`
- `teamOne`, `teamTwo`, `teamOneId`, `teamTwoId`
- `scoreOne`, `scoreTwo`, `eventName`

**Upcoming match** (`recordType: "upcomingMatch"`, mode=upcoming)

- `matchId`, `hltvUrl`, `eventName`, `eventId`, `region`, `eventType`
- `stars` — HLTV's 0-5 match-importance rating
- `teamOne`, `teamTwo`, `teamOneId`, `teamTwoId`
- `format` — e.g. `bo3`
- `startTime` — ISO 8601 scheduled start
- `live` — `true` only on matches currently in progress

**Match detail** (`recordType: "matchDetail"`, mode=byMatch)

- `matchId`, `hltvUrl`, `name`, `description`
- `eventStatus`, `startDate`, `location`
- `teams` — each with `name` and `hltvUrl`
- `maps` — each with `name`, `teamOne`, `teamTwo`, `scoreOne`, `scoreTwo`, for maps that were played

**Team profile** (`recordType: "teamProfile"`, mode=byTeam)

- `teamId`, `hltvUrl`, `name`, `country`, `sport`
- `worldRanking`, `peakRanking`
- `players` — each with `name`, `nick`, `nationality`, `imageUrl`, `hltvUrl`
- `coach` — `name`, `nationality`, `hltvUrl`, when the team has a listed coach

**Ranking entry** (`recordType: "rankingEntry"`, mode=ranking)

- `rank`, `teamName`, `teamId`, `hltvUrl`, `points`
- `players` — the roster HLTV lists for the ranking period

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `results` | `results`, `upcoming`, `byMatch`, `byTeam`, or `ranking` |
| `searchQuery` | string | – | Reserved for a future name-based lookup; currently has no effect on results |
| `matchIds` | array | `[]` | HLTV match IDs or full match URLs, e.g. `2396583` (mode=byMatch) |
| `teamIds` | array | `[]` | HLTV team IDs or full team URLs, e.g. `4608` (mode=byTeam) |
| `containsKeyword` | string | – | Only emit matches whose team or event name contains this substring |
| `minStars` | integer | – | Only emit upcoming matches with at least this many stars, 0-5 (mode=upcoming) |
| `maxItems` | integer | `50` | Maximum number of records to return (1-1000) |
| `proxyConfiguration` | object | Apify proxy on | Optional; engaged automatically only if HLTV returns a 403/429 |

#### Example: recent results for a specific team

```json
{
    "mode": "results",
    "containsKeyword": "Natus Vincere",
    "maxItems": 30
}
```

#### Example: high-profile upcoming matches

```json
{
    "mode": "upcoming",
    "minStars": 3,
    "maxItems": 50
}
```

#### Example: fetch specific team profiles

```json
{
    "mode": "byTeam",
    "teamIds": ["4608", "6667"]
}
```

### Use cases

- **Results tracking** — pull recent match results for a specific team or event to maintain a historical log
- **Match schedule alerts** — filter upcoming matches by star rating to surface only the highest-profile fixtures
- **Roster monitoring** — fetch team profiles periodically to catch lineup or coach changes
- **Power-ranking tracking** — re-fetch the world ranking weekly to chart movement for teams you follow
- **Match detail archiving** — pull full map-by-map scorelines for completed matches by ID

### FAQ

**Does `searchQuery` let me search by team or player name?** Not yet — the field is defined for a future name-based lookup but currently has no effect; use `teamIds` or `matchIds` with HLTV's numeric IDs instead.

**Where do I find a match or team ID?** They're in the HLTV URL itself, e.g. `hltv.org/matches/2396583/...` has match ID `2396583`, and `hltv.org/team/4608/...` has team ID `4608`. You can also pass the full URL instead of the bare ID.

**Why is `maps` sometimes missing from a match detail record?** It's only populated for matches that have actually been played; matches that haven't started yet won't have map scores.

**Why is `live` usually absent?** It's only set to `true` on matches HLTV currently marks as in progress; it's left out entirely for finished or not-yet-started matches rather than being sent as `false`.

**Does `minStars` apply to results or rankings too?** No — it only filters `upcoming` mode; HLTV doesn't publish a star rating for past results or ranking entries.

**How far back does `results` mode go?** It paginates through HLTV's results feed starting from the most recent matches; `maxItems` controls how many pages it fetches before stopping.

**Is this affiliated with HLTV?** No. This actor reads HLTV's publicly accessible pages and is not affiliated with, endorsed by, or sponsored by HLTV.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `searchQuery` (type: `string`):

Reserved for name-based lookups; team/match IDs remain the primary axis.

## `matchIds` (type: `array`):

HLTV match IDs or full match URLs, e.g. `2396583`.

## `teamIds` (type: `array`):

HLTV team IDs or full team URLs, e.g. `4608`.

## `containsKeyword` (type: `string`):

Only emit matches whose team or event name contains this substring.

## `minStars` (type: `integer`):

Only emit upcoming matches with at least this many stars (0-5).

## `maxItems` (type: `integer`):

Hard cap on emitted records.

## `proxyConfiguration` (type: `object`):

Optional. Engaged automatically only if HLTV returns 403/429.

## Actor input object example

```json
{
  "mode": "results",
  "matchIds": [],
  "teamIds": [],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `matches` (type: `string`):

Dataset containing all scraped HLTV records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "results",
    "matchIds": [],
    "teamIds": [],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/hltv-cs2-results-rankings-and-team-profile").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "results",
    "matchIds": [],
    "teamIds": [],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/hltv-cs2-results-rankings-and-team-profile").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "results",
  "matchIds": [],
  "teamIds": [],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nimbryxo-studio/hltv-cs2-results-rankings-and-team-profile --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/hltv-cs2-results-rankings-and-team-profile"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dtifKdpd6gx6PVd4C/builds/2dxEaN5ybHlX6vU7Q/openapi.json
