Team Fortress 2
███ 「Otaku Gaming」 TRADE PLAZA 3 █ EU ███﷽� 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/8113180json
{
"response": {
"steam_id": "90285607703629852",
"domain": null,
"id": 8113180,
"ip": "149.202.82.182",
"port": 27017,
"query": 27017,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1777438999,
"score": 0,
"last_online": 1778542241,
"icon": null,
"name": "███ 「Otaku Gaming」 TRADE PLAZA 3 █ EU ███﷽�",
"connect": "149.202.82.182:27017",
"request": "149.202.82.182:27017",
"map": "trade_plaza_3_x6",
"gamemode": "███ TRADE PLAZA 3 █████████████",
"version": "10515055",
"numplayers": 1,
"maxplayers": 33,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1741714871,
"last_update": 1778542241,
"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": 339,
"language": "fr",
"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/8113180");
$data = json_decode($json, true);
var_dump($data);