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, 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 can either send the basic auth header with every request or store the cookie you get back from a request and use that instead for subsequent requests. 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.

This is a fully working Python program using the requests module which starts a server:

import requests'',
        auth=('', 'secretPassword'))

And a NodeJS example for listing all servers

const fetch = require('node-fetch')

const username = ''
const password = 'secretPassword'

async function main() {
  const servers = await fetch('', {
    headers: {
      authorization: `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`,
  console.log(await servers.json())


If you have any questions or suggestions get in touch with

API Specification

Note: Click on a resource to get detailed info

  Loading interactive api specification...