API dla [ENG, USA EAST, VANILLA, PVP, 5XP] By NEWBYTOOBY
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286989595387910",
"domain": null,
"id": 11421128,
"ip": "50.4.72.80",
"port": 16261,
"query": 16261,
"project_id": null,
"color": 0,
"city": "Mason",
"description": "5x exp. vanilla pvp. DISCORD LINK: https://discord.gg/YjcNra4xVX",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781406243,
"last_online": 1781431830,
"icon": null,
"name": "[ENG, USA EAST, VANILLA, PVP, 5XP] By NEWBYTOOBY",
"connect": "50.4.72.80:16261",
"request": "50.4.72.80:16261",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774600022,
"last_update": 1781431830,
"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": 1588,
"language": "en",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11421128");
$data = json_decode($json, true);
var_dump($data);