Project Zomboid
API для Wasteland Roleplay Season 7
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11437081json
{
"response": {
"steam_id": "90284709320005639",
"domain": null,
"id": 11437081,
"ip": "45.143.196.111",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Solihull",
"description": "Wasteland Roleplay Season 7!\\nwastelandrp.net\\ndiscord.gg/wastelandrp",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775658130,
"score": 0,
"last_online": 1776769213,
"icon": null,
"name": "Wasteland Roleplay Season 7",
"connect": "45.143.196.111:16261",
"request": "45.143.196.111:16261",
"map": "greyswldonoarea;WLTransportCell",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 28,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 92,
"add_date": 1774977309,
"last_update": 1776769213,
"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": 8,
"language": "en",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11437081");
$data = json_decode($json, true);
var_dump($data);