API для SmashZoid 42
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90289891298015261",
"domain": null,
"id": 12775425,
"ip": "163.245.197.147",
"port": 17200,
"query": 17200,
"project_id": null,
"color": 0,
"city": "Secaucus",
"description": "This is Smashley's Project Zomboid server for her subscribers.",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1785335707,
"last_online": 1785406387,
"icon": null,
"name": "SmashZoid 42",
"connect": "163.245.197.147:17200",
"request": "163.245.197.147:17200",
"map": "WILDSTEEL;map_distanciado;Muldr",
"gamemode": "Project Zomboid",
"version": "42.20",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 0,
"add_date": 1785111685,
"last_update": 1785406387,
"ban_reason": null,
"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": 21000,
"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/12775425");
$data = json_decode($json, true);
var_dump($data);