> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ticktock.bet/llms.txt
> Use this file to discover all available pages before exploring further.

# Team Extras

> Compute-on-demand team aggregations not stored in TeamMapStats — economy profile, OT, LAN/online, map streaks, race-to-N, headshot %, map pool

## What it returns

Seven heuristic aggregations that walk recent `Match` / `Map` / `Round` rows on each call. Pulled into a separate endpoint so the cheap [Get Team](/api-reference/teams/get-team) call doesn't pay this cost — only the model team uses these.

### `race_to_rates`

Win % when this team races to 6, 9, or 12 round wins on a map. Sample taken from the last 30 finished maps.

```json theme={null}
{
  "race_to_6_win_pct": 0.612,
  "race_to_9_win_pct": 0.547,
  "race_to_12_win_pct": 0.481,
  "sample_maps": 27
}
```

### `headshot_pct`

Weighted-average HS% across the team's roster (rounds-played as weight). Pulls from `PlayerMapStats.map_name = "all"` for the requested window.

### `economy_profile`

Round-level economy splits from ScoreBot data, last 40 finished matches.

| Field                                   | Meaning                                      |
| --------------------------------------- | -------------------------------------------- |
| `eco_win_pct`                           | Eco-round win %                              |
| `force_buy_win_pct`                     | Force-buy win %                              |
| `full_buy_win_pct`                      | Full-buy win %                               |
| `full_buy_vs_opponent_full_buy_win_pct` | Mirror full-buy duels                        |
| `post_plant_win_pct_as_t`               | T-side win % after planting                  |
| `r2_conversion_after_pistol_win`        | Round 2 win % after winning the pistol round |
| `sample_rounds`                         | Volume                                       |

### `overtime_stats`

OT map win rate from `Map.overtime_periods > 0`.

```json theme={null}
{ "ot_maps_played": 12, "ot_maps_won": 7, "ot_win_pct": 0.583 }
```

### `lan_online_split`

Match win rate split by venue (`match_scope` = `lan` or `online`).

```json theme={null}
{
  "lan_maps_played": 38, "lan_wins": 22, "lan_win_pct": 0.579,
  "online_maps_played": 84, "online_wins": 51, "online_win_pct": 0.607
}
```

### `map_streaks`

Current W/L streak per map, sorted by streak length. Each entry: `{ map_name, streak_type: "W" | "L", streak_length }`. Useful for "team is on a 5-map win streak on Mirage" widgets.

### `map_pool`

Derived from veto picks across the team's recent matches. Each entry: `{ map_name, picks }`, sorted by pick count. Distinct from the global [Active Map Pool](/api-reference/maps/active-pool) — this is what *this team* actually picks.

## Required scope

* **Minimum:** `cs2:teams:read`

## Query

| Param         | Default | Description                                                                                                                    |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `time_filter` | `3m`    | Window for `headshot_pct` only. Accepts `3m`, `6m`, `1y`, `all`. Other blocks use rolling windows on raw Match/Map/Round data. |

## Example

```bash theme={null}
curl -H "X-API-Key: $TT_KEY" \
  "https://ticktock.bet/cs2/v1/teams/11712/extras?time_filter=6m"
```

## Use cases

* **Pre-match modelling** — feed `economy_profile` + `race_to_rates` + `headshot_pct` straight into your features.
* **Match-preview "form" widgets** — `map_streaks` + `lan_online_split`.
* **Map-specific micro-markets** — pricing decisions informed by `map_pool` and `map_streaks`.


## OpenAPI

