Project Zomboid
API pentru Lonely Stoner Apocalypse Now!
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10469152json
{
"response": {
"steam_id": 90284725590956060,
"domain": null,
"id": 10469152,
"ip": "173.0.158.252",
"port": 27920,
"query": 27920,
"color": 0,
"city": "Dallas",
"description": "You will be rolled up and smoked by all able bodied patrons of the club.",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1776319312,
"score": 0,
"last_online": 1776798028,
"icon": null,
"name": "Lonely Stoner Apocalypse Now!",
"connect": "173.0.158.252:27920",
"request": "173.0.158.252:27920",
"map": "vehicle_interior;TreadsMilitary",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1760479553,
"last_update": 1776798028,
"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": 699,
"language": "en",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10469152");
$data = json_decode($json, true);
var_dump($data);