Automobilista 2 Beta
Betaristenfahrten 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/9893782json
{
"response": {
"steam_id": "90284393441467411",
"domain": null,
"id": 9893782,
"ip": "45.157.177.31",
"port": 25010,
"query": 25020,
"color": 0,
"city": "Nuremberg",
"description": null,
"game": 1066880,
"owner": null,
"boosts": 1,
"last_offline": 1776236515,
"score": 0,
"last_online": 1776257458,
"icon": null,
"name": "Betaristenfahrten",
"connect": "45.157.177.31:25010",
"request": "45.157.177.31:25020",
"map": "Nordschleife_2020_24hr",
"gamemode": "Automobilista 2",
"version": "1.0.0.67",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1753711791,
"last_update": 1776257458,
"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": 1,
"language": "de",
"parked": false,
"app": {
"id": 1665392,
"steam_id": 1066880,
"name": "Automobilista 2 Beta",
"url": "automobilista_2_beta"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/9893782");
$data = json_decode($json, true);
var_dump($data);