Euro Truck Simulator 2
Tostendsch geweld 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10543041json
{
"response": {
"steam_id": "90282574270890013",
"domain": null,
"id": 10543041,
"ip": "45.159.7.124",
"port": 10260,
"query": 10261,
"color": 0,
"city": "Poplar",
"description": null,
"game": 227300,
"owner": null,
"boosts": 1,
"last_offline": 1770244900,
"score": 0,
"last_online": 1775992877,
"icon": null,
"name": "Tostendsch geweld",
"connect": "45.159.7.124:10260",
"request": "45.159.7.124:10261",
"map": "europe",
"gamemode": "Familie server",
"version": null,
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1762521126,
"last_update": 1775992877,
"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": 459,
"language": "en",
"parked": false,
"app": {
"id": 1980,
"steam_id": 227300,
"name": "Euro Truck Simulator 2",
"url": "euro-truck-simulator-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10543041");
$data = json_decode($json, true);
var_dump($data);