SimRacing-GP.net_Indy500 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286276230942733",
"domain": null,
"id": 11586508,
"ip": "188.165.193.80",
"port": 64303,
"query": 64305,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 365960,
"owner": null,
"boosts": 1,
"last_offline": 1779873207,
"last_online": 1780125656,
"icon": null,
"name": "SimRacing-GP.net_Indy500",
"connect": "188.165.193.80:64303",
"request": "188.165.193.80:64305",
"map": "Indianapolis -- Oval",
"gamemode": "rFactor 2",
"version": "11134",
"numplayers": 0,
"maxplayers": 34,
"bots": 0,
"secured": false,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779357191,
"last_update": 1780125656,
"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": 205,
"language": "fr",
"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/11586508");
$data = json_decode($json, true);
var_dump($data);