API для Running Dead
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "dedicated",
"os": "l",
"product": "1857950",
"region": -1,
"steam_id": "90288946821866527",
"domain": null,
"id": 11491215,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": "Secaucus",
"description": "[{\"id\":\"fUxnxpTlw9\",\"type\":\"paragraph\",\"data\":{\"text\":\"Welcome to the zombie apocalypse. Scavenge the ruins, build your shelter, fortify your base, and survive Running Dead. Server restarts around 3 AM Eastern. Join our roleplay-based Discord: https://discord.gg/3M5n5SpmyA. Failure to follow the rules may result in a permanent ban.\"}}]",
"game": 1857950,
"owner": 191081,
"boosts": 1,
"last_offline": 1784152416,
"last_online": 1784668200,
"icon": null,
"name": "Running Dead",
"connect": null,
"request": null,
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1777234189,
"last_update": 1784668200,
"ban_reason": null,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": 1,
"list_hidden": false,
"hide_address": true,
"hide_query": false,
"position_game": 3,
"language": "en",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": {
"username": "occultus",
"avatar": "4831c03b-b815-4fda-b882-034bd382a3c9.png"
},
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11491215");
$data = json_decode($json, true);
var_dump($data);