API для SYD1-6RSWFS
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "{\"mmr\":0,\"tpcd\":0,\"gm\":\"TargetDesignation\",\"db\":false,\"rnd\":0,\"mr\":\"Ru\",\"rm\":true,\"minl\":41,\"maxl\":100}",
"os": "w",
"product": "Contract Wars 2.0 Standalone",
"region": -1,
"steam_id": "90289403875051535",
"domain": null,
"id": 12489016,
"ip": "103.101.129.88",
"port": 28277,
"query": 27277,
"project_id": null,
"color": 0,
"city": "Sydney",
"description": null,
"game": 374280,
"owner": null,
"boosts": 1,
"last_offline": 1784720131,
"last_online": 1784702502,
"icon": null,
"name": "SYD1-6RSWFS",
"connect": "103.101.129.88:28277",
"request": "103.101.129.88:27277",
"map": "6",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": null,
"country": "AU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784700112,
"last_update": 1784720131,
"ban_reason": null,
"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": 10502,
"language": "en",
"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/12489016");
$data = json_decode($json, true);
var_dump($data);