Team Fortress 2
BATTL3FIELD | TANKS AND HELICOPTERS | United Kingdom 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/9206379json
{
"response": {
"steam_id": null,
"domain": null,
"id": 9206379,
"ip": "217.25.225.36",
"port": 49140,
"query": 49140,
"color": 0,
"city": "Voronezh",
"description": null,
"game": 440,
"owner": null,
"boosts": 1,
"last_offline": 1776570797,
"score": 0,
"last_online": 1776786020,
"icon": null,
"name": "BATTL3FIELD | TANKS AND HELICOPTERS | United Kingdom",
"connect": "217.25.225.36:49140",
"request": "217.25.225.36:49140",
"map": "THUNDER RUN",
"gamemode": "TANK SUPERIORITY",
"version": "10515055",
"numplayers": 16,
"maxplayers": 24,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 77,
"add_date": 1747342871,
"last_update": 1776786020,
"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": 70,
"language": "ru",
"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/9206379");
$data = json_decode($json, true);
var_dump($data);