American Truck Simulator
BadMae Logistics West Coast Server 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11135186json
{
"response": {
"steam_id": "85568392935694855",
"domain": null,
"id": 11135186,
"ip": "165.232.138.110",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Santa Clara",
"description": null,
"game": 270880,
"owner": null,
"boosts": 1,
"last_offline": 1774156929,
"score": 0,
"last_online": 1776014441,
"icon": null,
"name": "BadMae Logistics West Coast Server",
"connect": "165.232.138.110:27015",
"request": "165.232.138.110:27016",
"map": "usa",
"gamemode": "check me out https://youtube.com/@BadMae",
"version": null,
"numplayers": 3,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 51,
"add_date": 1770398124,
"last_update": 1776014441,
"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": 23,
"language": "en",
"parked": false,
"app": {
"id": 2949,
"steam_id": 270880,
"name": "American Truck Simulator",
"url": "american-truck-simulator"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11135186");
$data = json_decode($json, true);
var_dump($data);