---
title: "Returns the CS2 server with the specified ID / name."
method: GET
path: "/servers/{server}"
tags: ["CS2 Servers"]
---

# Returns the CS2 server with the specified ID / name.

`GET /servers/{server}`

If you specify a name, it does not have to be an exact match, although exact matches will be
preferred.

## Path parameters

- `server` union, required
  - string
  - integer

## Response `200`

- Server
  - `id` integer, required
  - `name` string, required
  - `host` string, hostname, required — an IPv4/IPv6 address or domain
  - `port` integer, required
  - `owner` UserInfo, required
    - `id` string, u-int64, required — a 64-bit SteamID
    - `name` string, required — The user's last-known name on Steam.
  - `approved_at` string, date-time, required — a UTC timestamp
  - `a2s_info` A2SInfo
    - `current_map` string, required — The map the server is currently hosting.
    - `current_map_info` ServerMapInfo
      - `workshop_id` integer, required — The map's ID on the Steam workshop.
      - `global_state` 'invalid' | 'in-testing' | 'approved', required
    - `num_players` integer, required — The number of players currently playing on the server.
    - `max_players` integer, required — The maximum number of players that can join the server.
    - `_updated_at` string, date-time, required — a UTC timestamp
  - `geo_info` GeoInfo
    - `country_code` string, required
    - `region` string, required — More specific region within the country, such as a city.
    - `_updated_at` string, date-time, required — a UTC timestamp

## Other responses

- `400` — invalid path parameters
- `404`

---

[API](https://skmtc.dev/cs2kz/apis/cs2kz-api.md) · [All operations](https://skmtc.dev/cs2kz/apis/cs2kz-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cs2kz/cs2kz-api/revisions/73ecd7bbda3b/schema)
