Counter-Strike
[PAINTBALL][4FUN] CS-Akwarium.Pl 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/797396json
{
"response": {
"steam_id": null,
"domain": null,
"id": 797396,
"ip": "137.74.7.253",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Warsaw",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1768554020,
"score": null,
"last_online": 1776814238,
"icon": null,
"name": "[PAINTBALL][4FUN] CS-Akwarium.Pl",
"connect": "137.74.7.253:27015",
"request": "137.74.7.253:27015",
"map": "paintball_buzzkill",
"gamemode": "PB MOD v3.4.7",
"version": "1.1.2.7/Stdio",
"numplayers": 1,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "PL",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1684346485,
"last_update": 1776814238,
"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": 3953,
"language": "pl",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/797396");
$data = json_decode($json, true);
var_dump($data);