CS2 Servers

Returns the most recently approved CS2 servers.

get/servers

Query parameters

namestring

Only include servers whose name matches this value.

hoststring hostname

an IPv4/IPv6 address or domain

Example:255.255.255.255

Only include servers whose host matches this value.

owned_bystring u-int64

a 64-bit SteamID

Example:76561198282622073

Only include servers owned by this user.

limitinteger
offsetinteger

Response

totalinteger required

The total number of values available for fetching.

Different endpoints have different hard-limits on how many values they will return at a time. They usually also have an offset query parameter you can use to fetch the next set of values. You can use total to infer when you can stop making requests.

Example response

{
  "values": [
    {
      "host": "255.255.255.255",
      "owner": {
        "id": "76561198282622073"
      },
      "approved_at": "1970-01-01T00:00:00Z",
      "a2s_info": {
        "_updated_at": "1970-01-01T00:00:00Z"
      },
      "geo_info": {
        "_updated_at": "1970-01-01T00:00:00Z"
      }
    }
  ]
}

Changes