Counter-Strike 2
[FR] Inferno Multigaming 🔥 - Multi Frag 🔫 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10523017json
{
"response": {
"steam_id": 85568392931294800,
"domain": null,
"id": 10523017,
"ip": "151.80.27.176",
"port": 27015,
"query": 27015,
"color": 0,
"city": "Roubaix",
"description": null,
"game": 730,
"owner": null,
"boosts": 1,
"last_offline": 1778579580,
"score": 0,
"last_online": 1778762462,
"icon": null,
"name": "[FR] Inferno Multigaming 🔥 - Multi Frag 🔫",
"connect": "151.80.27.176:27015",
"request": "151.80.27.176:27015",
"map": "de_cache",
"gamemode": "Counter-Strike 2",
"version": "1.41.6.0",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1761991748,
"last_update": 1778762462,
"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": 7899,
"language": "fr",
"parked": false,
"app": {
"id": 2,
"steam_id": 730,
"name": "Counter-Strike 2",
"url": "counter-strike-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10523017");
$data = json_decode($json, true);
var_dump($data);