Euro Truck Simulator 2
API für Chile - Empresa UTP SpA - Servidor Oficial
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10498736json
{
"response": {
"steam_id": "85568392931470963",
"domain": null,
"id": 10498736,
"ip": "190.95.114.40",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Valdivia",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1778559738,
"score": 0,
"last_online": 1778113248,
"icon": null,
"name": "Chile - Empresa UTP SpA - Servidor Oficial",
"connect": "190.95.114.40:27015",
"request": "190.95.114.40:27016",
"map": "europe",
"gamemode": "Discord: https://discord.gg/Tys5usGqrP",
"version": null,
"numplayers": 0,
"maxplayers": 128,
"bots": 0,
"secured": false,
"private": false,
"country": "CL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1761125111,
"last_update": 1778559738,
"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": 940,
"language": "es",
"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/10498736");
$data = json_decode($json, true);
var_dump($data);