API для Darkside Trainer #1 - Alien [http://sanzen.in]
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286231382764552",
"domain": null,
"id": 931509,
"ip": "72.133.96.85",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Kyle",
"description": "",
"game": 90002,
"owner": null,
"boosts": 1,
"last_offline": 1780918403,
"last_online": 1780759277,
"icon": null,
"name": "Darkside Trainer #1 - Alien [http://sanzen.in]",
"connect": "72.133.96.85:27015",
"request": "72.133.96.85:27015",
"map": "ns_crude_b3",
"gamemode": "DS Marine Trainer[Hard]",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1684764530,
"last_update": 1780918403,
"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": 13,
"language": "en",
"parked": false,
"app": {
"id": 102,
"steam_id": 90002,
"name": "Natural Selection",
"url": "natural-selection"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/931509");
$data = json_decode($json, true);
var_dump($data);