Counter-Strike
ARGENTINA CS INFERNO 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/271858json
{
"response": {
"steam_id": null,
"domain": null,
"id": 271858,
"ip": "45.235.98.61",
"port": 27019,
"query": 27019,
"color": 0,
"city": "Córdoba",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1776786200,
"score": null,
"last_online": 1776796364,
"icon": null,
"name": "ARGENTINA CS INFERNO",
"connect": "45.235.98.61:27019",
"request": "45.235.98.61:27019",
"map": "de_inferno",
"gamemode": "ARGENTINA CS OFICIAL",
"version": "1.1.2.7/Stdio",
"numplayers": 21,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "AR",
"status": true,
"votes": 0,
"points": 76,
"add_date": 1584652044,
"last_update": 1776796364,
"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": 2102,
"language": "es",
"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/271858");
$data = json_decode($json, true);
var_dump($data);