Natural Selection 2
API für The Thirsty Onos
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10682287json
{
"response": {
"steam_id": "90284058567661583",
"domain": null,
"id": 10682287,
"ip": "45.82.66.224",
"port": 28315,
"query": 28316,
"color": 0,
"city": "Naaldwijk",
"description": null,
"game": 4920,
"owner": null,
"boosts": 1,
"last_offline": 1768554221,
"score": 0,
"last_online": 1776440549,
"icon": null,
"name": "The Thirsty Onos",
"connect": "45.82.66.224:28315",
"request": "45.82.66.224:28316",
"map": "ns2_docking_mmpg",
"gamemode": "Natural Selection 2",
"version": "1.0.0.0",
"numplayers": 25,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1764584245,
"last_update": 1776440549,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7,
"language": "nl",
"parked": false,
"app": {
"id": 91,
"steam_id": 4920,
"name": "Natural Selection 2",
"url": "natural-selection-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10682287");
$data = json_decode($json, true);
var_dump($data);