Team Fortress 2
[SG] PUBS.TF | Turbine | Instaspawn 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/3287158json
{
"response": {
"steam_id": "85568392924493389",
"domain": null,
"id": 3287158,
"ip": "139.99.118.254",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Singapore",
"description": "",
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1768642568,
"score": null,
"last_online": 1775950239,
"icon": null,
"name": "[SG] PUBS.TF | Turbine | Instaspawn",
"connect": "139.99.118.254:27016",
"request": "139.99.118.254:27016",
"map": "ctf_turbine",
"gamemode": "Team Fortress",
"version": "9978583",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1709836096,
"last_update": 1775950239,
"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": 805,
"language": "en",
"parked": false,
"app": {
"id": 24,
"steam_id": 440,
"name": "Team Fortress 2",
"url": "team-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/3287158");
$data = json_decode($json, true);
var_dump($data);