API для [C] The Caltrop Network | Update to 0.7.5!
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286657956360197",
"domain": null,
"id": 11756564,
"ip": "198.52.52.105",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Montreal",
"description": null,
"game": 3555120,
"owner": null,
"boosts": 1,
"last_offline": 1781101412,
"last_online": 1780726906,
"icon": null,
"name": "[C] The Caltrop Network | Update to 0.7.5!",
"connect": "198.52.52.105:27015",
"request": "198.52.52.105:27015",
"map": "wacky_races_v2_pf2",
"gamemode": "Pre-Fortress 2",
"version": "5394426",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780520345,
"last_update": 1781101412,
"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": 18,
"language": "en",
"parked": false,
"app": {
"id": 1665397,
"steam_id": 3555120,
"name": "Pre-Fortress 2",
"url": "pre-fortress-2"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11756564");
$data = json_decode($json, true);
var_dump($data);