Project Zomboid
API pentru Wasteland Roleplay Season 7
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11268145json
{
"response": {
"steam_id": "90285620947788807",
"domain": null,
"id": 11268145,
"ip": "45.143.196.111",
"port": 16263,
"query": 16263,
"color": 0,
"city": "Solihull",
"description": "Wasteland Roleplay Season 7!\\nwastelandrp.net\\ndiscord.gg/wastelandrp",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1778513583,
"score": 0,
"last_online": 1778511732,
"icon": null,
"name": "Wasteland Roleplay Season 7",
"connect": "45.143.196.111:16263",
"request": "45.143.196.111:16263",
"map": "greyswldonoarea;WLTransportCell",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774555530,
"last_update": 1778513583,
"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": 4734,
"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/11268145");
$data = json_decode($json, true);
var_dump($data);