Fistful of Frags
C8H10 For FOF 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/11492297json
{
"response": {
"steam_id": "90285597066007564",
"domain": null,
"id": 11492297,
"ip": "150.158.140.188",
"port": 21056,
"query": 21056,
"color": 0,
"city": "Shanghai",
"description": null,
"game": 265630,
"owner": 193758,
"boosts": 1,
"last_offline": 1778445183,
"score": 0,
"last_online": 1778517024,
"icon": null,
"name": "C8H10 For FOF",
"connect": "150.158.140.188:21056",
"request": "150.158.140.188:21056",
"map": "fof_cripplecreek",
"gamemode": "4 Teams Shootout",
"version": "628",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1778403154,
"last_update": 1778517024,
"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": 7,
"language": "zh",
"parked": false,
"app": {
"id": 81,
"steam_id": 265630,
"name": "Fistful of Frags",
"url": "fistful-of-frags"
},
"server_owner": {
"username": "cici8705",
"avatar": "no.jpg",
"last_online": 1778476548
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11492297");
$data = json_decode($json, true);
var_dump($data);