Seattle 2 - API

Are you interested in dynamicly updated Rust Website tamplate?

Download from GitHub

Rust-Server-Website-Template

Responsive, dynamically updated PHP/CSS template for Rust server website. It is build with Bootstrap 4 and Rust-Servers.Info API.

FREE

API for Seattle 2

JavaScript API

To start using this, you need to include embed.js with your ServerID in the <head> section of an HTML page.

<script src="https://api.rust-servers.info/embed.js?id=57"></script>

After that, in place where you want to display the current number of players (for example), paste the code:

<script>document.write(players_cur);</script>

Learn more about JavaScript API here or see example GitHub / JSFiddle.

JSON API

We provide API wich accepts requests in GET string and returns data in and JSON arrays. Example request:

GET https://api.rust.servers-info/‹METHOD›/57

Available methods:

  • Status
  • Info
  • Votes
  • Last25Votes
  • Graph
  • Update

Example output for Status method:

Request:

GET https://api.rust-servers.info/status/57

Result:

{
	"name": "Server Name",
	"status": "Online",
	"last_seen": "1484415901",
	"players": "167",
	"players_max": "200",
	"fps": "75",
	"uptime": "2 days, 3 hrs"
}

Read full description of all availiable methods and output examples at this page.