The DatHost API


You can use the DatHost API to automate creation/deletion and control of servers if you for example want to integrate our game servers into your service. The API is a RESTful HTTP API which means that all interactions are made using regular HTTP requests, if you are logged in you can even try out the functionality in your web browser below.

To authenticate with our API use HTTP basic authentication with login email and password. You should send the basic auth header with every request. By default all actions are done against the account you authenticate to, if you are invited to another account you can add the HTTP header Account-Email: <email> with the login email of the account which you like to do the action on.

If you have any questions or suggestions get in touch with

CS:GO Match Configuration

If you plan to use the API to integrate with some CS:GO match service of yours, we would recommend having a look at the match endpoint in our API. That includes everything needed to get going with an automated match solution.

Read more in our CS:GO Match Documentation PDF here.

How to get started

Python Example

This is a fully working Python program using the requests module, which creates a server, starts it and retrieves ip + port:

import requests

server =
        "name": "test",
        "game": "csgo",
        "csgo_settings.rcon": "test",
        "csgo_settings.steam_game_server_login_token": "B9184AB935BA3419258338383BCA3CA",
    auth=("", "secretPassword"),
    "" % server["id"],
    auth=("", "secretPassword"),

server = requests.get(
    "" % server["id"],
    auth=("", "secretPassword"),

print("%s:%s" % (server["ip"], server["ports"]["game"]))

NodeJS (JavaScript) example

This is a fully working NodeJS (JavaScript) program which creates a server, starts it and retrieves ip + port:

const FormData = require('form-data')
const fetch = require('node-fetch')

async function main() {
  const username = ''
  const password = 'secretPassword'
  const headers = {
    authorization: `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`,

  let body = new FormData()
  body.append('name', 'test')
  body.append('game', 'csgo')
  body.append('csgo_settings.rcon', 'test')
  body.append('csgo_settings.steam_game_server_login_token', 'B9184AB935BA3419258338383BCA3CA')

  let response = await fetch('', {
    method: 'POST',

  let server = await response.json()

  await fetch(`${}/start`, {
    method: 'POST',

  response = await fetch(`${}`, {

  server = await response.json()



API Specification

Note: Click on a resource to get detailed info