Half-Life: Opposing Force
API для [DZ] PATIO | OP4 DEATHMATCH
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10694805json
{
"response": {
"steam_id": null,
"domain": null,
"id": 10694805,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Batna City",
"description": null,
"game": 50,
"owner": 149702,
"boosts": 1,
"last_offline": 1765518661,
"score": 0,
"last_online": 1764632417,
"icon": null,
"name": "[DZ] PATIO | OP4 DEATHMATCH",
"connect": null,
"request": null,
"map": "op4_patio",
"gamemode": "Opposing Force",
"version": null,
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": false,
"private": false,
"country": "DZ",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1764631425,
"last_update": 1765518661,
"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": 30,
"language": "ar",
"parked": true,
"app": {
"id": 33,
"steam_id": 50,
"name": "Half-Life: Opposing Force",
"url": "half-life-opposing-force"
},
"server_owner": {
"username": "lifeofdesmond",
"avatar": "98757d2a-b593-4596-b6e7-04e7972f0016.jpg",
"last_online": 1764632363
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10694805");
$data = json_decode($json, true);
var_dump($data);