Euro Truck Simulator 2
API für SW-LOG.NET Vanilla
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11212264json
{
"response": {
"steam_id": "85568392935945826",
"domain": null,
"id": 11212264,
"ip": "209.38.227.69",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1772700869,
"score": 0,
"last_online": 1778535704,
"icon": null,
"name": "SW-LOG.NET Vanilla",
"connect": "209.38.227.69:27015",
"request": "209.38.227.69:27016",
"map": "europe",
"gamemode": "Euro Truck Simulator 2",
"version": null,
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772700869,
"last_update": 1778535704,
"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": 702,
"language": "de",
"parked": false,
"app": {
"id": 1980,
"steam_id": 227300,
"name": "Euro Truck Simulator 2",
"url": "euro-truck-simulator-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11212264");
$data = json_decode($json, true);
var_dump($data);