rFactor 2
Liga VPG- Alpine GT4 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10884260json
{
"response": {
"steam_id": "90284340472869898",
"domain": null,
"id": 10884260,
"ip": "200.201.183.213",
"port": 39807,
"query": 39809,
"color": 0,
"city": "Rio de Janeiro",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1777611147,
"score": 0,
"last_online": 1777422025,
"icon": null,
"name": "Liga VPG- Alpine GT4",
"connect": "200.201.183.213:39807",
"request": "200.201.183.213:39809",
"map": "Circuito Ricardo Tormo",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 0,
"maxplayers": 43,
"bots": 0,
"secured": false,
"private": false,
"country": "BR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1768321262,
"last_update": 1777611147,
"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": 209,
"language": "pt",
"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/10884260");
$data = json_decode($json, true);
var_dump($data);