Team Fortress 2
matchaland.net | TF2 Mann vs. Machine 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/5299835json
{
"response": {
"steam_id": "90284217352650759",
"domain": null,
"id": 5299835,
"ip": "199.247.78.239",
"port": 20040,
"query": 20040,
"color": 0,
"city": "Storm Lake",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1775360486,
"score": 0,
"last_online": 1775964676,
"icon": null,
"name": "matchaland.net | TF2 Mann vs. Machine",
"connect": "199.247.78.239:20040",
"request": "199.247.78.239:20040",
"map": "mvm_ghost_town",
"gamemode": "Team Fortress",
"version": "10515055",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1721679793,
"last_update": 1775964676,
"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": 1003,
"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/5299835");
$data = json_decode($json, true);
var_dump($data);