````yaml openapi/cs2-api.json GET /cs2/v1/teams/{hltv_id}/extras
openapi: 3.1.0
info:
  title: TickTock B2B API
  description: >-
    Unified CS2 API (``/cs2/v1/*``) plus sport-agnostic ``/v1/*`` meta
    endpoints. Tenant-authenticated via ``X-API-Key`` or ``x-access-token``
    header (REST), or ``api_key`` query parameter (WebSocket). Field visibility
    is gated by per-key scopes — see ``docs/CS2_API_REFERENCE.md`` for the
    catalog and migration.
  version: 1.0.0
servers:
  - url: https://ticktock.bet
    description: Production (same-origin proxy)
  - url: https://feed.ticktock.bet
    description: Production (B2B subdomain)
security: []
paths:
  /cs2/v1/teams/{hltv_id}/extras:
    get:
      tags:
        - CS2
      summary: Heavy on-the-fly aggregations for a CS2 team
      description: >-
        Compute-on-demand stats that don't live in ``TeamMapStats``. Walks
        recent ``Match``/``Map``/``Round`` rows so the cost is isolated from the
        cheap ``/teams/{id}`` profile call.


        Returns:


        - ``race_to_rates`` — race-to-6/9/12 win % across recent maps

        - ``headshot_pct`` — weighted-average HS% across the team's roster

        - ``economy_profile`` — eco/force/full-buy win %, post-plant T win %,
        pistol → R2 conversion %, full-buy mirror W/L

        - ``overtime_stats`` — OT map win rate

        - ``lan_online_split`` — match win rate by venue

        - ``map_streaks`` — current W/L streak per map

        - ``map_pool`` — derived from picks across recent vetoes


        ``time_filter`` only affects ``headshot_pct`` (which reads from
        ``PlayerMapStats``); other blocks use rolling windows on raw
        Match/Map/Round data.
      operationId: get_team_extras_cs2_v1_teams__hltv_id__extras_get
      parameters:
        - name: hltv_id
          in: path
          required: true
          schema:
            type: integer
            title: Hltv Id
        - name: time_filter
          in: query
          required: false
          schema:
            type: string
            description: 'Window for ``headshot_pct``: 3m, 6m, 1y, all.'
            default: 3m
            title: Time Filter
          description: 'Window for ``headshot_pct``: 3m, 6m, 1y, all.'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Team Extras Cs2 V1 Teams  Hltv Id  Extras Get
              example:
                data:
                  hltv_id: 11712
                  name: Sashi
                  country_code: DK
                  world_ranking: 42
                  region: EMEA
                  time_filter: 3months
                  map_stats:
                    - map_name: all
                      maps_played: 87
                      wins: 51
                      losses: 33
                      win_rate: 0.586
                      rating: 1.06
                      ct_round_win_pct: 0.524
                      t_round_win_pct: 0.481
            application/xml: {}
        '401':
          description: >-
            Missing API key. Pass either `X-API-Key: <your-key>` or
            `$x$access-token: <your-key>` on REST calls (or `?api_key=` on
            WebSocket handshakes).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Human-readable error message.
                required:
                  - detail
              example:
                detail: Missing X-API-Key or $x$access-token header
        '403':
          description: >-
            API key authenticated but lacks the scope required for this
            endpoint, or the path's sport is not in the key's `sport_allowlist`.
            Use `GET /v1/whoami` to inspect the granted scope set.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Human-readable error message.
                required:
                  - detail
              example:
                detail: >-
                  Required scope 'cs2:matches:detail' is not granted to this API
                  key. Contact your account manager to extend the key's scopes.
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Human-readable error message.
                required:
                  - detail
              example:
                detail: Match not found
        '422':
          description: >-
            Validation error — a query/path parameter failed validation. The
            body lists the offending fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
              example:
                detail:
                  - type: enum
                    loc:
                      - query
                      - time_filter
                    msg: 'Input should be one of: 3m, 6m, 1y, all'
                    input: 2w
        '429':
          description: >-
            Tenant rate limit exceeded. Default is 600 req/min per tenant;
            configurable per contract. WebSocket connections are not
            rate-limited at the request layer.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Human-readable error message.
                required:
                  - detail
              example:
                detail: Rate limit exceeded (600 req/min)
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
                example: 30
      security:
        - XAPIKeyHeader: []
        - XAccessTokenHeader: []
        - UOFAccessTokenHeader: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    XAPIKeyHeader:
      type: apiKey
      description: Tenant API key issued during onboarding
      in: header
      name: X-API-Key
    XAccessTokenHeader:
      type: apiKey
      description: UOF-standard alias for the tenant API key
      in: header
      name: x-access-token
    UOFAccessTokenHeader:
      type: apiKey
      description: Deprecated alias for x-access-token (backward compatibility)
      in: header
      name: $x$access-token

````