Euro Truck Simulator 2
API für Trucker Talk ETS2
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10994809json
{
"response": {
"steam_id": "85568392935750803",
"domain": null,
"id": 10994809,
"ip": "185.76.10.234",
"port": 11257,
"query": 11258,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1773545568,
"score": 0,
"last_online": 1776056430,
"icon": null,
"name": "Trucker Talk ETS2",
"connect": "185.76.10.234:11257",
"request": "185.76.10.234:11258",
"map": "europe",
"gamemode": "This is a ETS 2 Server hosted by Pingplayers.com!",
"version": null,
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1769905076,
"last_update": 1776056430,
"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": 696,
"language": "nl",
"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/10994809");
$data = json_decode($json, true);
var_dump($data);