rFactor 2
F1 Bros S13 Practice 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10884226json
{
"response": {
"steam_id": "90284290637782031",
"domain": null,
"id": 10884226,
"ip": "185.239.238.170",
"port": 1025,
"query": 1027,
"color": 0,
"city": "Münster",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1776024736,
"score": 0,
"last_online": 1776232838,
"icon": null,
"name": "F1 Bros S13 Practice",
"connect": "185.239.238.170:1025",
"request": "185.239.238.170:1027",
"map": "Autodromo Jose Carlos Pace (GPV",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": false,
"private": true,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1768321257,
"last_update": 1776232838,
"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": 132,
"language": "de",
"parked": false,
"app": {
"id": 146,
"steam_id": 365960,
"name": "rFactor 2",
"url": "rfactor-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10884226");
$data = json_decode($json, true);
var_dump($data);