API для AMS1-C9XTS2
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "{\"mmr\":0,\"tpcd\":0,\"gm\":\"TeamElimination\",\"db\":false,\"rnd\":4,\"mr\":\"Ru\",\"rm\":true,\"minl\":41,\"maxl\":100}",
"os": "w",
"product": "Contract Wars 2.0 Standalone",
"region": -1,
"steam_id": "90288941112128524",
"domain": null,
"id": 12324551,
"ip": "212.102.34.25",
"port": 28047,
"query": 27047,
"project_id": null,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 374280,
"owner": null,
"boosts": 1,
"last_offline": 1784155411,
"last_online": 1784142060,
"icon": null,
"name": "AMS1-C9XTS2",
"connect": "212.102.34.25:28047",
"request": "212.102.34.25:27047",
"map": "2",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": null,
"country": "NL",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784140866,
"last_update": 1784155411,
"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": 4040,
"language": "nl",
"parked": false,
"app": {
"id": 6495,
"steam_id": 374280,
"name": "Hired Ops",
"url": "hired-ops"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12324551");
$data = json_decode($json, true);
var_dump($data);