Counter-Strike
【175】四川100 6服op加qq559484 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/206943json
{
"response": {
"steam_id": null,
"domain": null,
"id": 206943,
"ip": "110.185.170.189",
"port": 57028,
"query": 57028,
"color": 0,
"city": "Chengdu",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1768709476,
"score": null,
"last_online": 1776209435,
"icon": null,
"name": "【175】四川100 6服op加qq559484",
"connect": "110.185.170.189:57028",
"request": "110.185.170.189:57028",
"map": "de_dust2 (沙漠2)",
"gamemode": "【175PT混战服】[反透视]",
"version": "1.1.2.6/Stdio",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1582845188,
"last_update": 1776209435,
"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": 4720,
"language": "zh",
"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/206943");
$data = json_decode($json, true);
var_dump($data);