API для rapon
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": false,
"gametype": "ColdGame",
"os": "w",
"product": "subsistence",
"region": 255,
"steam_id": "90289654625198086",
"domain": null,
"id": 12757877,
"ip": "178.40.242.31",
"port": 7777,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Bratislava",
"description": null,
"game": 418030,
"owner": null,
"boosts": 1,
"last_offline": 1785776808,
"last_online": 1785103800,
"icon": null,
"name": "rapon",
"connect": "178.40.242.31:7777",
"request": "178.40.242.31:27015",
"map": "coldmap1",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": null,
"country": "SK",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1785095113,
"last_update": 1785776808,
"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": 600,
"language": "sk",
"parked": false,
"app": {
"id": 139,
"steam_id": 418030,
"name": "Subsistence",
"url": "subsistence"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12757877");
$data = json_decode($json, true);
var_dump($data);