rFactor 2
KSP Charlotte 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11180238json
{
"response": {
"steam_id": "90282675408805897",
"domain": null,
"id": 11180238,
"ip": "88.99.105.133",
"port": 6712,
"query": 6714,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1777614142,
"score": 0,
"last_online": 1777576334,
"icon": null,
"name": "KSP Charlotte",
"connect": "88.99.105.133:6712",
"request": "88.99.105.133:6714",
"map": "Charlotte Karting Track L2 CCW",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 0,
"maxplayers": 46,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772229591,
"last_update": 1777614142,
"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": 223,
"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/11180238");
$data = json_decode($json, true);
var_dump($data);