Automobilista 2
|SkillFighters F-1 1988 TrackRotation| 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11489819json
{
"response": {
"steam_id": "90285111126242326",
"domain": null,
"id": 11489819,
"ip": "93.227.40.197",
"port": 27017,
"query": 27018,
"color": 0,
"city": "Wismar",
"description": null,
"game": 1066890,
"owner": 190142,
"boosts": 1,
"last_offline": 1777449200,
"score": 0,
"last_online": 1777510826,
"icon": null,
"name": "|SkillFighters F-1 1988 TrackRotation|",
"connect": "93.227.40.197:27017",
"request": "93.227.40.197:27018",
"map": "Imola_GP_1988",
"gamemode": "Automobilista 2",
"version": "1.0.0.93",
"numplayers": 0,
"maxplayers": 26,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1776889377,
"last_update": 1777510826,
"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": 6,
"language": "de",
"parked": false,
"app": {
"id": 48189,
"steam_id": 1066890,
"name": "Automobilista 2",
"url": "automobilista-2"
},
"server_owner": {
"username": "sf_sf_boiorix_boiorix",
"avatar": "440638ee-17df-474f-a7f4-55ebfc60ac45.jpg",
"last_online": 1776972599
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11489819");
$data = json_decode($json, true);
var_dump($data);