Survive the Nights
API für test
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11181231json
{
"response": {
"steam_id": "90284502034272265",
"domain": null,
"id": 11181231,
"ip": "144.91.79.7",
"port": 28800,
"query": 28815,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 541300,
"owner": null,
"boosts": 1,
"last_offline": 1775707324,
"score": 0,
"last_online": 1776519100,
"icon": null,
"name": "test",
"connect": "144.91.79.7:28800",
"request": "144.91.79.7:28815",
"map": "Black_Island",
"gamemode": "Survive The Nights",
"version": "1.3.0.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": true,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772229704,
"last_update": 1776519100,
"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": 42,
"language": "fr",
"parked": false,
"app": {
"id": 12556,
"steam_id": 541300,
"name": "Survive the Nights",
"url": "survive-the-nights"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11181231");
$data = json_decode($json, true);
var_dump($data);