Counter-Strike
API für 【175】四川101 5服op加qq559484
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/208138json
{
"response": {
"steam_id": null,
"domain": null,
"id": 208138,
"ip": "110.185.170.189",
"port": 57025,
"query": 57025,
"color": 0,
"city": "Chengdu",
"description": "",
"game": 10,
"owner": null,
"boosts": 1,
"last_offline": 1775694723,
"score": null,
"last_online": 1776210629,
"icon": null,
"name": "【175】四川101 5服op加qq559484",
"connect": "110.185.170.189:57025",
"request": "110.185.170.189:57025",
"map": "de_dust2 (沙漠2)",
"gamemode": "【死亡传说-随机服[普通]】",
"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": 1582845189,
"last_update": 1776210629,
"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": 4725,
"language": "zh",
"parked": false,
"app": {
"id": 3,
"steam_id": 10,
"name": "Counter-Strike",
"url": "counter-strike"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/208138");
$data = json_decode($json, true);
var_dump($data);